@silexpert/core 1.1.109 → 1.1.112

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. package/es/api/resources/BalanceSheet.d.ts +2 -1
  2. package/es/api/resources/BalanceSheet.d.ts.map +1 -1
  3. package/es/api/resources/BalanceSheet.js +3 -0
  4. package/es/api/resources/BalanceSheet.js.map +1 -1
  5. package/es/api/resources/ConstitutionHistory.d.ts +7 -0
  6. package/es/api/resources/ConstitutionHistory.d.ts.map +1 -0
  7. package/es/api/resources/ConstitutionHistory.js +12 -0
  8. package/es/api/resources/ConstitutionHistory.js.map +1 -0
  9. package/es/api/resources/Society.d.ts +2 -2
  10. package/es/api/resources/Society.d.ts.map +1 -1
  11. package/es/api/resources/Society.js.map +1 -1
  12. package/es/api/resources/statistic/ExpertAccountant.d.ts +6 -0
  13. package/es/api/resources/statistic/ExpertAccountant.d.ts.map +1 -1
  14. package/es/api/resources/statistic/ExpertAccountant.js +9 -0
  15. package/es/api/resources/statistic/ExpertAccountant.js.map +1 -1
  16. package/es/api/resources.d.ts +2 -0
  17. package/es/api/resources.d.ts.map +1 -1
  18. package/es/api/resources.js +2 -0
  19. package/es/api/resources.js.map +1 -1
  20. package/es/types/Enum/BalanceSheet.d.ts +30 -19
  21. package/es/types/Enum/BalanceSheet.d.ts.map +1 -1
  22. package/es/types/Enum/BalanceSheet.js +52 -18
  23. package/es/types/Enum/BalanceSheet.js.map +1 -1
  24. package/es/types/Enum/ClientOrProspect.d.ts +9 -0
  25. package/es/types/Enum/ClientOrProspect.d.ts.map +1 -0
  26. package/es/types/Enum/ClientOrProspect.js +16 -0
  27. package/es/types/Enum/ClientOrProspect.js.map +1 -0
  28. package/es/types/Enum/MailAuto.d.ts +1 -0
  29. package/es/types/Enum/MailAuto.d.ts.map +1 -1
  30. package/es/types/Enum/MailAuto.js +1 -0
  31. package/es/types/Enum/MailAuto.js.map +1 -1
  32. package/es/types/Enum/Quality.d.ts +8 -1
  33. package/es/types/Enum/Quality.d.ts.map +1 -1
  34. package/es/types/Enum/Quality.js +61 -0
  35. package/es/types/Enum/Quality.js.map +1 -1
  36. package/es/types/Interface/api/accountingFiles/Ocr.d.ts +1 -0
  37. package/es/types/Interface/api/accountingFiles/Ocr.d.ts.map +1 -1
  38. package/es/types/Interface/api/accountingFiles/Ocr.js.map +1 -1
  39. package/es/types/Interface/api/accountingFiles/OcrPayload.d.ts +1 -0
  40. package/es/types/Interface/api/accountingFiles/OcrPayload.d.ts.map +1 -1
  41. package/es/types/Interface/api/accountingFiles/OcrPayload.js.map +1 -1
  42. package/es/types/Interface/api/balanceSheet/Query.d.ts +3 -0
  43. package/es/types/Interface/api/balanceSheet/Query.d.ts.map +1 -1
  44. package/es/types/Interface/api/balanceSheet/Query.js +7 -0
  45. package/es/types/Interface/api/balanceSheet/Query.js.map +1 -1
  46. package/es/types/Interface/api/balanceSheet/Read.d.ts +5 -0
  47. package/es/types/Interface/api/balanceSheet/Read.d.ts.map +1 -1
  48. package/es/types/Interface/api/balanceSheet/Read.js.map +1 -1
  49. package/es/types/Interface/api/constitutionHistory/QueryPaginatedConstitutionHistory.d.ts +6 -0
  50. package/es/types/Interface/api/constitutionHistory/QueryPaginatedConstitutionHistory.d.ts.map +1 -0
  51. package/es/types/Interface/api/constitutionHistory/QueryPaginatedConstitutionHistory.js +32 -0
  52. package/es/types/Interface/api/constitutionHistory/QueryPaginatedConstitutionHistory.js.map +1 -0
  53. package/es/types/Interface/models/IConstitutionHistory.d.ts +9 -0
  54. package/es/types/Interface/models/IConstitutionHistory.d.ts.map +1 -0
  55. package/es/types/Interface/models/IConstitutionHistory.js +2 -0
  56. package/es/types/Interface/models/IConstitutionHistory.js.map +1 -0
  57. package/es/types/index.d.ts +3 -0
  58. package/es/types/index.d.ts.map +1 -1
  59. package/es/types/index.js +3 -0
  60. package/es/types/index.js.map +1 -1
  61. package/es/utils/vat/3310/century23.js +2 -2
  62. package/es/utils/vat/3310/century23.js.map +1 -1
  63. package/js/api/resources/BalanceSheet.js +5 -0
  64. package/js/api/resources/BalanceSheet.js.map +1 -1
  65. package/js/api/resources/ConstitutionHistory.js +19 -0
  66. package/js/api/resources/ConstitutionHistory.js.map +1 -0
  67. package/js/api/resources/Society.js.map +1 -1
  68. package/js/api/resources/statistic/ExpertAccountant.js +13 -0
  69. package/js/api/resources/statistic/ExpertAccountant.js.map +1 -1
  70. package/js/api/resources.js +3 -1
  71. package/js/api/resources.js.map +1 -1
  72. package/js/types/Enum/BalanceSheet.js +48 -19
  73. package/js/types/Enum/BalanceSheet.js.map +1 -1
  74. package/js/types/Enum/ClientOrProspect.js +18 -0
  75. package/js/types/Enum/ClientOrProspect.js.map +1 -0
  76. package/js/types/Enum/MailAuto.js +1 -0
  77. package/js/types/Enum/MailAuto.js.map +1 -1
  78. package/js/types/Enum/Quality.js +46 -0
  79. package/js/types/Enum/Quality.js.map +1 -1
  80. package/js/types/Interface/api/accountingFiles/Ocr.js.map +1 -1
  81. package/js/types/Interface/api/accountingFiles/OcrPayload.js.map +1 -1
  82. package/js/types/Interface/api/balanceSheet/Query.js +4 -1
  83. package/js/types/Interface/api/balanceSheet/Query.js.map +1 -1
  84. package/js/types/Interface/api/balanceSheet/Read.js.map +1 -1
  85. package/js/types/Interface/api/constitutionHistory/QueryPaginatedConstitutionHistory.js +28 -0
  86. package/js/types/Interface/api/constitutionHistory/QueryPaginatedConstitutionHistory.js.map +1 -0
  87. package/js/types/Interface/models/IConstitutionHistory.js +6 -0
  88. package/js/types/Interface/models/IConstitutionHistory.js.map +1 -0
  89. package/js/types/index.js +30 -0
  90. package/js/types/index.js.map +1 -1
  91. package/js/utils/vat/3310/century23.js +2 -2
  92. package/js/utils/vat/3310/century23.js.map +1 -1
  93. package/package.json +1 -1
  94. package/ts/api/resources/BalanceSheet.ts +5 -1
  95. package/ts/api/resources/ConstitutionHistory.ts +20 -0
  96. package/ts/api/resources/Society.ts +2 -2
  97. package/ts/api/resources/statistic/ExpertAccountant.ts +13 -0
  98. package/ts/api/resources.ts +2 -0
  99. package/ts/types/Enum/BalanceSheet.ts +53 -18
  100. package/ts/types/Enum/ClientOrProspect.ts +15 -0
  101. package/ts/types/Enum/MailAuto.ts +1 -0
  102. package/ts/types/Enum/Quality.ts +63 -1
  103. package/ts/types/Interface/api/accountingFiles/Ocr.ts +1 -0
  104. package/ts/types/Interface/api/accountingFiles/OcrPayload.ts +1 -0
  105. package/ts/types/Interface/api/balanceSheet/Query.ts +6 -0
  106. package/ts/types/Interface/api/balanceSheet/Read.ts +6 -0
  107. package/ts/types/Interface/api/constitutionHistory/QueryPaginatedConstitutionHistory.ts +21 -0
  108. package/ts/types/Interface/models/IConstitutionHistory.ts +8 -0
  109. package/ts/types/index.ts +3 -0
  110. package/ts/utils/vat/3310/century23.ts +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silexpert/core",
