@silexpert/core 1.3.114 → 1.3.115-cerfa2050-2

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 (123) hide show
  1. package/dist/cjs/api/resources/AccountingFiles.d.ts.map +1 -1
  2. package/dist/cjs/api/resources/AccountingFiles.js +1 -0
  3. package/dist/cjs/api/resources/AccountingFiles.js.map +1 -1
  4. package/dist/cjs/api/resources/Inpi.d.ts +30 -0
  5. package/dist/cjs/api/resources/Inpi.d.ts.map +1 -1
  6. package/dist/cjs/api/resources/Inpi.js +40 -0
  7. package/dist/cjs/api/resources/Inpi.js.map +1 -1
  8. package/dist/cjs/types/Enum/Aspone.d.ts +8 -0
  9. package/dist/cjs/types/Enum/Aspone.d.ts.map +1 -1
  10. package/dist/cjs/types/Enum/Aspone.js +11 -1
  11. package/dist/cjs/types/Enum/Aspone.js.map +1 -1
  12. package/dist/cjs/types/Enum/BalanceSheet.d.ts +64 -0
  13. package/dist/cjs/types/Enum/BalanceSheet.d.ts.map +1 -1
  14. package/dist/cjs/types/Enum/BalanceSheet.js +152 -66
  15. package/dist/cjs/types/Enum/BalanceSheet.js.map +1 -1
  16. package/dist/cjs/types/Enum/BalanceSheetQuestionWording.d.ts +57 -13
  17. package/dist/cjs/types/Enum/BalanceSheetQuestionWording.d.ts.map +1 -1
  18. package/dist/cjs/types/Enum/BalanceSheetQuestionWording.js +56 -12
  19. package/dist/cjs/types/Enum/BalanceSheetQuestionWording.js.map +1 -1
  20. package/dist/cjs/types/Enum/GlobalRegime.js +19 -19
  21. package/dist/cjs/types/Enum/GlobalRegime.js.map +1 -1
  22. package/dist/cjs/types/Enum/IncomeStatement.d.ts +32 -0
  23. package/dist/cjs/types/Enum/IncomeStatement.d.ts.map +1 -1
  24. package/dist/cjs/types/Enum/IncomeStatement.js +66 -33
  25. package/dist/cjs/types/Enum/IncomeStatement.js.map +1 -1
  26. package/dist/cjs/types/Enum/Unit.d.ts +10 -3
  27. package/dist/cjs/types/Enum/Unit.d.ts.map +1 -1
  28. package/dist/cjs/types/Enum/Unit.js +11 -0
  29. package/dist/cjs/types/Enum/Unit.js.map +1 -1
  30. package/dist/cjs/types/Interface/api/balanceSheet/ReadBalanceSheet.d.ts +3 -2
  31. package/dist/cjs/types/Interface/api/balanceSheet/ReadBalanceSheet.d.ts.map +1 -1
  32. package/dist/cjs/types/Interface/api/balanceSheet/ReadBalanceSheet.js.map +1 -1
  33. package/dist/cjs/types/Interface/api/cerfa/2031.d.ts +3 -2
  34. package/dist/cjs/types/Interface/api/cerfa/2031.d.ts.map +1 -1
  35. package/dist/cjs/types/Interface/api/cerfa/2031.js.map +1 -1
  36. package/dist/cjs/types/Interface/api/cerfa/2050.d.ts +1578 -1626
  37. package/dist/cjs/types/Interface/api/cerfa/2050.d.ts.map +1 -1
  38. package/dist/cjs/types/Interface/api/cerfa/2050.js.map +1 -1
  39. package/dist/cjs/types/Interface/api/cerfa/2065.d.ts +2 -1
  40. package/dist/cjs/types/Interface/api/cerfa/2065.d.ts.map +1 -1
  41. package/dist/cjs/types/Interface/api/cerfa/2065.js.map +1 -1
  42. package/dist/cjs/types/Interface/api/cerfa/ReadCerfa.d.ts +6 -1
  43. package/dist/cjs/types/Interface/api/cerfa/ReadCerfa.d.ts.map +1 -1
  44. package/dist/cjs/types/Interface/api/cerfa/ReadCerfa.js.map +1 -1
  45. package/dist/cjs/types/Interface/api/incomeStatement/ReadIncomeStatement.d.ts +3 -2
  46. package/dist/cjs/types/Interface/api/incomeStatement/ReadIncomeStatement.d.ts.map +1 -1
  47. package/dist/cjs/types/Interface/api/incomeStatement/ReadIncomeStatement.js.map +1 -1
  48. package/dist/cjs/types/Interface/api/inpi/inpi.d.ts +58 -0
  49. package/dist/cjs/types/Interface/api/inpi/inpi.d.ts.map +1 -1
  50. package/dist/cjs/types/Interface/api/inpi/inpi.js.map +1 -1
  51. package/dist/cjs/utils/vat/3310/century25.d.ts.map +1 -1
  52. package/dist/cjs/utils/vat/3310/century25.js +10 -10
  53. package/dist/cjs/utils/vat/3310/century25.js.map +1 -1
  54. package/dist/mjs/api/resources/AccountingFiles.d.ts.map +1 -1
  55. package/dist/mjs/api/resources/AccountingFiles.js +1 -0
  56. package/dist/mjs/api/resources/AccountingFiles.js.map +1 -1
  57. package/dist/mjs/api/resources/Inpi.d.ts +30 -0
  58. package/dist/mjs/api/resources/Inpi.d.ts.map +1 -1
  59. package/dist/mjs/api/resources/Inpi.js +40 -0
  60. package/dist/mjs/api/resources/Inpi.js.map +1 -1
  61. package/dist/mjs/types/Enum/Aspone.d.ts +8 -0
  62. package/dist/mjs/types/Enum/Aspone.d.ts.map +1 -1
  63. package/dist/mjs/types/Enum/Aspone.js +10 -0
  64. package/dist/mjs/types/Enum/Aspone.js.map +1 -1
  65. package/dist/mjs/types/Enum/BalanceSheet.d.ts +64 -0
  66. package/dist/mjs/types/Enum/BalanceSheet.d.ts.map +1 -1
  67. package/dist/mjs/types/Enum/BalanceSheet.js +151 -65
  68. package/dist/mjs/types/Enum/BalanceSheet.js.map +1 -1
  69. package/dist/mjs/types/Enum/BalanceSheetQuestionWording.d.ts +57 -13
  70. package/dist/mjs/types/Enum/BalanceSheetQuestionWording.d.ts.map +1 -1
  71. package/dist/mjs/types/Enum/BalanceSheetQuestionWording.js +56 -12
  72. package/dist/mjs/types/Enum/BalanceSheetQuestionWording.js.map +1 -1
  73. package/dist/mjs/types/Enum/GlobalRegime.js +19 -19
  74. package/dist/mjs/types/Enum/GlobalRegime.js.map +1 -1
  75. package/dist/mjs/types/Enum/IncomeStatement.d.ts +32 -0
  76. package/dist/mjs/types/Enum/IncomeStatement.d.ts.map +1 -1
  77. package/dist/mjs/types/Enum/IncomeStatement.js +65 -32
  78. package/dist/mjs/types/Enum/IncomeStatement.js.map +1 -1
  79. package/dist/mjs/types/Enum/Unit.d.ts +10 -3
  80. package/dist/mjs/types/Enum/Unit.d.ts.map +1 -1
  81. package/dist/mjs/types/Enum/Unit.js +11 -0
  82. package/dist/mjs/types/Enum/Unit.js.map +1 -1
  83. package/dist/mjs/types/Interface/api/balanceSheet/ReadBalanceSheet.d.ts +3 -2
  84. package/dist/mjs/types/Interface/api/balanceSheet/ReadBalanceSheet.d.ts.map +1 -1
  85. package/dist/mjs/types/Interface/api/balanceSheet/ReadBalanceSheet.js.map +1 -1
  86. package/dist/mjs/types/Interface/api/cerfa/2031.d.ts +3 -2
  87. package/dist/mjs/types/Interface/api/cerfa/2031.d.ts.map +1 -1
  88. package/dist/mjs/types/Interface/api/cerfa/2031.js.map +1 -1
  89. package/dist/mjs/types/Interface/api/cerfa/2050.d.ts +1578 -1626
  90. package/dist/mjs/types/Interface/api/cerfa/2050.d.ts.map +1 -1
  91. package/dist/mjs/types/Interface/api/cerfa/2050.js.map +1 -1
  92. package/dist/mjs/types/Interface/api/cerfa/2065.d.ts +2 -1
  93. package/dist/mjs/types/Interface/api/cerfa/2065.d.ts.map +1 -1
  94. package/dist/mjs/types/Interface/api/cerfa/2065.js.map +1 -1
  95. package/dist/mjs/types/Interface/api/cerfa/ReadCerfa.d.ts +6 -1
  96. package/dist/mjs/types/Interface/api/cerfa/ReadCerfa.d.ts.map +1 -1
  97. package/dist/mjs/types/Interface/api/cerfa/ReadCerfa.js.map +1 -1
  98. package/dist/mjs/types/Interface/api/incomeStatement/ReadIncomeStatement.d.ts +3 -2
  99. package/dist/mjs/types/Interface/api/incomeStatement/ReadIncomeStatement.d.ts.map +1 -1
  100. package/dist/mjs/types/Interface/api/incomeStatement/ReadIncomeStatement.js.map +1 -1
  101. package/dist/mjs/types/Interface/api/inpi/inpi.d.ts +58 -0
  102. package/dist/mjs/types/Interface/api/inpi/inpi.d.ts.map +1 -1
  103. package/dist/mjs/types/Interface/api/inpi/inpi.js.map +1 -1
  104. package/dist/mjs/utils/vat/3310/century25.d.ts.map +1 -1
  105. package/dist/mjs/utils/vat/3310/century25.js +10 -10
  106. package/dist/mjs/utils/vat/3310/century25.js.map +1 -1
  107. package/package.json +1 -1
  108. package/ts/api/resources/AccountingFiles.ts +1 -0
  109. package/ts/api/resources/Inpi.ts +45 -0
  110. package/ts/types/Enum/Aspone.ts +10 -0
  111. package/ts/types/Enum/BalanceSheet.ts +151 -65
  112. package/ts/types/Enum/BalanceSheetQuestionWording.ts +126 -81
  113. package/ts/types/Enum/GlobalRegime.ts +19 -19
  114. package/ts/types/Enum/IncomeStatement.ts +66 -32
  115. package/ts/types/Enum/Unit.ts +11 -0
  116. package/ts/types/Interface/api/balanceSheet/ReadBalanceSheet.ts +4 -2
  117. package/ts/types/Interface/api/cerfa/2031.ts +3 -2
  118. package/ts/types/Interface/api/cerfa/2050.ts +1571 -1393
  119. package/ts/types/Interface/api/cerfa/2065.ts +2 -2
  120. package/ts/types/Interface/api/cerfa/ReadCerfa.ts +15 -2
  121. package/ts/types/Interface/api/incomeStatement/ReadIncomeStatement.ts +4 -2
  122. package/ts/types/Interface/api/inpi/inpi.ts +64 -0
  123. package/ts/utils/vat/3310/century25.ts +10 -11
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silexpert/core",
3
- "version": "1.3.114",
3
+ "version": "1.3.115-cerfa2050-2",
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": "dist/cjs/index.js",
@@ -65,6 +65,7 @@ export class AccountingFiles extends Resource {
65
65
 
66
66
  return this.axios.$post(`/societies/${params.idSociety}/accounting-files`, formData, {
67
67
  headers: { 'Content-Type': 'multipart/form-data' },
68
+ timeout: 480000,
68
69
  });
69
70
  }
