@silexpert/core 1.1.140 → 1.1.141

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 (134) hide show
  1. package/es/api/resources/AccountingFiles.js.map +1 -1
  2. package/es/api/resources/BalanceSheet.d.ts +1 -0
  3. package/es/api/resources/BalanceSheet.d.ts.map +1 -1
  4. package/es/api/resources/BalanceSheet.js +3 -0
  5. package/es/api/resources/BalanceSheet.js.map +1 -1
  6. package/es/api/resources/Revision.d.ts +6 -1
  7. package/es/api/resources/Revision.d.ts.map +1 -1
  8. package/es/api/resources/Revision.js +16 -1
  9. package/es/api/resources/Revision.js.map +1 -1
  10. package/es/api/resources/RevisionGuide.d.ts +2 -2
  11. package/es/api/resources/RevisionGuide.d.ts.map +1 -1
  12. package/es/api/resources/RevisionGuide.js.map +1 -1
  13. package/es/api/resources/VatControl.d.ts +3 -1
  14. package/es/api/resources/VatControl.d.ts.map +1 -1
  15. package/es/api/resources/VatControl.js +6 -0
  16. package/es/api/resources/VatControl.js.map +1 -1
  17. package/es/types/Enum/BalanceSheetQuestion.d.ts.map +1 -1
  18. package/es/types/Enum/BalanceSheetQuestion.js.map +1 -1
  19. package/es/types/Enum/BrandClementine.js +2 -2
  20. package/es/types/Enum/BrandClementine.js.map +1 -1
  21. package/es/types/Enum/BrandPourcentage.js +2 -2
  22. package/es/types/Enum/BrandPourcentage.js.map +1 -1
  23. package/es/types/Enum/RevisionGuide.d.ts +28 -0
  24. package/es/types/Enum/RevisionGuide.d.ts.map +1 -1
  25. package/es/types/Enum/RevisionGuide.js +183 -0
  26. package/es/types/Enum/RevisionGuide.js.map +1 -1
  27. package/es/types/Enum/VatControl.d.ts +12 -0
  28. package/es/types/Enum/VatControl.d.ts.map +1 -0
  29. package/es/types/Enum/VatControl.js +195 -0
  30. package/es/types/Enum/VatControl.js.map +1 -0
  31. package/es/types/Interface/api/balanceSheet/VatControl.d.ts +13 -0
  32. package/es/types/Interface/api/balanceSheet/VatControl.d.ts.map +1 -0
  33. package/es/types/Interface/api/balanceSheet/VatControl.js +2 -0
  34. package/es/types/Interface/api/balanceSheet/VatControl.js.map +1 -0
  35. package/es/types/Interface/api/cerfa/3310.d.ts +47 -0
  36. package/es/types/Interface/api/cerfa/3310.d.ts.map +1 -1
  37. package/es/types/Interface/api/cerfa/3310.js.map +1 -1
  38. package/es/types/Interface/api/registration/CreateRegistration.d.ts +1 -0
  39. package/es/types/Interface/api/registration/CreateRegistration.d.ts.map +1 -1
  40. package/es/types/Interface/api/registration/CreateRegistration.js +7 -0
  41. package/es/types/Interface/api/registration/CreateRegistration.js.map +1 -1
  42. package/es/types/Interface/api/revision/Create.d.ts +26 -0
  43. package/es/types/Interface/api/revision/Create.d.ts.map +1 -0
  44. package/es/types/Interface/api/revision/Create.js +133 -0
  45. package/es/types/Interface/api/revision/Create.js.map +1 -0
  46. package/es/types/Interface/api/revision/Query.d.ts +8 -0
  47. package/es/types/Interface/api/revision/Query.d.ts.map +1 -1
  48. package/es/types/Interface/api/revision/Query.js +24 -0
  49. package/es/types/Interface/api/revision/Query.js.map +1 -1
  50. package/es/types/Interface/api/vatControl/CreateVatControl.d.ts +5 -0
  51. package/es/types/Interface/api/vatControl/CreateVatControl.d.ts.map +1 -0
  52. package/es/types/Interface/api/vatControl/CreateVatControl.js +26 -0
  53. package/es/types/Interface/api/vatControl/CreateVatControl.js.map +1 -0
  54. package/es/types/Interface/api/vatControl/QueryVatControl.d.ts +4 -0
  55. package/es/types/Interface/api/vatControl/QueryVatControl.d.ts.map +1 -0
  56. package/es/types/Interface/api/vatControl/QueryVatControl.js +21 -0
  57. package/es/types/Interface/api/vatControl/QueryVatControl.js.map +1 -0
  58. package/es/types/Interface/models/ISupervisionPendingPoint.d.ts +10 -0
  59. package/es/types/Interface/models/ISupervisionPendingPoint.d.ts.map +1 -1
  60. package/es/types/Interface/models/ISupervisionPendingPoint.js.map +1 -1
  61. package/es/types/Interface/models/ISupervisionPendingPointReply.d.ts +13 -0
  62. package/es/types/Interface/models/ISupervisionPendingPointReply.d.ts.map +1 -0
  63. package/es/types/Interface/models/ISupervisionPendingPointReply.js +2 -0
  64. package/es/types/Interface/models/ISupervisionPendingPointReply.js.map +1 -0
  65. package/es/types/index.d.ts +6 -0
  66. package/es/types/index.d.ts.map +1 -1
  67. package/es/types/index.js +6 -0
  68. package/es/types/index.js.map +1 -1
  69. package/es/utils/phone.js +1 -1
  70. package/es/utils/phone.js.map +1 -1
  71. package/es/utils/vat/3310/century23.js +65 -65
  72. package/es/utils/vat/3310/century23.js.map +1 -1
  73. package/js/api/resources/AccountingFiles.js.map +1 -1
  74. package/js/api/resources/BalanceSheet.js +3 -0
  75. package/js/api/resources/BalanceSheet.js.map +1 -1
  76. package/js/api/resources/Revision.js +20 -1
  77. package/js/api/resources/Revision.js.map +1 -1
  78. package/js/api/resources/RevisionGuide.js.map +1 -1
  79. package/js/api/resources/VatControl.js +6 -0
  80. package/js/api/resources/VatControl.js.map +1 -1
  81. package/js/types/Enum/BalanceSheetQuestion.js.map +1 -1
  82. package/js/types/Enum/BrandClementine.js +2 -2
  83. package/js/types/Enum/BrandClementine.js.map +1 -1
  84. package/js/types/Enum/BrandPourcentage.js +2 -2
  85. package/js/types/Enum/BrandPourcentage.js.map +1 -1
  86. package/js/types/Enum/RevisionGuide.js +311 -0
  87. package/js/types/Enum/RevisionGuide.js.map +1 -1
  88. package/js/types/Enum/VatControl.js +162 -0
  89. package/js/types/Enum/VatControl.js.map +1 -0
  90. package/js/types/Interface/api/balanceSheet/VatControl.js +6 -0
  91. package/js/types/Interface/api/balanceSheet/VatControl.js.map +1 -0
  92. package/js/types/Interface/api/cerfa/3310.js.map +1 -1
  93. package/js/types/Interface/api/registration/CreateRegistration.js +1 -0
  94. package/js/types/Interface/api/registration/CreateRegistration.js.map +1 -1
  95. package/js/types/Interface/api/revision/Create.js +45 -0
  96. package/js/types/Interface/api/revision/Create.js.map +1 -0
  97. package/js/types/Interface/api/revision/Query.js +9 -1
  98. package/js/types/Interface/api/revision/Query.js.map +1 -1
  99. package/js/types/Interface/api/vatControl/CreateVatControl.js +27 -0
  100. package/js/types/Interface/api/vatControl/CreateVatControl.js.map +1 -0
  101. package/js/types/Interface/api/vatControl/QueryVatControl.js +26 -0
  102. package/js/types/Interface/api/vatControl/QueryVatControl.js.map +1 -0
  103. package/js/types/Interface/models/ISupervisionPendingPoint.js.map +1 -1
  104. package/js/types/Interface/models/ISupervisionPendingPointReply.js +6 -0
  105. package/js/types/Interface/models/ISupervisionPendingPointReply.js.map +1 -0
  106. package/js/types/index.js +96 -36
  107. package/js/types/index.js.map +1 -1
  108. package/js/utils/phone.js +1 -1
  109. package/js/utils/phone.js.map +1 -1
  110. package/js/utils/vat/3310/century23.js +65 -65
  111. package/js/utils/vat/3310/century23.js.map +1 -1
  112. package/package.json +1 -1
  113. package/ts/api/resources/AccountingFiles.ts +1 -1
  114. package/ts/api/resources/BalanceSheet.ts +4 -0
  115. package/ts/api/resources/Revision.ts +22 -2
  116. package/ts/api/resources/RevisionGuide.ts +2 -2
  117. package/ts/api/resources/VatControl.ts +10 -1
  118. package/ts/types/Enum/BalanceSheetQuestion.ts +0 -1
  119. package/ts/types/Enum/BrandClementine.ts +2 -2
  120. package/ts/types/Enum/BrandPourcentage.ts +2 -2
  121. package/ts/types/Enum/RevisionGuide.ts +197 -1
  122. package/ts/types/Enum/VatControl.ts +198 -0
  123. package/ts/types/Interface/api/balanceSheet/VatControl.ts +10 -0
  124. package/ts/types/Interface/api/cerfa/3310.ts +49 -0
  125. package/ts/types/Interface/api/registration/CreateRegistration.ts +6 -0
  126. package/ts/types/Interface/api/revision/Create.ts +105 -0
  127. package/ts/types/Interface/api/revision/Query.ts +22 -0
  128. package/ts/types/Interface/api/vatControl/CreateVatControl.ts +14 -0
  129. package/ts/types/Interface/api/vatControl/QueryVatControl.ts +10 -0
  130. package/ts/types/Interface/models/ISupervisionPendingPoint.ts +10 -0
  131. package/ts/types/Interface/models/ISupervisionPendingPointReply.ts +16 -0
  132. package/ts/types/index.ts +6 -0
  133. package/ts/utils/phone.ts +1 -1
  134. package/ts/utils/vat/3310/century23.ts +26 -26
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silexpert/core",
3
- "version": "1.1.140",
3
+ "version": "1.1.141",
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",
@@ -18,7 +18,7 @@ export class AccountingFiles extends Resource {
18
18
  params.files.forEach((file) => {
19
19
  sendAccountingFiles.append('files', file);
20
20
  });
21
-
21
+
22
22
  return this.axios.$post('/society/accountingFiles', sendAccountingFiles, { headers: { 'Content-Type': 'multipart/form-data' } });
23
23
  }