3
- "version": "1.1.109",
3
+ "version": "1.1.112",
4
4
  "description": "Silex Core perform HTTP Request and object binding. Silex core helps developers to retrieve and return formatted object",
5
5
  "homepage": "https://gitlab.compta-clementine.fr/dev/silex-api",
6
6
  "main": "js/index.js",
@@ -1,4 +1,4 @@
1
- import { IBalanceSheet, QueryBalanceSheetStatistic, ReadBalanceSheetStatistic, ReadFreelanceTurnover, UpdateBalanceSheet } from '../..';
1
+ import { IBalanceSheet, QueryBalanceSheetMonthlyStatistic, QueryBalanceSheetStatistic, ReadBalanceSheetMonthlyStatistic, ReadBalanceSheetStatistic, ReadFreelanceTurnover, UpdateBalanceSheet } from '../..';
2
2
  import { Resource } from '../Resource';
3
3
 
4
4
  export class BalanceSheet extends Resource {
@@ -6,6 +6,10 @@ export class BalanceSheet extends Resource {
6
6
  return this.axios.$get('/exercice/balanceSheet/statistics', { params });
7
7
  }
8
8
 
9
+ getMonthlyStatistics(params: QueryBalanceSheetMonthlyStatistic): Promise<ReadBalanceSheetMonthlyStatistic> {
10
+ return this.axios.$get('/exercice/balanceSheet/monthly-statistics', { params });
11
+ }
12
+
9
13
  getPdf(params: { idExercice: number }): Promise<Buffer> {
10
14
  return this.axios.$get(`/exercice/${params.idExercice}/balanceSheet/pdf`, {
11
15
  responseType: 'arraybuffer',
@@ -0,0 +1,20 @@
1
+ import { Resource } from '../Resource';
2
+ import {
3
+ IConstitutionHistory,
4
+ BasePaginate,
5
+ QueryPaginatedConstitutionHistory,
6
+ } from '../../types';
7
+
8
+ export class ConstitutionHistory extends Resource {
9
+ getPaginated(
10
+ params: QueryPaginatedConstitutionHistory,
11
+ ): Promise<BasePaginate<IConstitutionHistory>> {
12
+ return this.axios.$get('/constitution/history/paginated', {
13
+ params,
14
+ });
15
+ }
16
+
17
+ create(payload: ConstitutionHistory): Promise<IConstitutionHistory> {
18
+ return this.axios.$post('/constitution/history', payload);
19
+ }
20
+ }
@@ -23,11 +23,11 @@ import {
23
23
  } from '../../types';
24
24
 
25
25
  export class Society extends Resource {
26
- public get(params: QuerySociety): Promise<Society> {
26
+ public get(params: QuerySociety): Promise<ISociety> {
27
27
  return this.axios.$get('/society', { params });
28
28
  }
29
29
 
30
- public getPaginated(params: QueryPaginatedSociety, cancelToken?: CancelToken): Promise<Society[]> {
30
+ public getPaginated(params: QueryPaginatedSociety, cancelToken?: CancelToken): Promise<ISociety[]> {
31
31
  return this.axios.$get('/society/paginated', {
32
32
  ...(cancelToken ? { cancelToken } : {}),
33
33
  params,
@@ -15,6 +15,19 @@ export class StatisticExpertAccountant extends Resource {
15
15
  return this.axios.$get('/statistic-expert-accountant/production', { params });
16
16
  }
17
17
 
18
+ /**
19
+ * Retourne les statistiques de production pour un ou plusieurs expert comptable
20
+ * @param {QueryGetExpertAccountant} payload
21
+ * @returns {JSON}
22
+ */
23
+ public getMonthProduction(payload: QueryGetExpertAccountant): Promise<number> {
24
+ const params = {
25
+ ...payload,
26
+ type: StatisticType.EXPERT_ACCOUNTANT_PRODUCTION,
27
+ };
28
+ return this.axios.$get('/statistic-expert-accountant/month-production', { params });
29
+ }
30
+
18
31
  /**
19
32
  * Retourne les statistiques de relation client pour un expert comptable
20
33
  * @param {QueryGetExpertAccountant} payload
@@ -131,6 +131,7 @@ import { VisualizedInformation } from './resources/VisualizedInformation';
131
131
  import { Fusion } from './resources/Fusion';
132
132
  import { LeadsToPartners } from './resources/LeadsToPartners';
133
133
  import { ChangeLog } from './resources/ChangeLog';
134
+ import { ConstitutionHistory } from './resources/ConstitutionHistory';
134
135
 
135
136
  export const resources = {
136
137
  simulation: Simulation,
@@ -266,4 +267,5 @@ export const resources = {
266
267
  fusion: Fusion,
267
268
  leadsToPartners: LeadsToPartners,
268
269
  changeLog: ChangeLog,
270
+ constitutionHistory: ConstitutionHistory,
269
271
  };
@@ -27,6 +27,10 @@ export enum BalanceSheetState {
27
27
  REFUSED_BY_SIE_DEFAULT = 22,
28
28
  FIX_IN_PROGRESS = 23,
29
29
  ACCEPTED_BY_SIE_IN_STATE = 24,
30
+ SENDING_QUESTIONNAIRE = 25,
31
+ COMPLETE_QUESTIONNAIRE = 26,
32
+ PROCESSING_ITEMS_IN_PROGRESS = 27,
33
+ ABANDONED_FORECAST = 28,
30
34
  }
31
35
 
32
36
  export const BalanceSheetDetails = [
@@ -35,7 +39,7 @@ export const BalanceSheetDetails = [
35
39
  text: 'À faire',
36
40
  color: 'grey',
37
41
  textColor: 'grey--text',
38
- forRoles: [['front_office'], ['front_office_express'], ['expert'], ['customer_success'], ['facturation']],
42
+ forRoles: [['front_office'], ['expert'], ['customer_success'], ['facturation']],
39
43
  },
40
44
  {
41
45
  text: 'En cours de prod.',
@@ -43,7 +47,7 @@ export const BalanceSheetDetails = [
43
47
  alias: 'ENC',
44
48
  color: 'grey',
45
49
  textColor: 'grey--text ',
46
- forRoles: [['front_office'], ['front_office_express'], ['expert']],
50
+ forRoles: [['front_office'], ['expert']],
47
51
  },
48
52
  {
49
53
  text: 'Att. retour client',
@@ -51,14 +55,14 @@ export const BalanceSheetDetails = [
51
55
  alias: 'ARC',
52
56
  color: 'cyan',
53
57
  textColor: 'cyan--text',
54
- forRoles: [['front_office'], ['front_office_express'], ['expert']],
58
+ forRoles: [['front_office'], ['expert']],
55
59
  },
56
60
  {
57
61
  text: 'À réviser',
58
62
  value: BalanceSheetState.TO_REVISE,
59
63
  color: 'purple lighten-2',
60
64
  textColor: 'purple--text',
61
- forRoles: [['front_office'], ['front_office_express'], ['expert']],
65
+ forRoles: [['front_office'], ['expert']],
62
66
  },
63
67
  {
64
68
  text: 'À revoir',
@@ -73,7 +77,7 @@ export const BalanceSheetDetails = [
73
77
  value: BalanceSheetState.TO_SUPERVISE,
74
78
  color: 'teal',
75
79
  textColor: 'teal--text',
76
- forRoles: [['front_office'], ['front_office_express'], ['expert']],
80
+ forRoles: [['front_office'], ['expert']],
77
81
  },
78
82
  {
79
83
  text: 'À envoyer au client',
@@ -87,7 +91,7 @@ export const BalanceSheetDetails = [
87
91
  value: BalanceSheetState.SENDED_TO_CLIENT,
88
92
  color: 'blue',
89
93
  textColor: 'blue--text',
90
- forRoles: [['front_office'], ['front_office_express'], ['expert']],
94
+ forRoles: [['front_office'], ['expert']],
91
95
  },
92
96
  {
93
97
  text: 'Accepté par le client',
@@ -95,42 +99,42 @@ export const BalanceSheetDetails = [
95
99
  color: 'blue darken-2',
96
100
  textColor: 'blue--text ',
97
101
  alias: 'APC',
98
- forRoles: [['front_office'], ['front_office_express'], ['expert']],
102
+ forRoles: [['front_office'], ['expert']],
99
103
  },
100
104
  {
101
105
  text: 'Refusé par le client',
102
106
  value: BalanceSheetState.REFUSED_BY_CLIENT,
103
107
  color: 'red darken-3',
104
108
  textColor: 'error--text text--darken-2',
105
- forRoles: [['front_office'], ['front_office_express'], ['expert']],
109
+ forRoles: [['front_office'], ['expert']],
106
110
  },
107
111
  {
108
112
  text: 'Envoyé au SIE',
109
113
  value: BalanceSheetState.SENDED_TO_SIE,
110
114
  color: 'blue darken-4',
111
115
  textColor: 'blue--text',
112
- forRoles: [['front_office'], ['front_office_express'], ['expert']],
116
+ forRoles: [['front_office'], ['expert']],
113
117
  },
114
118
  {
115
119
  value: BalanceSheetState.ACCEPTED_BY_SIE,
116
120
  text: 'Accepté au SIE',
117
121
  color: 'green darken-1',
118
122
  textColor: 'green--text',
119
- forRoles: [['front_office'], ['front_office_express'], ['expert']],
123
+ forRoles: [['front_office'], ['expert']],
120
124
  },
121
125
  {
122
126
  text: 'Refus SIE',
123
127
  value: BalanceSheetState.REFUSED_BY_SIE,
124
128
  color: 'red darken-3',
125
129
  textColor: 'green--text ',
126
- forRoles: [['front_office'], ['front_office_express'], ['expert']],
130
+ forRoles: [['front_office'], ['expert']],
127
131
  },
128
132
  {
129
133
  text: 'Envoi provisoire SIE',
130
134
  value: BalanceSheetState.SENDED_PROVISIONALLY_TO_SIE,
131
135
  color: 'green darken-4',
132
136
  textColor: 'green--text ',
133
- forRoles: [['front_office'], ['front_office_express'], ['expert']],
137
+ forRoles: [['front_office'], ['expert']],
134
138
  },
135
139
  {
136
140
  value: BalanceSheetState.NOT_SUBJECT_TO,
@@ -166,45 +170,76 @@ export const BalanceSheetDetails = [
166
170
  value: BalanceSheetState.ACCEPTED_BY_CLIENT_DEFAULT,
167
171
  color: 'green darken-2',
168
172
  textColor: 'green--text',
169
- forRoles: [['front_office'], ['front_office_express'], ['expert']],
173
+ forRoles: [['front_office'], ['expert']],
170
174
  },
171
175
  {
172
176
  text: 'Accepté SIE par défaut',
173
177
  value: BalanceSheetState.ACCEPTED_BY_SIE_DEFAULT,
174
178
  color: 'green darken-2',
175
179
  colorText: 'green--text',
176
- forRoles: [['front_office'], ['front_office_express'], ['expert']],
180
+ forRoles: [['front_office'], ['expert']],
177
181
  },
178
182
  {
179
183
  text: 'Envoyé SIE par défaut',
180
184
  value: BalanceSheetState.SENDED_TO_SIE_DEFAULT,
181
185
  color: 'blue lighten-3',
182
186
  textColor: 'blue--text text--lighten-3',
183
- forRoles: [['front_office'], ['front_office_express'], ['expert']],
187
+ forRoles: [['front_office'], ['expert']],
184
188
  },
185
189
  {
186
190
  text: 'Refus SIE par défaut',
187
191
  value: BalanceSheetState.REFUSED_BY_SIE_DEFAULT,
188
192
  color: 'error darken-2',
189
193
  colorText: 'error--text text--darken-2',
190
- forRoles: [['front_office'], ['front_office_express'], ['expert']],
194
+ forRoles: [['front_office'], ['expert']],
191
195
  },
192
196
  {
193
197
  text: 'Correctif en cours',
194
198
  value: BalanceSheetState.FIX_IN_PROGRESS,
195
199
  color: 'blue darken-4',
196
200
  textColor: 'blue--text',
197
- forRoles: [['front_office'], ['front_office_express'], ['expert']],
201
+ forRoles: [['front_office'], ['expert']],
198
202
  },
199
203
  {
200
204
  text: 'Accepté SIE en l\'état',
201
205
  value: BalanceSheetState.ACCEPTED_BY_SIE_IN_STATE,
202
206
  color: 'green darken-3',
203
207
  colorText: 'green--text',
204
- forRoles: [['front_office'], ['front_office_express'], ['expert']],
208
+ forRoles: [['front_office'], ['expert']],
205
209
  },
206
210
  ] as const;
207
211
 
212
+ export const ForecastBalanceSheetDetails = [
213
+ {
214
+ text: 'Envoi du questionnaire',
215
+ value: BalanceSheetState.SENDING_QUESTIONNAIRE,
216
+ color: 'green darken-3',
217
+ colorText: 'green--text',
218
+ forRoles: [['front_office'], ['expert']],
219
+ },
220
+ {
221
+ text: 'Questionnaire complet',
222
+ value: BalanceSheetState.COMPLETE_QUESTIONNAIRE,
223
+ color: 'green darken-3',
224
+ colorText: 'green--text',
225
+ forRoles: [['front_office'], ['expert']],
226
+ },
227
+ {
228
+ text: 'Traitement éléments en cours',
229
+ value: BalanceSheetState.PROCESSING_ITEMS_IN_PROGRESS,
230
+ color: 'green darken-3',
231
+ colorText: 'green--text',
232
+ forRoles: [['front_office'], ['expert']],
233
+ },
234
+ {
235
+ text: 'Prévisionnel abandonné',
236
+ value: BalanceSheetState.ABANDONED_FORECAST,
237
+ color: 'green darken-3',
238
+ colorText: 'green--text',
239
+ forRoles: [['front_office'], ['expert']],
240
+ },
241
+ ];
242
+
208
243
  export type BalanceSheetType = 'active' | 'passive';
209
244
 
210
245
  export type BalanceSheetField = {
@@ -0,0 +1,15 @@
1
+ export enum ClientOrProspect {
2
+ CLIENT = 1,
3
+ PROSPECT = 2,
4
+ }
5
+
6
+ export const ClientOrProspectList: Array<{ id: ClientOrProspect, label: string }> = [
7
+ {
8
+ id: ClientOrProspect.CLIENT,
9
+ label: 'Client',
10
+ },
11
+ {
12
+ id: ClientOrProspect.PROSPECT,
13
+ label: 'Prospect',
14
+ },
15
+ ];
@@ -113,6 +113,7 @@ export enum MailAuto {
113
113
  ASK_DOCUMENTS_FOR_BALANCE_SHEET = 138,
114
114
  ASK_SIGNED_DOCUMENTS_FOR_BALANCE_SHEET = 139,
115
115
  CUSTOMER_ACCEPTANCE_COMPANY_TAX = 140,
116
+ NEED_INFO_PREVISIONNEL = 141,
116
117
  FILING_CLERK_FORMALITY_FILE = 142,
117
118
  SEND_KBIS = 143,
118
119
  SOCIETY_DISSOLUTION_LIQUIDATION = 144,
@@ -10,4 +10,66 @@ export enum Quality {
10
10
  AE = 9,
11
11
  SECRETAIRE_GENERAL = 10,
12
12
  TRESORIER = 12,
13
- }
13
+ CONJOINT_COLLABORATEUR = 13,
14
+ ASSOCIE = 14,
15
+ PERSONNE_INTERMEDIAIRE = 15,
16
+ }
17
+
18
+ export const QualityList: Array<{ id: Quality, label: string }> = [
19
+ {
20
+ id: Quality.PRESIDENT,
21
+ label: 'Président',
22
+ },
23
+ {
24
+ id: Quality.PDG,
25
+ label: 'PDG',
26
+ },
27
+ {
28
+ id: Quality.DG,
29
+ label: 'Directeur général',
30
+ },
31
+ {
32
+ id: Quality.DGD,
33
+ label: 'Directeur général délégué',
34
+ },
35
+ {
36
+ id: Quality.DGA,
37
+ label: 'Directeur général adjoint',
38
+ },
39
+ {
40
+ id: Quality.GERANT,
41
+ label: 'Gérant',
42
+ },
43
+ {
44
+ id: Quality.CO_GERANT,
45
+ label: 'Co-gérant',
46
+ },
47
+ {
48
+ id: Quality.EI,
49
+ label: 'Entrepreneur individuel',
50
+ },
51
+ {
52
+ id: Quality.AE,
53
+ label: 'Auto-entrepreneur',
54
+ },
55
+ {
56
+ id: Quality.SECRETAIRE_GENERAL,
57
+ label: 'Secrétaire général',
58
+ },
59
+ {
60
+ id: Quality.TRESORIER,
61
+ label: 'Trésorier',
62
+ },
63
+ {
64
+ id: Quality.CONJOINT_COLLABORATEUR,
65
+ label: 'Conjoint collaborateur',
66
+ },
67
+ {
68
+ id: Quality.ASSOCIE,
69
+ label: 'Associé',
70
+ },
71
+ {
72
+ id: Quality.PERSONNE_INTERMEDIAIRE,
73
+ label: 'Personne intermédiaire',
74
+ },
75
+ ];
@@ -10,4 +10,5 @@ export interface IOcr {
10
10
  ht: number | any;
11
11
  Vendor: string | any;
12
12
  vendor_name: string | any;
13
+ Vendor_Id: string | any;
13
14
  }
@@ -5,6 +5,7 @@ export interface IOcrPayload extends Partial<IOcrPayloadOptionnal> {
5
5
  vatAmount: number;
6
6
  subAmount: number;
7
7
  merchantName: string;
8
+ siretOrSiren: string;
8
9
  }
9
10
 
10
11
  export interface IOcrPayloadOptionnal {
@@ -13,4 +13,10 @@ export class QueryBalanceSheetStatistic {
13
13
  @IsNumber()
14
14
  @IsOptional()
15
15
  idUser: number;
16
+ }
17
+
18
+ export class QueryBalanceSheetMonthlyStatistic {
19
+ @ApiProperty()
20
+ @IsDateString()
21
+ date: string;
16
22
  }
@@ -15,4 +15,10 @@ export type ReadBalanceSheetStatistic = {
15
15
  actualYear: ReadBalanceSheetYearStatistic;
16
16
  actualYearPlusOne: ReadBalanceSheetYearStatistic;
17
17
  }
18
+ };
19
+
20
+ export type ReadBalanceSheetMonthlyStatistic = {
21
+ idMonth: number;
22
+ done: number;
23
+ todo: number;
18
24
  };
@@ -0,0 +1,21 @@
1
+ import {
2
+ IsInt, IsOptional,
3
+ } from 'class-validator';
4
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
5
+
6
+ export class QueryPaginatedConstitutionHistory {
7
+ @ApiPropertyOptional({ default: 25 })
8
+ @IsOptional()
9
+ @IsInt()
10
+ limit?: number;
11
+
12
+ @ApiPropertyOptional({ default: 1 })
13
+ @IsOptional()
14
+ @IsInt()
15
+ page?: number;
16
+
17
+ @ApiProperty()
18
+ @IsOptional()
19
+ @IsInt()
20
+ idSociety?: number;
21
+ }
@@ -0,0 +1,8 @@
1
+ export interface IConstitutionHistory {
2
+ id?: number;
3
+ idState: number;
4
+ idUser: number;
5
+ idSociety: number;
6
+ createdAt?: Date;
7
+ updatedAt?: Date;
8
+ }
package/ts/types/index.ts CHANGED
@@ -309,6 +309,7 @@ export * from './Interface/models/IUnpaidCallHistory';
309
309
  export * from './Interface/models/IAppNotification';
310
310
  export * from './Interface/models/IBusinessSector';
311
311
  export * from './Interface/models/IUserChangeLog';
312
+ export * from './Interface/models/IConstitutionHistory';
312
313
  // Schemas
313
314
  export * from './Interface/schemas/IRegistrationDetail';
314
315
  export * from './Interface/schemas/ITransactionHistory';
@@ -480,6 +481,7 @@ export * from './Enum/CashDeskTransactionType';
480
481
  export * from './Enum/ThirdParty';
481
482
  export * from './Enum/PaymentExpectation';
482
483
  export * from './Enum/FollowList';
484
+ export * from './Enum/ClientOrProspect';
483
485
 
484
486
  // Interfaces API
485
487
  export * from './Interface/api/adjustment/Query';
@@ -675,6 +677,7 @@ export * from './Interface/api/inpi/inpi';
675
677
  export * from './Interface/api/team/QueryCreate';
676
678
  export * from './Interface/api/team/QueryGetAllWithIncludes';
677
679
  export * from './Interface/api/team/QueryUpdate';
680
+ export * from './Interface/api/constitutionHistory/QueryPaginatedConstitutionHistory';
678
681
 
679
682
  // export * from './Interface/api/survey/QuerySurvey';
680
683
  export * from './Interface/api/survey/ReadSurvey';
@@ -28,8 +28,8 @@ export function getCerfa3310Century23Payload(accountingEntries: IAccountingEntry
28
28
  const oldEntries = flatten(updatedEntries?.map((u) => u.old));
29
29
  const newEntries = flatten(updatedEntries?.map((u) => u.new));
30
30
 
31
- const collectedOldAmount = getAmountByAccountNumber(oldEntries, ['4457'], 0);
32
- const collectedNewAmount = getAmountByAccountNumber(newEntries, ['4457'], 0);
31
+ const collectedOldAmount = getAmountByAccountNumber(oldEntries, ['4457'], 0, true);
32
+ const collectedNewAmount = getAmountByAccountNumber(newEntries, ['4457'], 0, true);
33
33
 
34
34
  const deductedOldAmount = getAmountByAccountNumber(oldEntries, ['4456'], 0);
35
35
  const deductedNewAmount = getAmountByAccountNumber(newEntries, ['4456'], 0);