70
71
 
@@ -94,4 +94,49 @@ export class Inpi extends Resource {
94
94
  public getPaymentStatistic(params: QueryInpiPaymentStatistic): Promise<string[]> {
95
95
  return this.axios.$get('/inpi/payments/commission/statistic', { params });
96
96
  }
97
+
98
+ /**
99
+ * Retourne les informations d'une société via son SIREN
100
+ * @param { string } siren
101
+ * @returns { any }
102
+ */
103
+ public getCompanyInfoBySiren(siren: string): Promise<any> {
104
+ return this.axios.$get(`/inpi/companies/${siren}`);
105
+ }
106
+
107
+ /**
108
+ * Retourne la liste des documents (actes, bilans, bilans saisis) d'une société via son SIREN
109
+ * @param { string } siren
110
+ * @returns { any }
111
+ */
112
+ public getDocumentsBySiren(siren: string): Promise<any> {
113
+ return this.axios.$get(`/inpi/companies/${siren}/documents`);
114
+ }
115
+
116
+ /**
117
+ * Télécharge le PDF d'un bilan via son ID
118
+ * @param { string } id
119
+ * @returns { Buffer }
120
+ */
121
+ public downloadBilanPdf(id: string): Promise<Buffer> {
122
+ return this.axios.$get(`/inpi/companies/bilans/${id}/download`, { responseType: 'arraybuffer' });
123
+ }
124
+
125
+ /**
126
+ * Télécharge le JSON d'un bilan saisi via son ID
127
+ * @param { string } id
128
+ * @returns { any }
129
+ */
130
+ public getBilanSaisiJson(id: string): Promise<any> {
131
+ return this.axios.$get(`/inpi/companies/bilans-saisis/${id}/download`);
132
+ }
133
+
134
+ /**
135
+ * Télécharge le PDF d'un acte via son ID
136
+ * @param { string } id
137
+ * @returns { Buffer }
138
+ */
139
+ public downloadActePdf(id: string): Promise<Buffer> {
140
+ return this.axios.$get(`/inpi/companies/actes/${id}/download`, { responseType: 'arraybuffer' });
141
+ }
97
142
  }