24
24
 
@@ -39,4 +39,8 @@ export class BalanceSheet extends Resource {
39
39
  update(id: number, params: UpdateBalanceSheet): Promise<IBalanceSheet> {
40
40
  return this.axios.$put(`/exercice/balanceSheet/${id}`, params);
41
41
  }
42
+
43
+ getByExercice(idExercice: number): Promise<IBalanceSheet | null> {
44
+ return this.axios.$get(`/exercices/${idExercice}/balance-sheets`);
45
+ }
42
46
  }
@@ -8,7 +8,7 @@ import {
8
8
  QueryRevisionPaginate,
9
9
  IAccountingTransaction,
10
10
  QueryRevisionApprobation,
11
- QueryRevisionAccountComment, IAccountDetail,
11
+ QueryRevisionAccountComment, IAccountDetail, ICycle, QueryRevisionPendingPoint, ISupervisionPendingPoint, QueryRevisionGenericPendingPoint, CreateOrUpdateState, ISupervisionPendingPointReply, CreateReply,
12
12
  } from '../..';
13
13
 
14
14
  export class Revision extends Resource {
@@ -49,6 +49,26 @@ export class Revision extends Resource {
49
49
  }
50
50
 
51
51
  comment(id: number, params: QueryRevisionAccountComment): Promise<IAccountDetail[]> {
52
- return this.axios.post(`/revisions/accounts/${id}/comment`, params);
52
+ return this.axios.$post(`/revisions/accounts/${id}/comment`, params);
53
+ }
54
+
55
+ getAllGenericPendingPoints(params: QueryRevisionGenericPendingPoint): Promise<ICycle[]> {
56
+ return this.axios.$get('/supervisions/generic-pending-points', { params });
57
+ }
58
+
59
+ getAllPendingPoints(params: QueryRevisionPendingPoint): Promise<ISupervisionPendingPoint[]> {
60
+ return this.axios.$get('/supervisions/pending-points', { params });
61
+ }
62
+
63
+ updateOrCreatePendingPoints(params: CreateOrUpdateState): Promise<ISupervisionPendingPoint[]> {
64
+ return this.axios.$post('/supervisions/pending-points', params);
65
+ }
66
+
67
+ createReply(id: number, params: CreateReply): Promise<ISupervisionPendingPointReply> {
68
+ return this.axios.$post(`supervisions/pending-points/${id}/reply`, params);
69
+ }
70
+
71
+ deleteReply(id: number): Promise<boolean> {
72
+ return this.axios.$delete(`supervisions/pending-points/reply/${id}`);
53
73
  }
54
74
  }