@@ -202,3 +202,13 @@ export const AsponeCOL_2024_LIST = [
202
202
  { id: AsponeCOL_2024.RJ, value: 'Redressement judiciaire' },
203
203
  { id: AsponeCOL_2024.LJ, value: 'Liquidation judiciaire' },
204
204
  ];
205
+
206
+ export enum AsponeTSO {
207
+ MER = 'MER', // Société mère
208
+ FIL = 'FIL', // Société fille
209
+ }
210
+
211
+ export enum AsponeT01 {
212
+ 'NON' = 0,
213
+ 'OUI' = 1,
214
+ }
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/no-duplicate-enum-values */
1
2
  import { ThirdPartyType } from './ThirdPartyType';
2
3
  import { MathematicalSign } from './Util';
3
4
 
@@ -307,9 +308,46 @@ export type BalanceSheetField = {
307
308
 
308
309
  export type BalanceSheetList = BalanceSheetField[];
309
310
 
311
+ export enum BalanceSheetLabel {
312
+ CAPITAL_SOUSCRIT = 'Capital souscrit - non appelé',
313
+ FRAIS_ETABLISSEMENT = "Frais d'établissement",
314
+ CONCESSIONS_BREVETS = 'Concessions, brevets, licences, marques, procédés, logiciels, droits et valeurs similaires',
315
+ FOND_COMMERCIAL = 'Fonds commercial',
316
+ AUTRES_IMMOBILISATIONS_INCORPORELLES = 'Autres',
317
+ AVANCES_ET_ACOMPTES_INCORPORELLES = 'Avances et acomptes',
318
+ TERRAINS = 'Terrains',
319
+ CONSTRUCTIONS = 'Constructions',
320
+ INSTALLATIONS_TECHNIQUES = 'Installations techniques, matériels, et outillage industriels',
321
+ AUTRES_IMMOBILISATIONS_CORPORELLES = 'Autres',
322
+ IMMOBILISATIONS_CORPORELLES_EN_COURS = 'Immobilisations corporelles en cours',
323
+ AVANCES_ET_ACOMPTES_CORPORELLES = 'Avances et acomptes',
324
+ CREANCES_RATTACHEES_PARTICIPATIONS = 'Créances rattachées à des participations',
325
+ AUTRES_TITRES_IMMOBILISES = 'Autres titres immobilisés',
326
+ PRETS = 'Prêts',
327
+ AUTRES_IMMOBILISATIONS_FINANCIERES = 'Autres',
328
+ TOTAL_1 = 'Total (I)',
329
+ MATIERES_PREMIERES_ET_AUTRES_APPROVISIONNEMENTS = 'Matières premières et autres approvisionnements',
330
+ PRODUITS_INTERMEDIAIRES_ET_FINIS = 'Produits intermédiaires et finis',
331
+ MARCHANDISES = 'Marchandises',
332
+ AVANCES_ET_ACOMPTES_VERSES_SUR_COMMANDES = 'Avances et acomptes versés sur commandes',
333
+ CREANCES_CLIENTS_ET_COMPTES_RATTACHES = 'Créances clients et comptes rattachés',
334
+ AUTRES_CREANCES = 'Autres',
335
+ CAPITAL_SOUSCRIT_APPELE_NON_VERSE = 'Capital souscrit - appelé, non versé',
336
+ VALEUR_MOBILIERE_PLACEMENT_ACTION_PROPRE = 'Actions propres',
337
+ VALEUR_MOBILIERE_PLACEMENT = 'Valeurs mobilières de placement',
338
+ DISPONIBILITES = 'Disponibilités',
339
+ CHARGES_CONSTATEES_AVANCE = "Charges constatées d'avance",
340
+ TOTAL_2 = 'Total (II)',
341
+ PRIMES_DE_REMBOURSEMENT_DES_EMPRUNTS = 'Primes de remboursement des emprunts (IV)',
342
+ ECARTS_DE_CONVERSIONS = 'Ecarts de conversion Actif (V)',
343
+ TOTAL_GENERAL = 'Total général (I+II+III+IV+V)',
344
+ PARTICIPATIONS = 'Participations',
345
+ FRAIS_DE_RECHERCHE_DEVELOPPEMENT = 'Frais de recherche et de développement',
346
+ }
347
+
310
348
  export const BALANCE_SHEET_LIST_ACTIVE: BalanceSheetList = [
311
349
  {
312
- name: 'Capital souscrit - non appelé',
350
+ name: BalanceSheetLabel.CAPITAL_SOUSCRIT,
313
351
  key: 'subscribedCapital',
314
352
  accounts: ['109'],
315
353
  isSubcategory: true,
@@ -328,29 +366,29 @@ export const BALANCE_SHEET_LIST_ACTIVE: BalanceSheetList = [
328
366
  isSubcategory: true,
329
367
  fields: [
330
368
  {
331
- name: "Frais d'établissement",
369
+ name: BalanceSheetLabel.FRAIS_ETABLISSEMENT,
332
370
  accounts: ['201'],
333
371
  accountsDeducted: ['2801'],
334
372
  total: 0,
335
373
  totalDeducted: 0,
336
374
  },
337
375
  {
338
- name: 'Frais de recherche et de développement',
376
+ name: BalanceSheetLabel.FRAIS_DE_RECHERCHE_DEVELOPPEMENT,
339
377
  accounts: ['203'],
340
378
  accountsDeducted: ['2803'],
341
379
  },
342
380
  {
343
- name: 'Concessions, brevets, licences, marques, procédés, logiciels, droits et valeurs similaires',
381
+ name: BalanceSheetLabel.CONCESSIONS_BREVETS,
344
382
  accounts: ['205'],
345
383
  accountsDeducted: ['2805', '2905'],
346
384
  },
347
385
  {
348
- name: 'Fonds commercial',
386
+ name: BalanceSheetLabel.FOND_COMMERCIAL,
349
387
  accounts: ['206', '207'],
350
388
  accountsDeducted: ['2806', '2807', '2906', '2907'],
351
389
  },
352
390
  {
353
- name: 'Autres',
391
+ name: BalanceSheetLabel.AUTRES_IMMOBILISATIONS_INCORPORELLES,
354
392
  accounts: ['200', '208'],
355
393
  accountsDeducted: ['2808', '2908'],
356
394
  },
@@ -360,7 +398,7 @@ export const BALANCE_SHEET_LIST_ACTIVE: BalanceSheetList = [
360
398
  accountsDeducted: ['2932'],
361
399
  },
362
400
  {
363
- name: 'Avances et acomptes',
401
+ name: BalanceSheetLabel.AVANCES_ET_ACOMPTES_INCORPORELLES,
364
402
  accounts: ['237'],
365
403
  },
366
404
  ],
@@ -371,32 +409,32 @@ export const BALANCE_SHEET_LIST_ACTIVE: BalanceSheetList = [
371
409
  isSubcategory: true,
372
410
  fields: [
373
411
  {
374
- name: 'Terrains',
412
+ name: BalanceSheetLabel.TERRAINS,
375
413
  accounts: ['211', '212'],
376
414
  accountsDeducted: ['2811', '2812', '2911'],
377
415
  },
378
416
  {
379
- name: 'Constructions',
417
+ name: BalanceSheetLabel.CONSTRUCTIONS,
380
418
  accounts: ['213', '214'],
381
419
  accountsDeducted: ['2813', '2814'],
382
420
  },
383
421
  {
384
- name: 'Installations techniques, matériels, et outillage industriels',
422
+ name: BalanceSheetLabel.INSTALLATIONS_TECHNIQUES,
385
423
  accounts: ['215'],
386
424
  accountsDeducted: ['2815'],
387
425
  },
388
426
  {
389
- name: 'Autres',
427
+ name: BalanceSheetLabel.AUTRES_IMMOBILISATIONS_CORPORELLES,
390
428
  accounts: ['218', '22'],
391
429
  accountsDeducted: ['2818', '282', '292'],
392
430
  },
393
431
  {
394
- name: 'Immobilisations corporelles en cours',
432
+ name: BalanceSheetLabel.IMMOBILISATIONS_CORPORELLES_EN_COURS,
395
433
  accounts: ['231'],
396
434
  accountsDeducted: ['2931'],
397
435
  },
398
436
  {
399
- name: 'Avances et acomptes',
437
+ name: BalanceSheetLabel.AVANCES_ET_ACOMPTES_CORPORELLES,
400
438
  accounts: ['238'],
401
439
  },
402
440
  ],
@@ -407,12 +445,12 @@ export const BALANCE_SHEET_LIST_ACTIVE: BalanceSheetList = [
407
445
  isSubcategory: true,
408
446
  fields: [
409
447
  {
410
- name: 'Participations',
448
+ name: BalanceSheetLabel.PARTICIPATIONS,
411
449
  accounts: ['261', '266'],
412
450
  accountsDeducted: ['2691', '2966'],
413
451
  },
414
452
  {
415
- name: 'Créances rattachées à des participations',
453
+ name: BalanceSheetLabel.CREANCES_RATTACHEES_PARTICIPATIONS,
416
454
  accounts: ['267', '268'],
417
455
  accountsDeducted: ['2967', '2968'],
418
456
  },
@@ -422,17 +460,17 @@ export const BALANCE_SHEET_LIST_ACTIVE: BalanceSheetList = [
422
460
  accountsDeducted: ['2973'],
423
461
  },
424
462
  {
425
- name: 'Autres titres immobilisés',
463
+ name: BalanceSheetLabel.AUTRES_TITRES_IMMOBILISES,
426
464
  accounts: ['271', '272'],
427
465
  accountsDeducted: ['2971', '2972'],
428
466
  },
429
467
  {
430
- name: 'Prêts',
468
+ name: BalanceSheetLabel.PRETS,
431
469
  accounts: ['274'],
432
470
  accountsDeducted: ['2974'],
433
471
  },
434
472
  {
435
- name: 'Autres',
473
+ name: BalanceSheetLabel.AUTRES_IMMOBILISATIONS_FINANCIERES,
436
474
  accounts: ['236', '275', '276', '277'],
437
475
  accountsDeducted: ['2975', '2976'],
438
476
  },
@@ -441,7 +479,7 @@ export const BALANCE_SHEET_LIST_ACTIVE: BalanceSheetList = [
441
479
  ],
442
480
  },
443
481
  {
444
- name: 'Total (I)',
482
+ name: BalanceSheetLabel.TOTAL_1,
445
483
  key: 'total1',
446
484
  total: 0,
447
485
  totalDeducted: 0,
@@ -461,7 +499,7 @@ export const BALANCE_SHEET_LIST_ACTIVE: BalanceSheetList = [
461
499
  isSubcategory: true,
462
500
  fields: [
463
501
  {
464
- name: 'Matières premières et autres approvisionnements',
502
+ name: BalanceSheetLabel.MATIERES_PREMIERES_ET_AUTRES_APPROVISIONNEMENTS,
465
503
  accounts: ['31', '32'],
466
504
  accountsDeducted: ['391', '392'],
467
505
  },
@@ -471,19 +509,19 @@ export const BALANCE_SHEET_LIST_ACTIVE: BalanceSheetList = [
471
509
  accountsDeducted: ['393', '394'],
472
510
  },
473
511
  {
474
- name: 'Produits intermédiaires et finis',
512
+ name: BalanceSheetLabel.PRODUITS_INTERMEDIAIRES_ET_FINIS,
475
513
  accounts: ['35', '36'],
476
514
  accountsDeducted: ['395', '396'],
477
515
  },
478
516
  {
479
- name: 'Marchandises',
517
+ name: BalanceSheetLabel.MARCHANDISES,
480
518
  accounts: ['37'],
481
519
  accountsDeducted: ['397'],
482
520
  },
483
521
  ],
484
522
  },
485
523
  {
486
- name: 'Avances et acomptes versés sur commandes',
524
+ name: BalanceSheetLabel.AVANCES_ET_ACOMPTES_VERSES_SUR_COMMANDES,
487
525
  key: 'advancesAndDeposits',
488
526
  accounts: ['4091'],
489
527
  },
@@ -494,7 +532,7 @@ export const BALANCE_SHEET_LIST_ACTIVE: BalanceSheetList = [
494
532
  fields: [
495
533
  {
496
534
  // créance client = lorsque les clients te doivent de l'argent = somme débit > crédit
497
- name: 'Créances clients et comptes rattachés',
535
+ name: BalanceSheetLabel.CREANCES_CLIENTS_ET_COMPTES_RATTACHES,
498
536
  accounts: ['411', '413', '416', '417', '418'],
499
537
  idThirdPartyTypeToAdd: [ThirdPartyType.CUSTOMER, MathematicalSign.PLUS],
500
538
  accountsDeducted: ['491'],
@@ -502,7 +540,7 @@ export const BALANCE_SHEET_LIST_ACTIVE: BalanceSheetList = [
502
540
  },
503
541
  {
504
542
  // autres = lorsque les fournisseurs te doivent de l'argent = somme débit > crédit
505
- name: 'Autres',
543
+ name: BalanceSheetLabel.AUTRES_CREANCES,
506
544
  accounts: [
507
545
  '401',
508
546
  '408',
@@ -538,18 +576,18 @@ export const BALANCE_SHEET_LIST_ACTIVE: BalanceSheetList = [
538
576
  type: 'active',
539
577
  },
540
578
  {
541
- name: 'Capital souscrit - appelé, non versé',
579
+ name: BalanceSheetLabel.CAPITAL_SOUSCRIT_APPELE_NON_VERSE,
542
580
  accounts: ['4562'],
543
581
  },
544
582
  ],
545
583
  },
546
584
  {
547
- name: 'Valeurs mobilières de placement',
585
+ name: BalanceSheetLabel.VALEUR_MOBILIERE_PLACEMENT,
548
586
  key: 'securities',
549
587
  isSubcategory: true,
550
588
  fields: [
551
589
  {
552
- name: 'Actions propres',
590
+ name: BalanceSheetLabel.VALEUR_MOBILIERE_PLACEMENT_ACTION_PROPRE,
553
591
  accounts: ['502'],
554
592
  accountsDeducted: ['5902'],
555
593
  },
@@ -567,20 +605,20 @@ export const BALANCE_SHEET_LIST_ACTIVE: BalanceSheetList = [
567
605
  type: 'active',
568
606
  },
569
607
  {
570
- name: 'Disponibilités',
608
+ name: BalanceSheetLabel.DISPONIBILITES,
571
609
  key: 'availabilities',
572
610
  accounts: ['511', '512', '514', '515', '516', '517', '5181', '5187', '53', '54', '58'],
573
611
  type: 'active',
574
612
  },
575
613
  {
576
- name: "Charges constatées d'avance",
614
+ name: BalanceSheetLabel.CHARGES_CONSTATEES_AVANCE,
577
615
  key: 'establishedInAdvance',
578
616
  accounts: ['486'],
579
617
  },
580
618
  ],
581
619
  },
582
620
  {
583
- name: 'Total (II)',
621
+ name: BalanceSheetLabel.TOTAL_2,
584
622
  key: 'total2',
585
623
  total: 0,
586
624
  totalDeducted: 0,
@@ -597,7 +635,7 @@ export const BALANCE_SHEET_LIST_ACTIVE: BalanceSheetList = [
597
635
  totalDeducted: 0,
598
636
  },
599
637
  {
600
- name: 'Primes de remboursement des emprunts (IV)',
638
+ name: BalanceSheetLabel.PRIMES_DE_REMBOURSEMENT_DES_EMPRUNTS,
601
639
  key: 'total4',
602
640
  accounts: ['169'],
603
641
  isTotal: true,
@@ -605,7 +643,7 @@ export const BALANCE_SHEET_LIST_ACTIVE: BalanceSheetList = [
605
643
  totalDeducted: 0,
606
644
  },
607
645
  {
608
- name: 'Ecarts de conversion Actif (V)',
646
+ name: BalanceSheetLabel.ECARTS_DE_CONVERSIONS,
609
647
  key: 'total5',
610
648
  total: 0,
611
649
  totalDeducted: 0,
@@ -613,7 +651,7 @@ export const BALANCE_SHEET_LIST_ACTIVE: BalanceSheetList = [
613
651
  isTotal: true,
614
652
  },
615
653
  {
616
- name: 'Total général (I+II+III+IV+V)',
654
+ name: BalanceSheetLabel.TOTAL_GENERAL,
617
655
  key: 'total6',
618
656
  total: 0,
619
657
  totalDeducted: 0,
@@ -632,23 +670,52 @@ export const BALANCE_SHEET_LIST_ACTIVE: BalanceSheetList = [
632
670
  },
633
671
  ];
634
672
 
673
+ export enum BalanceSheetPassiveLabel {
674
+ CAPITAL = 'Capital (dont versé...)',
675
+ RESERVE_LEGALE = 'Réserve légale',
676
+ PRIMES_EMISSION = "Primes d'émission, de fusion, d'apport",
677
+ ECART_DE_REEVALUATION = 'Ecart de réévaluation',
678
+ RESERVES_STATUAIRES = 'Réserves statutaires ou contractuelles',
679
+ RESERVES_REGLEMENTEES = 'Réserves réglementées',
680
+ AUTRES_RESERVES = 'Autres',
681
+ REPORT_A_NOUVEAU = 'Report à nouveau',
682
+ SUBVENTIONS_INVESTISSEMENT = "Subventions d'investissement",
683
+ PROVISIONS_REFLEMENTEES = 'Provisions réglementées',
684
+ PROVISIONS_POUR_RISQUES = 'Provisions pour risques',
685
+ PROVISIONS_POUR_CHARGES = 'Provisions pour charges',
686
+ EMPRUNTS_OBLIGATAIRES_CONVERTIBLES = 'Emprunts obligataires convertibles',
687
+ AUTRES_EMPRUNTS_OBLIGATAIRES_CONVERTIBLES = 'Autres emprunts obligataires',
688
+ EMPRUNTS_ET_DETTES_AUPRES_ETABLISSEMENTS = 'Emprunts et dettes auprès établissements de crédits (1)',
689
+ EMPRUNTS_ET_DETTES_FINANCIERES_DIVERSES = 'Emprunts et dettes financières diverses (2)',
690
+ AVANCES_ET_ACOMPTES_RECUES = 'Avances et acomptes reçues sur commandes en cours',
691
+ DETTES_FOURNISSEURS_ET_COMPTES_RATTACHES = 'Dettes Fournisseurs et Comptes rattachés',
692
+ DETTES_FISCALES_ET_SOCIALES = 'Dettes fiscales et sociales',
693
+ DETTES_SUR_IMMOBILISATIONS_ET_COMPTES_RATTACHES = 'Dettes sur immobilisations et Comptes rattachés',
694
+ AUTRES_DETTES = 'Autres dettes',
695
+ PRODUITS_CONSTATES_D_AVANCE = "Produits constatés d'avance",
696
+ ECART_PASSIF = 'Ecarts de conversion passif (IV)',
697
+ TOTAL_GENERAL = 'Total général (I+II+III+IV)',
698
+ CONCOURS = '(1) Dont concours bancaires courants et soldes créditeurs de banques',
699
+ EMPRUNTS_PARTICIPATIFS = '(2) Dont emprunts participatifs',
700
+ }
701
+
635
702
  export const BALANCE_SHEET_LIST_PASSIVE: BalanceSheetList = [
636
703
  {
637
- name: 'Capital (dont versé...)',
704
+ name: BalanceSheetPassiveLabel.CAPITAL,
638
705
  key: 'subscribedCapital',
639
706
  accounts: ['101', '108', '102'],
640
707
  isSubcategory: true,
641
708
  total: 0,
642
709
  },
643
710
  {
644
- name: "Primes d'émission, de fusion, d'apport",
711
+ name: BalanceSheetPassiveLabel.PRIMES_EMISSION,
645
712
  key: 'issuePremiums',
646
713
  accounts: ['104'],
647
714
  isSubcategory: true,
648
715
  total: 0,
649
716
  },
650
717
  {
651
- name: 'Ecart de réévaluation',
718
+ name: BalanceSheetPassiveLabel.ECART_DE_REEVALUATION,
652
719
  key: 'revaluationGap',
653
720
  accounts: ['105'],
654
721
  isSubcategory: true,
@@ -668,27 +735,27 @@ export const BALANCE_SHEET_LIST_PASSIVE: BalanceSheetList = [
668
735
  isCategory: true,
669
736
  fields: [
670
737
  {
671
- name: 'Réserve légale',
738
+ name: BalanceSheetPassiveLabel.RESERVE_LEGALE,
672
739
  accounts: ['1061'],
673
740
  total: 0,
674
741
  totalDeducted: 0,
675
742
  },
676
743
  {
677
- name: 'Réserves statutaires ou contractuelles',
744
+ name: BalanceSheetPassiveLabel.RESERVES_STATUAIRES,
678
745
  accounts: ['1063'],
679
746
  },
680
747
  {
681
- name: 'Réserves réglementées',
748
+ name: BalanceSheetPassiveLabel.RESERVES_REGLEMENTEES,
682
749
  accounts: ['1062', '1064'],
683
750
  },
684
751
  {
685
- name: 'Autres',
752
+ name: BalanceSheetPassiveLabel.AUTRES_RESERVES,
686
753
  accounts: ['1068'],
687
754
  },
688
755
  ],
689
756
  },
690
757
  {
691
- name: 'Report à nouveau',
758
+ name: BalanceSheetPassiveLabel.REPORT_A_NOUVEAU,
692
759
  key: 'postponement',
693
760
  accounts: ['11', '12'],
694
761
  isSubcategory: true,
@@ -702,14 +769,14 @@ export const BALANCE_SHEET_LIST_PASSIVE: BalanceSheetList = [
702
769
  total: 0,
703
770
  },
704
771
  {
705
- name: "Subventions d'investissement",
772
+ name: BalanceSheetPassiveLabel.SUBVENTIONS_INVESTISSEMENT,
706
773
  key: 'subsidies',
707
774
  accounts: ['13'],
708
775
  isSubcategory: true,
709
776
  total: 0,
710
777
  },
711
778
  {
712
- name: 'Provisions réglementées',
779
+ name: BalanceSheetPassiveLabel.PROVISIONS_REFLEMENTEES,
713
780
  key: 'subsidiesRegulated',
714
781
  accounts: ['14'],
715
782
  isSubcategory: true,
@@ -739,13 +806,13 @@ export const BALANCE_SHEET_LIST_PASSIVE: BalanceSheetList = [
739
806
  isCategory: true,
740
807
  fields: [
741
808
  {
742
- name: 'Provisions pour risques',
809
+ name: BalanceSheetPassiveLabel.PROVISIONS_POUR_RISQUES,
743
810
  accounts: ['151'],
744
811
  isSubcategory: true,
745
812
  total: 0,
746
813
  },
747
814
  {
748
- name: 'Provisions pour charges',
815
+ name: BalanceSheetPassiveLabel.PROVISIONS_POUR_CHARGES,
749
816
  accounts: ['153', '155', '156', '157', '158'],
750
817
  isSubcategory: true,
751
818
  total: 0,
@@ -766,21 +833,21 @@ export const BALANCE_SHEET_LIST_PASSIVE: BalanceSheetList = [
766
833
  key: 'debts',
767
834
  fields: [
768
835
  {
769
- name: 'Emprunts obligataires convertibles',
836
+ name: BalanceSheetPassiveLabel.EMPRUNTS_OBLIGATAIRES_CONVERTIBLES,
770
837
  key: 'convertibleBonds',
771
838
  accounts: ['161', '16881'],
772
839
  isSubcategory: true,
773
840
  total: 0,
774
841
  },
775
842
  {
776
- name: 'Autres emprunts obligataires',
843
+ name: BalanceSheetPassiveLabel.AUTRES_EMPRUNTS_OBLIGATAIRES_CONVERTIBLES,
777
844
  key: 'convertibleBonds',
778
845
  accounts: ['163', '16883'],
779
846
  isSubcategory: true,
780
847
  total: 0,
781
848
  },
782
849
  {
783
- name: 'Emprunts et dettes auprès établissements de crédits (1)',
850
+ name: BalanceSheetPassiveLabel.EMPRUNTS_ET_DETTES_AUPRES_ETABLISSEMENTS,
784
851
  key: 'loansCredits',
785
852
  accounts: ['164', '511', '512', '514', '517', '5186', '519', '53', '58'], // Ben.P. 10/12/24 suppression 16884 car déjà pris en dessous
786
853
  isSubcategory: true,
@@ -788,16 +855,15 @@ export const BALANCE_SHEET_LIST_PASSIVE: BalanceSheetList = [
788
855
  type: 'passive',
789
856
  },
790
857
  {
791
- name: 'Emprunts et dettes financières diverses (2)',
858
+ name: BalanceSheetPassiveLabel.EMPRUNTS_ET_DETTES_FINANCIERES_DIVERSES,
792
859
  key: 'loans',
793
- // accounts: ['165', '166', '167', '168', '16885', '16886', '16887', '16888', '17', '426', '451', '455', '4563', '4564', '4567', '457', '458'],
794
860
  accounts: ['165', '166', '167', '168', '17', '426', '451', '455', '4563', '4564', '4567', '457', '458'],
795
861
  isSubcategory: true,
796
862
  total: 0,
797
863
  type: 'passive',
798
864
  },
799
865
  {
800
- name: 'Avances et acomptes reçues sur commandes en cours',
866
+ name: BalanceSheetPassiveLabel.AVANCES_ET_ACOMPTES_RECUES,
801
867
  key: 'advancesAndDeposits',
802
868
  accounts: ['4191'],
803
869
  isSubcategory: true,
@@ -805,7 +871,7 @@ export const BALANCE_SHEET_LIST_PASSIVE: BalanceSheetList = [
805
871
  type: 'passive',
806
872
  },
807
873
  {
808
- name: 'Dettes Fournisseurs et Comptes rattachés',
874
+ name: BalanceSheetPassiveLabel.DETTES_FOURNISSEURS_ET_COMPTES_RATTACHES,
809
875
  key: 'payables',
810
876
  accounts: ['401', '403', '4081', '4083', '4088'],
811
877
  // PASSIF dette fournisseurs = lorsque l'entreprise doit de l'argent au fournisseurs = somme crédit > débit
@@ -815,15 +881,36 @@ export const BALANCE_SHEET_LIST_PASSIVE: BalanceSheetList = [
815
881
  type: 'passive',
816
882
  },
817
883
  {
818
- name: 'Dettes fiscales et sociales',
884
+ name: BalanceSheetPassiveLabel.DETTES_FISCALES_ET_SOCIALES,
819
885
  key: 'taxDebts',
820
- accounts: ['42', '43', '44'],
886
+ accounts: [
887
+ '421',
888
+ '422',
889
+ '424',
890
+ '427',
891
+ '4282',
892
+ '4284',
893
+ '4286',
894
+ '43',
895
+ '442',
896
+ '444',
897
+ '4455',
898
+ '4457',
899
+ '44584',
900
+ '44587',
901
+ '446',
902
+ '447',
903
+ '44811',
904
+ '4481',
905
+ '449',
906
+ '457',
907
+ ],
821
908
  isSubcategory: true,
822
909
  total: 0,
823
910
  type: 'passive',
824
911
  },
825
912
  {
826
- name: 'Dettes sur immobilisations et Comptes rattachés',
913
+ name: BalanceSheetPassiveLabel.DETTES_SUR_IMMOBILISATIONS_ET_COMPTES_RATTACHES,
827
914
  key: 'immobilizationDebts',
828
915
  accounts: ['269', '279', '404', '405', '4084'],
829
916
  isSubcategory: true,
@@ -831,10 +918,9 @@ export const BALANCE_SHEET_LIST_PASSIVE: BalanceSheetList = [
831
918
  type: 'passive',
832
919
  },
833
920
  {
834
- name: 'Autres dettes',
921
+ name: BalanceSheetPassiveLabel.AUTRES_DETTES,
835
922
  key: 'OtherDebts',
836
- accounts: ['411', '418', '4196', '4197', '464', '467', '4686', '471', '472', '478', '509'],
837
- accountsForceToDeduce: ['4198'],
923
+ accounts: ['4196', '4197', '4198', '464', '467', '468', '478', '509'],
838
924
  // PASSIF Autres = lorsque l'entreprise doit de l'argent au client = somme débit > crédit (modifié)
839
925
  idThirdPartyTypeToAdd: [ThirdPartyType.CUSTOMER, MathematicalSign.LESS],
840
926
  isSubcategory: true,
@@ -850,7 +936,7 @@ export const BALANCE_SHEET_LIST_PASSIVE: BalanceSheetList = [
850
936
  type: 'passive',
851
937
  },
852
938
  {
853
- name: "Produits constatés d'avance",
939
+ name: BalanceSheetPassiveLabel.PRODUITS_CONSTATES_D_AVANCE,
854
940
  key: 'advanceProducts',
855
941
  accounts: ['487', '489'],
856
942
  isSubcategory: true,
@@ -867,14 +953,14 @@ export const BALANCE_SHEET_LIST_PASSIVE: BalanceSheetList = [
867
953
  isTotal: true,
868
954
  },
869
955
  {
870
- name: 'Ecarts de conversion passif (IV)',
956
+ name: BalanceSheetPassiveLabel.ECART_PASSIF,
871
957
  key: 'total4',
872
958
  total: 0,
873
959
  accounts: ['477'],
874
960
  isTotal: true,
875
961
  },
876
962
  {
877
- name: 'Total général (I+II+III+IV)',
963
+ name: BalanceSheetPassiveLabel.TOTAL_GENERAL,
878
964
  key: 'total5',
879
965
  total: 0,
880
966
  calculation: true,
@@ -898,13 +984,13 @@ export const BALANCE_SHEET_LIST_PASSIVE: BalanceSheetList = [
898
984
 
899
985
  export const BALANCE_SHEET_LIST_PASSIVE_DETAILS: BalanceSheetField[] = [
900
986
  {
901
- name: '(1) Dont concours bancaires courants et soldes créditeurs de banques',
902
- accounts: ['51'],
987
+ name: BalanceSheetPassiveLabel.CONCOURS,
988
+ accounts: ['519'],
903
989
  total: 0,
904
990
  type: 'passive',
905
991
  },
906
992
  {
907
- name: '(2) Dont emprunts participatifs',
993
+ name: BalanceSheetPassiveLabel.EMPRUNTS_PARTICIPATIFS,
908
994
  accounts: ['1675'],
909
995
  total: 0,
910
996
  type: 'passive',