@@ -1,5 +1,5 @@
1
1
  import { Resource } from '../Resource';
2
- import { CreateRevisionGuide, IRevisionGuide } from '../../types';
2
+ import { CreateRevisionGuide, IGedFile, IRevisionGuide } from '../../types';
3
3
 
4
4
  export class RevisionGuide extends Resource {
5
5
  getAll(idBalanceSheet: number): Promise<IRevisionGuide[]> {
@@ -10,7 +10,7 @@ export class RevisionGuide extends Resource {
10
10
  return this.axios.$post(`/balancesheet/${idBalanceSheet}/revisionGuide`, payload);
11
11
  }
12
12
 
13
- generateFile(idBalanceSheet: number): Promise<IRevisionGuide[]> {
13
+ generateFile(idBalanceSheet: number): Promise<IGedFile> {
14
14
  return this.axios.$post(`/balancesheet/${idBalanceSheet}/revisionGuide/file`);
15
15
  }
16
16
  }
@@ -1,5 +1,5 @@
1
1
  import {
2
- CreateExerciceQuestions, IBalanceSheetQuestion, IExerciceQuestion, QuestionTheme,
2
+ CreateExerciceQuestions, CreateVatControl, IBalanceSheetQuestion, IExerciceQuestion, QuestionTheme, ReadPdfizer, ReadVatControlCuteOff,
3
3
  } from '../..';
4
4
  import { Resource } from '../Resource';
5
5
 
@@ -19,4 +19,13 @@ export class VatControl extends Resource {
19
19
  bulkUpdate(idExercice: number, payload: CreateExerciceQuestions): Promise<void> {
20
20
  return this.axios.$post(`/balance-sheets/exercices/${idExercice}/questions/batch-update`, payload);
21
21
  }
22
+
23
+ getAllCuteOffs(idExercice: number): Promise<ReadVatControlCuteOff[]> {
24
+ return this.axios.$get(`/exercices/${idExercice}/vat/controls/cute-offs`);
25
+ }
26
+
27
+ create(idExercice: number, payload: CreateVatControl): Promise<ReadPdfizer> {
28
+ return this.axios.$post(`/exercices/${idExercice}/vat/controls`, payload);
29
+ }
30
+
22
31
  }
@@ -13,7 +13,6 @@ export enum QuestionTheme {
13
13
  TAX_CREDIT = 'TAX_CREDIT',
14
14
  IS_2033 = 'IS_2033',
15
15
  HOLDINGS = 'HOLDINGS',
16
-
17
16
  }
18
17
 
19
18
  export enum QuestionCategory {
@@ -242,7 +242,7 @@ export const BrandClementine = [
242
242
  needBgImage: false,
243
243
  idPrestationType: allPrestationsWithBrochure.filter(p => p !== PrestationType.BILAN_PREVISIONNEL),
244
244
  versionable: true,
245
- keyName: 'idPrestationSocial',
245
+ keyName: 'idPrestationDeclarationIR',
246
246
  },
247
247
  {
248
248
  label: 'Accompagnement contrôle fiscal',
@@ -250,7 +250,7 @@ export const BrandClementine = [
250
250
  needBgImage: false,
251
251
  idPrestationType: allPrestationsWithBrochure.filter(p => p !== PrestationType.BILAN_PREVISIONNEL),
252
252
  versionable: true,
253
- keyName: 'idPrestationSocial',
253
+ keyName: 'idPrestationControleFiscal',
254
254
  },
255
255
  {
256
256
  label: 'Bilan Prévisionnel',
@@ -219,7 +219,7 @@ export const BrandPourcentage = [
219
219
  needBgImage: false,
220
220
  idPrestationType: allPrestationsWithBrochure.filter(p => p !== PrestationType.BILAN_PREVISIONNEL),
221
221
  versionable: true,
222
- keyName: 'idPrestationSocial',
222
+ keyName: 'idPrestationDeclarationIR',
223
223
  },
224
224
  {
225
225
  label: 'Accompagnement contrôle fiscal',
@@ -227,7 +227,7 @@ export const BrandPourcentage = [
227
227
  needBgImage: false,
228
228
  idPrestationType: allPrestationsWithBrochure.filter(p => p !== PrestationType.BILAN_PREVISIONNEL),
229
229
  versionable: true,
230
- keyName: 'idPrestationSocial',
230
+ keyName: 'idPrestationControleFiscal',
231
231
  },
232
232
  {
233
233
  label: 'Bilan Prévisionnel',
@@ -155,6 +155,21 @@ export enum RevisionGuideLabel {
155
155
  SPEC_FISCALE_N1 = 'Spécificité fiscale à prévoir sur l’année N+1',
156
156
  }
157
157
 
158
+ export enum RevisionGuideTagId {
159
+ ACCOUNTANT = 1,
160
+ SURVEY = 2,
161
+ CONTROL_QUALITY_SOCIETY = 3,
162
+ CONTROL_QUALITY_ASSOCIATION = 4,
163
+ CONTROL_QUALITY_ARTISANS = 5,
164
+ CONTROL_QUALITY_IMMOBILIER = 6,
165
+ CONTROL_QUALITY_OCCASION = 7,
166
+ CONTROL_QUALITY_COMMERCANT = 8,
167
+ CONTROL_QUALITY_TABAC = 9,
168
+ CONTROL_QUALITY_CAFE = 10,
169
+ CONTROL_QUALITY_NEGOCE = 11,
170
+ EVOLUTION = 12,
171
+ }
172
+
158
173
  export const RevisionGuideYesQuestion = {
159
174
  [RevisionGuideId.VARATION_CA]: 'Le CA a évolué de :',
160
175
  [RevisionGuideId.VARATION_MARGE]: 'La marge a évolué de :',
@@ -162,4 +177,185 @@ export const RevisionGuideYesQuestion = {
162
177
  [RevisionGuideId.DISSO_LIQUI_EN_COURS]: 'Une dissolution est à prévoir pour l’exercice à suivre.',
163
178
  [RevisionGuideId.FAIT_ANNEE]: 'les faits marquant durant cette exercice sont :',
164
179
  [RevisionGuideId.SPEC_FISCALE_N1]: 'La fiscalité de l’exerce révisé ce jour demande une intention particulière sur l’année suivante.',
165
- } as const;
180
+ } as const;
181
+
182
+ export type RevisionGuideQuestionsTabContent = {
183
+ id: number;
184
+ title: string;
185
+ slug: string;
186
+ forceComment: boolean;
187
+ items: { label: string; id: number; }[]
188
+ };
189
+
190
+ export type RevisionGuideQuestionsTab = {
191
+ [key: string]: RevisionGuideQuestionsTabContent
192
+ };
193
+
194
+ export const revisionGuideQuestionsTab: RevisionGuideQuestionsTab = {
195
+ ACCOUNTANT: {
196
+ id: RevisionGuideTagId.ACCOUNTANT,
197
+ title: 'Tenue comptable',
198
+ slug: 'aq',
199
+ forceComment: false,
200
+ items: [
201
+ { label: RevisionGuideLabel.N1ELEMENT, id: RevisionGuideId.N1ELEMENT },
202
+ { label: RevisionGuideLabel.N1ELEMENTJUSTIF, id: RevisionGuideId.N1ELEMENTJUSTIF },
203
+ { label: RevisionGuideLabel.IMMON1, id: RevisionGuideId.IMMON1 },
204
+ { label: RevisionGuideLabel.FECN1, id: RevisionGuideId.FECN1 },
205
+ { label: RevisionGuideLabel.CAPITAUX, id: RevisionGuideId.CAPITAUX },
206
+ { label: RevisionGuideLabel.CAPITAUX_PERTE, id: RevisionGuideId.CAPITAUX_PERTE },
207
+ { label: RevisionGuideLabel.EMPRUNT, id: RevisionGuideId.EMPRUNT },
208
+ { label: RevisionGuideLabel.CONTRAT_EMPRUNT, id: RevisionGuideId.CONTRAT_EMPRUNT },
209
+ { label: RevisionGuideLabel.IMMO, id: RevisionGuideId.IMMO },
210
+ { label: RevisionGuideLabel.STOCK, id: RevisionGuideId.STOCK },
211
+ { label: RevisionGuideLabel.SALAIRE, id: RevisionGuideId.SALAIRE },
212
+ { label: RevisionGuideLabel.ETATS, id: RevisionGuideId.ETATS },
213
+ { label: RevisionGuideLabel.SALAIRE_DADS, id: RevisionGuideId.SALAIRE_DADS },
214
+ { label: RevisionGuideLabel.SALAIRE_TNS, id: RevisionGuideId.SALAIRE_TNS },
215
+ { label: RevisionGuideLabel.BANK, id: RevisionGuideId.BANK },
216
+ { label: RevisionGuideLabel.SOLDE_RAPPRO, id: RevisionGuideId.SOLDE_RAPPRO },
217
+ { label: RevisionGuideLabel.RELEVES_BANCAIRES, id: RevisionGuideId.RELEVES_BANCAIRES },
218
+ { label: RevisionGuideLabel.CAISSE_OK, id: RevisionGuideId.CAISSE_OK },
219
+ { label: RevisionGuideLabel.CHARGES, id: RevisionGuideId.CHARGES },
220
+ { label: RevisionGuideLabel.BAIL_COMMERCIAL, id: RevisionGuideId.BAIL_COMMERCIAL },
221
+ { label: RevisionGuideLabel.PRODUCT_GESCOM, id: RevisionGuideId.PRODUCT_GESCOM },
222
+ { label: RevisionGuideLabel.TICKET_Z, id: RevisionGuideId.TICKET_Z },
223
+ { label: RevisionGuideLabel.ETATS_CFE, id: RevisionGuideId.ETATS_CFE },
224
+ { label: RevisionGuideLabel.COMPTE_SOLDE, id: RevisionGuideId.COMPTE_SOLDE },
225
+ { label: RevisionGuideLabel.ETATS_AMORTISSEMENTS, id: RevisionGuideId.ETATS_AMORTISSEMENTS },
226
+ { label: RevisionGuideLabel.AUTRE_COMPTE, id: RevisionGuideId.AUTRE_COMPTE },
227
+ { label: RevisionGuideLabel.BROCHURE_GENEREE, id: RevisionGuideId.BROCHURE_GENEREE },
228
+ { label: RevisionGuideLabel.LIASSE_GENEREE, id: RevisionGuideId.LIASSE_GENEREE },
229
+ { label: RevisionGuideLabel.GENERATION_TVA, id: RevisionGuideId.GENERATION_TVA },
230
+ { label: RevisionGuideLabel.GENERATION_IS, id: RevisionGuideId.GENERATION_IS },
231
+ { label: RevisionGuideLabel.A_SIGNER_ALL, id: RevisionGuideId.A_SIGNER_ALL },
232
+ ],
233
+ },
234
+ SURVEY: {
235
+ id: RevisionGuideTagId.SURVEY,
236
+ title: 'Sondage',
237
+ slug: 'sondage',
238
+ forceComment: false,
239
+ items: [
240
+ { label: RevisionGuideLabel.PERIODICITE, id: RevisionGuideId.PERIODICITE },
241
+ { label: RevisionGuideLabel.FACTURES_SUPERIEUR_500, id: RevisionGuideId.FACTURES_SUPERIEUR_500 },
242
+ { label: RevisionGuideLabel.CUTT_OFF, id: RevisionGuideId.CUTT_OFF },
243
+ { label: RevisionGuideLabel.FAE_AAE, id: RevisionGuideId.FAE_AAE },
244
+ ],
245
+ },
246
+ CONTROL_QUALITY_SOCIETY: {
247
+ id: RevisionGuideTagId.CONTROL_QUALITY_SOCIETY,
248
+ title: 'Contrôle Qualité LAB (Entreprises)',
249
+ slug: 'aq',
250
+ forceComment: false,
251
+ items: [
252
+ { label: RevisionGuideLabel.DIFFICULTE_FINANCIERE, id: RevisionGuideId.DIFFICULTE_FINANCIERE },
253
+ { label: RevisionGuideLabel.CONTROLEE, id: RevisionGuideId.CONTROLEE },
254
+ { label: RevisionGuideLabel.SIEGE_SOCIAL_DANS_SOCIETE_DOMICILIATION, id: RevisionGuideId.SIEGE_SOCIAL_DANS_SOCIETE_DOMICILIATION },
255
+ { label: RevisionGuideLabel.PRETS_NON_ASSOCIES, id: RevisionGuideId.PRETS_NON_ASSOCIES },
256
+ { label: RevisionGuideLabel.FINANCEMENTS_ANORMAUX, id: RevisionGuideId.FINANCEMENTS_ANORMAUX },
257
+ { label: RevisionGuideLabel.OPERATION_CRYPTO, id: RevisionGuideId.OPERATION_CRYPTO },
258
+ ],
259
+ },
260
+ CONTROL_QUALITY_ASSOCIATION: {
261
+ id: RevisionGuideTagId.CONTROL_QUALITY_ASSOCIATION,
262
+ title: 'Contrôle Qualité LAB (Associations)',
263
+ slug: 'lab-association',
264
+ forceComment: false,
265
+ items: [
266
+ { label: RevisionGuideLabel.ASSOCIATION, id: RevisionGuideId.ASSOCIATION },
267
+ { label: RevisionGuideLabel.ASSOCIATION_CULTURELLE, id: RevisionGuideId.ASSOCIATION_CULTURELLE },
268
+ { label: RevisionGuideLabel.ASSOCIATION_DIRIGEE_ELU, id: RevisionGuideId.ASSOCIATION_DIRIGEE_ELU },
269
+ ],
270
+ },
271
+ CONTROL_QUALITY_ARTISANS: {
272
+ id: RevisionGuideTagId.CONTROL_QUALITY_ARTISANS,
273
+ title: 'Contrôle Qualité LAB (Artisans)',
274
+ slug: 'lab-artisans',
275
+ forceComment: false,
276
+ items: [
277
+ { label: RevisionGuideLabel.ARTISAN_BTP, id: RevisionGuideId.ARTISAN_BTP },
278
+ { label: RevisionGuideLabel.ENTREPRISE_BATIMENT, id: RevisionGuideId.ENTREPRISE_BATIMENT },
279
+ ],
280
+ },
281
+ CONTROL_QUALITY_IMMOBILIER: {
282
+ id: RevisionGuideTagId.CONTROL_QUALITY_IMMOBILIER,
283
+ title: 'Contrôle Qualité LAB (Immobilier)',
284
+ slug: 'lab-immobilier',
285
+ forceComment: false,
286
+ items: [
287
+ { label: RevisionGuideLabel.IMMOBILIER, id: RevisionGuideId.IMMOBILIER },
288
+ { label: RevisionGuideLabel.MARCHAND_BIENS_IMMOBILIER, id: RevisionGuideId.MARCHAND_BIENS_IMMOBILIER },
289
+ { label: RevisionGuideLabel.PROMOTION_IMMOBILIERE, id: RevisionGuideId.PROMOTION_IMMOBILIERE },
290
+ ],
291
+ },
292
+ CONTROL_QUALITY_OCCASION: {
293
+ id: RevisionGuideTagId.CONTROL_QUALITY_OCCASION,
294
+ title: 'Contrôle Qualité LAB (Occasion)',
295
+ slug: 'lab-occasion',
296
+ forceComment: false,
297
+ items: [
298
+ { label: RevisionGuideLabel.BIEN_OCCASION, id: RevisionGuideId.BIEN_OCCASION },
299
+ { label: RevisionGuideLabel.VENTE_VEHICULE_OCCASION, id: RevisionGuideId.VENTE_VEHICULE_OCCASION },
300
+ { label: RevisionGuideLabel.CASSE_AUTOMOBILE, id: RevisionGuideId.CASSE_AUTOMOBILE },
301
+ { label: RevisionGuideLabel.ANTIQUAIRE, id: RevisionGuideId.ANTIQUAIRE },
302
+ ],
303
+ },
304
+ CONTROL_QUALITY_COMMERCANT: {
305
+ id: RevisionGuideTagId.CONTROL_QUALITY_COMMERCANT,
306
+ title: 'Contrôle Qualité LAB (Commerçant)',
307
+ slug: 'lab-commercant',
308
+ forceComment: false,
309
+ items: [
310
+ { label: RevisionGuideLabel.COMMERCANT, id: RevisionGuideId.COMMERCANT },
311
+ { label: RevisionGuideLabel.BIJOUTIER, id: RevisionGuideId.BIJOUTIER },
312
+ { label: RevisionGuideLabel.AUTRES_COMMERCANT, id: RevisionGuideId.AUTRES_COMMERCANT },
313
+ { label: RevisionGuideLabel.ECOMMERCE_ETRANGER, id: RevisionGuideId.ECOMMERCE_ETRANGER },
314
+ ],
315
+ },
316
+ CONTROL_QUALITY_TABAC: {
317
+ id: RevisionGuideTagId.CONTROL_QUALITY_TABAC,
318
+ title: 'Contrôle Qualité LAB (Bureaux de Tabac)',
319
+ slug: 'lab-tabac',
320
+ forceComment: false,
321
+ items: [
322
+ { label: RevisionGuideLabel.BUREAU_TABAC, id: RevisionGuideId.BUREAU_TABAC },
323
+ { label: RevisionGuideLabel.FDJ, id: RevisionGuideId.FDJ },
324
+ ],
325
+ },
326
+ CONTROL_QUALITY_CAFE: {
327
+ id: RevisionGuideTagId.CONTROL_QUALITY_CAFE,
328
+ title: 'Contrôle Qualité LAB (Café, Hôtel)',
329
+ slug: 'lab-cafe',
330
+ forceComment: false,
331
+ items: [
332
+ { label: RevisionGuideLabel.CAFE, id: RevisionGuideId.CAFE },
333
+ { label: RevisionGuideLabel.ETABLISSEMENT_NUIT, id: RevisionGuideId.ETABLISSEMENT_NUIT },
334
+ ],
335
+ },
336
+ CONTROL_QUALITY_NEGOCE: {
337
+ id: RevisionGuideTagId.CONTROL_QUALITY_NEGOCE,
338
+ title: 'Contrôle Qualité LAB (Négoce)',
339
+ slug: 'lab-negoce',
340
+ forceComment: false,
341
+ items: [
342
+ { label: RevisionGuideLabel.NEGOCE, id: RevisionGuideId.NEGOCE },
343
+ { label: RevisionGuideLabel.IMPORT_EXPORT, id: RevisionGuideId.IMPORT_EXPORT },
344
+ ],
345
+ },
346
+ EVOLUTION: {
347
+ id: RevisionGuideTagId.EVOLUTION,
348
+ title: 'Evolution de l\'entreprise',
349
+ slug: 'evolution',
350
+ forceComment: true,
351
+ items: [
352
+ { label: RevisionGuideLabel.VARATION_CA, id: RevisionGuideId.VARATION_CA },
353
+ { label: RevisionGuideLabel.VARATION_MARGE, id: RevisionGuideId.VARATION_MARGE },
354
+ { label: RevisionGuideLabel.LETTRE_MISSION_A_JOUR, id: RevisionGuideId.LETTRE_MISSION_A_JOUR },
355
+ { label: RevisionGuideLabel.DISSO_LIQUI_EN_COURS, id: RevisionGuideId.DISSO_LIQUI_EN_COURS },
356
+ { label: RevisionGuideLabel.FAIT_ANNEE, id: RevisionGuideId.FAIT_ANNEE },
357
+ { label: RevisionGuideLabel.PREVISION_EVOLUTION, id: RevisionGuideId.PREVISION_EVOLUTION },
358
+ { label: RevisionGuideLabel.SPEC_FISCALE_N1, id: RevisionGuideId.SPEC_FISCALE_N1 },
359
+ ],
360
+ },
361
+ };
@@ -0,0 +1,198 @@
1
+ import { ReadVatControlCuteOff } from '../Interface/api/balanceSheet/VatControl';
2
+ import { Vat } from './Vat';
3
+
4
+
5
+ export const VatColumnsForControl = [
6
+ Vat.TX_20.id,
7
+ Vat.TX_10.id,
8
+ Vat.TX_5_5.id,
9
+ Vat.TX_8_5.id,
10
+ Vat.TX_2_1.id,
11
+ Vat.WITHOUT_TAXE.id,
12
+ Vat.INTRACOM_TX_20.id,
13
+ Vat.IMPORTATION_TX_20.id,
14
+ Vat.IMPORTATION_TX_10.id,
15
+ Vat.IMPORTATION_TX_8_5.id,
16
+ Vat.IMPORTATION_TX_5_5.id,
17
+ Vat.IMPORTATION_TX_2_1.id,
18
+ ];
19
+
20
+ export enum VatControlSection {
21
+ PRODUCTS = 1,
22
+ START_OF_EXERCISE = 2,
23
+ END_OF_EXERCISE = 3,
24
+ DIVERSE = 4,
25
+ SUB_TOTAL = 5,
26
+ COLLECTED = 6,
27
+ }
28
+
29
+ export const VatControlCuteOff: Array<ReadVatControlCuteOff> = [
30
+ {
31
+ label: 'FAE (facture à établir)',
32
+ number: '4181',
33
+ isAnouveaux: true,
34
+ isPositive: true,
35
+ section: VatControlSection.START_OF_EXERCISE,
36
+ },
37
+ {
38
+ label: 'FAE (facture à établir)',
39
+ number: '4181',
40
+ isAnouveaux: false,
41
+ isPositive: false,
42
+ section: VatControlSection.END_OF_EXERCISE,
43
+ },
44
+ {
45
+ label: 'Avoirs à établir',
46
+ number: '4198',
47
+ isAnouveaux: true,
48
+ isPositive: false,
49
+ section: VatControlSection.START_OF_EXERCISE,
50
+ },
51
+ {
52
+ label: 'Avoirs à établir',
53
+ number: '4198',
54
+ isAnouveaux: false,
55
+ isPositive: true,
56
+ section: VatControlSection.END_OF_EXERCISE,
57
+ },
58
+ {
59
+ label: 'Travaux facturés d\'avance',
60
+ isAnouveaux: true,
61
+ isPositive: false,
62
+ section: VatControlSection.START_OF_EXERCISE,
63
+ },
64
+ {
65
+ label: 'Travaux facturés d\'avance',
66
+ isAnouveaux: false,
67
+ isPositive: true,
68
+ section: VatControlSection.END_OF_EXERCISE,
69
+ },
70
+ {
71
+ label: 'Créances Clients',
72
+ number: '411',
73
+ isAnouveaux: true,
74
+ isPositive: true,
75
+ section: VatControlSection.START_OF_EXERCISE,
76
+ },
77
+ {
78
+ label: 'Créances Clients',
79
+ number: '411',
80
+ isAnouveaux: false,
81
+ isPositive: false,
82
+ section: VatControlSection.END_OF_EXERCISE,
83
+ },
84
+ {
85
+ label: 'Avances Clients',
86
+ number: '4191',
87
+ isAnouveaux: true,
88
+ isPositive: false,
89
+ section: VatControlSection.START_OF_EXERCISE,
90
+ },
91
+ {
92
+ label: 'Avances Clients',
93
+ number: '4191',
94
+ isAnouveaux: false,
95
+ isPositive: true,
96
+ section: VatControlSection.END_OF_EXERCISE,
97
+ },
98
+ {
99
+ label: 'Créances douteuses',
100
+ number: '416',
101
+ isAnouveaux: true,
102
+ isPositive: true,
103
+ section: VatControlSection.START_OF_EXERCISE,
104
+ },
105
+ {
106
+ label: 'Créances douteuses',
107
+ number: '416',
108
+ isAnouveaux: false,
109
+ isPositive: false,
110
+ section: VatControlSection.END_OF_EXERCISE,
111
+ },
112
+ {
113
+ label: 'Effets à recevoir',
114
+ number: '413',
115
+ isAnouveaux: true,
116
+ isPositive: true,
117
+ section: VatControlSection.START_OF_EXERCISE,
118
+ },
119
+ {
120
+ label: 'Effets à recevoir',
121
+ number: '413',
122
+ isAnouveaux: false,
123
+ isPositive: false,
124
+ section: VatControlSection.END_OF_EXERCISE,
125
+ },
126
+ {
127
+ label: 'Effets escomptés non échus',
128
+ isAnouveaux: true,
129
+ isPositive: true,
130
+ section: VatControlSection.START_OF_EXERCISE,
131
+ },
132
+ {
133
+ label: 'Effets escomptés non échus',
134
+ isAnouveaux: false,
135
+ isPositive: false,
136
+ section: VatControlSection.END_OF_EXERCISE,
137
+ },
138
+ {
139
+ label: 'Autres',
140
+ isAnouveaux: true,
141
+ isPositive: true,
142
+ section: VatControlSection.START_OF_EXERCISE,
143
+ },
144
+ {
145
+ label: 'Autres',
146
+ isAnouveaux: false,
147
+ isPositive: false,
148
+ section: VatControlSection.END_OF_EXERCISE,
149
+ },
150
+ {
151
+ label: 'Créances irrécouvrables',
152
+ isAnouveaux: false,
153
+ isPositive: true,
154
+ number: '654',
155
+ section: VatControlSection.DIVERSE,
156
+ },
157
+ {
158
+ label: 'Créances clients',
159
+ isAnouveaux: false,
160
+ isPositive: true,
161
+ number: '411',
162
+ section: VatControlSection.SUB_TOTAL,
163
+ },
164
+ {
165
+ label: 'Avances clients',
166
+ isAnouveaux: false,
167
+ isPositive: false,
168
+ number: '4191',
169
+ section: VatControlSection.SUB_TOTAL,
170
+ },
171
+ {
172
+ label: 'Créances douteuses',
173
+ isAnouveaux: false,
174
+ isPositive: true,
175
+ number: '416',
176
+ section: VatControlSection.SUB_TOTAL,
177
+ },
178
+ {
179
+ label: 'Effets à recevoir',
180
+ number: '413',
181
+ isAnouveaux: false,
182
+ isPositive: true,
183
+ section: VatControlSection.SUB_TOTAL,
184
+ },
185
+ {
186
+ label: 'Effets escomptés non échus',
187
+ isAnouveaux: false,
188
+ isPositive: true,
189
+ section: VatControlSection.SUB_TOTAL,
190
+ },
191
+ {
192
+ label: 'Solde TVA collectée',
193
+ isAnouveaux: false,
194
+ isPositive: true,
195
+ section: VatControlSection.COLLECTED,
196
+ number: '4457',
197
+ },
198
+ ];
@@ -0,0 +1,10 @@
1
+ import { VatControlSection } from '../../../Enum/VatControl';
2
+
3
+ export type ReadVatControlCuteOff = {
4
+ label: string;
5
+ number?: string;
6
+ isAnouveaux: boolean,
7
+ isPositive: boolean,
8
+ amounts?: Array<{ idVat: number, amount:number }>
9
+ section: VatControlSection;
10
+ };
@@ -209,6 +209,55 @@ export type PayloadCerfa3310_2023 = {
209
209
  regularizations?: number;
210
210
  internalUniq?: number;
211
211
  },
212
+ // MODULE DE CONTROLE DE TVA
213
+ vatControl?: {
214
+ france?: {
215
+ base20?: number;
216
+ base10?: number;
217
+ base8Dot5?: number;
218
+ base5Dot5?: number;
219
+ base2Dot1?: number;
220
+ };
221
+ other?: {
222
+ base20?: number;
223
+ base10?: number;
224
+ base5Dot5?: number;
225
+ base2Dot1?: number;
226
+ };
227
+ importations?: {
228
+ base20?: number;
229
+ base10?: number;
230
+ base8Dot5?: number;
231
+ base5Dot5?: number;
232
+ base2Dot1?: number;
233
+ };
234
+ intracomunity?: {
235
+ base20?: number;
236
+ };
237
+ regularisations?: {
238
+ base20?: number;
239
+ base10?: number;
240
+ base5Dot5?: number;
241
+ base2Dot1?: number;
242
+ case5B?: number;
243
+ };
244
+ untaxed?: {
245
+ exportation?: number;
246
+ importation?: number;
247
+ intracomunity?: number;
248
+ regularisation?: number;
249
+ other?: number;
250
+ };
251
+ deducted?: {
252
+ immobilization?: number;
253
+ abs?: number;
254
+ other?: number;
255
+ reported?: number;
256
+ case2C?: number;
257
+ };
258
+ refundAsked?: number;
259
+ };
260
+ // FIN MODULE CONTROLE TVA
212
261
  vat?: {
213
262
  oilProducts?: {
214
263
  normalRate20?: { base?: number }
@@ -125,6 +125,12 @@ export class UpdateOrCreateVatRegistration {
125
125
  @ToBoolean()
126
126
  @IsOptional()
127
127
  isTest?: boolean;
128
+
129
+ @ApiPropertyOptional()
130
+ @IsBoolean()
131
+ @ToBoolean()
132
+ @IsOptional()
133
+ isManuallyRegistered?: boolean;
128
134
  }
129
135
 
130
136
  export class CreateRegistrationDetail {