@silexpert/core 1.1.59 → 1.1.63

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 (78) hide show
  1. package/es/api/resources/GeneralLedger.d.ts +3 -1
  2. package/es/api/resources/GeneralLedger.d.ts.map +1 -1
  3. package/es/api/resources/GeneralLedger.js +6 -0
  4. package/es/api/resources/GeneralLedger.js.map +1 -1
  5. package/es/types/Enum/BrandClems.d.ts +2 -93
  6. package/es/types/Enum/BrandClems.d.ts.map +1 -1
  7. package/es/types/Enum/BrandClems.js +0 -80
  8. package/es/types/Enum/BrandClems.js.map +1 -1
  9. package/es/types/Enum/BrandStatutsExpress.d.ts +95 -0
  10. package/es/types/Enum/BrandStatutsExpress.d.ts.map +1 -0
  11. package/es/types/Enum/BrandStatutsExpress.js +97 -0
  12. package/es/types/Enum/BrandStatutsExpress.js.map +1 -0
  13. package/es/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.d.ts +13 -0
  14. package/es/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.d.ts.map +1 -1
  15. package/es/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.js +28 -1
  16. package/es/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.js.map +1 -1
  17. package/es/types/Interface/api/registration/ReadRegistration.d.ts +1 -0
  18. package/es/types/Interface/api/registration/ReadRegistration.d.ts.map +1 -1
  19. package/es/types/Interface/api/registration/ReadRegistration.js.map +1 -1
  20. package/es/types/index.d.ts +1 -0
  21. package/es/types/index.d.ts.map +1 -1
  22. package/es/types/index.js +1 -0
  23. package/es/types/index.js.map +1 -1
  24. package/es/utils/brands.d.ts +1 -1
  25. package/es/utils/brands.d.ts.map +1 -1
  26. package/es/utils/brands.js +5 -1
  27. package/es/utils/brands.js.map +1 -1
  28. package/es/utils/vat/3310/century23.d.ts.map +1 -1
  29. package/es/utils/vat/3310/century23.js +29 -32
  30. package/es/utils/vat/3310/century23.js.map +1 -1
  31. package/es/utils/vat/3514/century23.d.ts.map +1 -1
  32. package/es/utils/vat/3514/century23.js +28 -31
  33. package/es/utils/vat/3514/century23.js.map +1 -1
  34. package/es/utils/vat/3517/century23.d.ts.map +1 -1
  35. package/es/utils/vat/3517/century23.js +99 -107
  36. package/es/utils/vat/3517/century23.js.map +1 -1
  37. package/es/utils/vat/3519/century23.d.ts.map +1 -1
  38. package/es/utils/vat/3519/century23.js +69 -70
  39. package/es/utils/vat/3519/century23.js.map +1 -1
  40. package/es/utils/vat/registration.d.ts.map +1 -1
  41. package/es/utils/vat/registration.js +3 -1
  42. package/es/utils/vat/registration.js.map +1 -1
  43. package/js/api/resources/GeneralLedger.js +10 -0
  44. package/js/api/resources/GeneralLedger.js.map +1 -1
  45. package/js/types/Enum/BrandClems.js +0 -79
  46. package/js/types/Enum/BrandClems.js.map +1 -1
  47. package/js/types/Enum/BrandStatutsExpress.js +100 -0
  48. package/js/types/Enum/BrandStatutsExpress.js.map +1 -0
  49. package/js/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.js +18 -0
  50. package/js/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.js.map +1 -1
  51. package/js/types/Interface/api/registration/ReadRegistration.js.map +1 -1
  52. package/js/types/index.js +10 -0
  53. package/js/types/index.js.map +1 -1
  54. package/js/utils/brands.js +6 -1
  55. package/js/utils/brands.js.map +1 -1
  56. package/js/utils/vat/3310/century23.js +24 -29
  57. package/js/utils/vat/3310/century23.js.map +1 -1
  58. package/js/utils/vat/3514/century23.js +22 -27
  59. package/js/utils/vat/3514/century23.js.map +1 -1
  60. package/js/utils/vat/3517/century23.js +85 -95
  61. package/js/utils/vat/3517/century23.js.map +1 -1
  62. package/js/utils/vat/3519/century23.js +60 -65
  63. package/js/utils/vat/3519/century23.js.map +1 -1
  64. package/js/utils/vat/registration.js +3 -1
  65. package/js/utils/vat/registration.js.map +1 -1
  66. package/package.json +1 -1
  67. package/ts/api/resources/GeneralLedger.ts +9 -1
  68. package/ts/types/Enum/BrandClems.ts +0 -80
  69. package/ts/types/Enum/BrandStatutsExpress.ts +96 -0
  70. package/ts/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.ts +25 -0
  71. package/ts/types/Interface/api/registration/ReadRegistration.ts +1 -0
  72. package/ts/types/index.ts +1 -0
  73. package/ts/utils/brands.ts +6 -2
  74. package/ts/utils/vat/3310/century23.ts +29 -32
  75. package/ts/utils/vat/3514/century23.ts +28 -31
  76. package/ts/utils/vat/3517/century23.ts +98 -109
  77. package/ts/utils/vat/3519/century23.ts +68 -69
  78. package/ts/utils/vat/registration.ts +2 -1
@@ -64,7 +64,7 @@ export function getCerfa3310Century23Payload(accountingEntries: IAccountingEntry
64
64
 
65
65
  // Opérations non taxées
66
66
  const untaxedExportationNotInEurope = setZeroIfIsNegative(getAmountByAccountNumber(vatEntries.filter((ae) => importationVat.includes(ae.idVat) && withoutTaxVat.includes(ae.idVat)), servicesAccounts, 0, true));
67
- const untaxedOther = setZeroIfIsNegative(getAmountByAccountNumber(vatEntries.filter((ae) => frenchVat.includes(ae.idVat) && withoutTaxVat.includes(ae.idVat)), ['70, 71', '72', '73', '75', '77', '78', '790', '792', '793', '794', '795', '796', '797', '798', '799'], 0, true)); // 02/08/23 - ne plus prendre en compte les comptes 76,74,791 - Chloé R.
67
+ const untaxedOther = setZeroIfIsNegative(getAmountByAccountNumber(vatEntries.filter((ae) => frenchVat.includes(ae.idVat) && withoutTaxVat.includes(ae.idVat)), ['70', '71', '72', '73', '75', '77', '78', '790', '792', '793', '794', '795', '796', '797', '798', '799'], 0, true)); // 02/08/23 - ne plus prendre en compte les comptes 76,74,791 - Chloé R.
68
68
  const untaxedImport = setZeroIfIsNegative(getAmountByAccountNumber(vatEntries.filter((ae) => importationVat.includes(ae.idVat) && withoutTaxVat.includes(ae.idVat)), ['6'], 0, true));
69
69
  const untaxedIntracomunity = setZeroIfIsNegative(getAmountByAccountNumber(vatEntries.filter((ae) => intracomVat.includes(ae.idVat) && withoutTaxVat.includes(ae.idVat)), intracommunityAccounts2, 0, true));
70
70
  const untaxedIntracommunityDelivery = setZeroIfIsNegative(getAmountByAccountNumber(vatEntries.filter((ae) => withoutTaxVat.includes(ae.idVat) && intracomVat.includes(ae.idVat)), ['701', '707'], 0, true));
@@ -473,38 +473,35 @@ export function getCerfa3310Century23RegistrationFields(data: Cerfa3310_2023): A
473
473
  fields: [
474
474
  {
475
475
  key: 'BA',
476
- tag: 'TexteLibre1',
477
- isMultiple: false,
478
- description: 'FTX Commentaires type 1, ligne 1 1ère zone de 512',
479
- value: textFormatting(comment, 512),
480
- },
481
- {
482
- key: 'BA',
483
- tag: 'TexteLibre2',
484
- isMultiple: false,
485
- description: 'FTX Commentaires type 1, ligne 2 2ème zone de 512',
486
- value: comment && (comment?.length ?? 0) > 512 ? textFormatting(comment.slice(512, 1024)) : null,
487
- },
488
- {
489
- key: 'BA',
490
- tag: 'TexteLibre3',
491
- isMultiple: false,
492
- description: 'FTX Commentaires type 1, ligne 3 3ème zone de 512',
493
- value: comment && (comment?.length ?? 0) > 1024 ? textFormatting(comment.slice(1024, 1536)) : null,
494
- },
495
- {
496
- key: 'BA',
497
- tag: 'TexteLibre4',
498
- isMultiple: false,
499
- description: 'FTX Commentaires type 1, ligne 4 4ème zone de 512',
500
- value: comment && (comment?.length ?? 0) > 1536 ? textFormatting(comment.slice(1536, 2048)) : null,
501
- },
502
- {
503
- key: 'BA',
504
- tag: 'TexteLibre5',
476
+ value: null,
505
477
  isMultiple: false,
506
- description: 'FTX Commentaires type 1, ligne 5 5ème zone de 512',
507
- value: comment && (comment?.length ?? 0) > 2048 ? textFormatting(comment.slice(2048, 2560)) : null,
478
+ tags: [
479
+ {
480
+ tag: 'TexteLibre1',
481
+ description: 'FTX Commentaires type 1, ligne 1 1ère zone de 512',
482
+ value: textFormatting(comment, 512),
483
+ },
484
+ {
485
+ tag: 'TexteLibre2',
486
+ description: 'FTX Commentaires type 1, ligne 2 2ème zone de 512',
487
+ value: comment && (comment?.length ?? 0) > 512 ? textFormatting(comment.slice(512, 1024)) : null,
488
+ },
489
+ {
490
+ tag: 'TexteLibre3',
491
+ description: 'FTX Commentaires type 1, ligne 3 3ème zone de 512',
492
+ value: comment && (comment?.length ?? 0) > 1024 ? textFormatting(comment.slice(1024, 1536)) : null,
493
+ },
494
+ {
495
+ tag: 'TexteLibre4',
496
+ description: 'FTX Commentaires type 1, ligne 4 4ème zone de 512',
497
+ value: comment && (comment?.length ?? 0) > 1536 ? textFormatting(comment.slice(1536, 2048)) : null,
498
+ },
499
+ {
500
+ tag: 'TexteLibre5',
501
+ description: 'FTX Commentaires type 1, ligne 5 5ème zone de 512',
502
+ value: comment && (comment?.length ?? 0) > 2048 ? textFormatting(comment.slice(2048, 2560)) : null,
503
+ },
504
+ ],
508
505
  },
509
506
  {
510
507
  key: 'BB',
@@ -17,38 +17,35 @@ export function getCerfa3514Century23RegistrationFields(data: Cerfa3514_2022): A
17
17
  },
18
18
  {
19
19
  key: 'CB',
20
- tag: 'TexteLibre1',
20
+ value: null,
21
21
  isMultiple: false,
22
- description: 'Commentaires type 1, ligne 1 (FTX)',
23
- value: textFormatting(comment, 512),
24
- },
25
- {
26
- key: 'CB',
27
- tag: 'TexteLibre2',
28
- isMultiple: false,
29
- description: 'Commentaires type 1, ligne 2 (FTX)',
30
- value: comment && (comment?.length ?? 0) > 512 ? textFormatting(comment.slice(512, 1024)) : null,
31
- },
32
- {
33
- key: 'CB',
34
- tag: 'TexteLibre3',
35
- isMultiple: false,
36
- description: 'Commentaires type 1, ligne 3 (FTX)',
37
- value: comment && (comment?.length ?? 0) > 1024 ? textFormatting(comment.slice(1024, 1536)) : null,
38
- },
39
- {
40
- key: 'CB',
41
- tag: 'TexteLibre4',
42
- isMultiple: false,
43
- description: 'Commentaires type 1, ligne 4 (FTX)',
44
- value: comment && (comment?.length ?? 0) > 1536 ? textFormatting(comment.slice(1536, 2048)) : null,
45
- },
46
- {
47
- key: 'CB',
48
- tag: 'TexteLibre5',
49
- isMultiple: false,
50
- description: 'Commentaires type 1, ligne 5 (FTX)',
51
- value: comment && (comment?.length ?? 0) > 2048 ? textFormatting(comment.slice(2048, 2560)) : null,
22
+ tags: [
23
+ {
24
+ tag: 'TexteLibre1',
25
+ description: 'Commentaires type 1, ligne 1 (FTX)',
26
+ value: textFormatting(comment, 512),
27
+ },
28
+ {
29
+ tag: 'TexteLibre2',
30
+ description: 'Commentaires type 1, ligne 2 (FTX)',
31
+ value: comment && (comment?.length ?? 0) > 512 ? textFormatting(comment.slice(512, 1024)) : null,
32
+ },
33
+ {
34
+ tag: 'TexteLibre3',
35
+ description: 'Commentaires type 1, ligne 3 (FTX)',
36
+ value: comment && (comment?.length ?? 0) > 1024 ? textFormatting(comment.slice(1024, 1536)) : null,
37
+ },
38
+ {
39
+ tag: 'TexteLibre4',
40
+ description: 'Commentaires type 1, ligne 4 (FTX)',
41
+ value: comment && (comment?.length ?? 0) > 1536 ? textFormatting(comment.slice(1536, 2048)) : null,
42
+ },
43
+ {
44
+ tag: 'TexteLibre5',
45
+ description: 'Commentaires type 1, ligne 5 (FTX)',
46
+ value: comment && (comment?.length ?? 0) > 2048 ? textFormatting(comment.slice(2048, 2560)) : null,
47
+ },
48
+ ],
52
49
  },
53
50
  {
54
51
  key: 'CC',
@@ -8,7 +8,6 @@ import {
8
8
  getAmountByAccountNumber, getTaxAmountByAccountNumber, setZeroIfIsNegative, textFormatting,
9
9
  } from '../utils';
10
10
  import {
11
- AsponeFormField,
12
11
  AsponeFormFields, Cerfa3514_2022, CerfaPayloadForm, IRegistration,
13
12
  } from '../../../types';
14
13
 
@@ -357,10 +356,8 @@ export function getCerfa3517Century23Payload(accountingEntries: IAccountingEntry
357
356
  export function getCerfa3517CenturyRegistrationField(data: Cerfa3517_2023): AsponeFormFields {
358
357
  const comment = textFormatting(data.declaration.comment);
359
358
 
360
- let refund: AsponeFormField[] = [];
361
-
362
359
  if (data.refund.asked > 0) {
363
- refund = [{
360
+ return [{
364
361
  name: '3517DDR',
365
362
  fields: [
366
363
  {
@@ -400,24 +397,25 @@ export function getCerfa3517CenturyRegistrationField(data: Cerfa3517_2023): Aspo
400
397
  },
401
398
  {
402
399
  key: 'AF',
403
- tag: 'AdresseVille',
404
- isMultiple: false,
405
- description: 'NAD Lieu de dépôt de la demande 100184 ',
406
- value: data.refund.place,
407
- },
408
- {
409
- key: 'AF',
410
- tag: 'Designation',
411
- isMultiple: false,
412
- description: 'NAD Nom et prénom du demandeur 100178 ',
413
- value: textFormatting(data.refund.name, 35),
414
- },
415
- {
416
- key: 'AF',
417
- tag: 'DesignationSuite1',
418
- isMultiple: false,
419
- description: 'NAD Qualité du demandeur 100179 ',
420
400
  value: null,
401
+ isMultiple: false,
402
+ tags: [
403
+ {
404
+ tag: 'Designation',
405
+ description: 'NAD Nom et prénom du demandeur 100178 ',
406
+ value: textFormatting(data.refund.name, 35),
407
+ },
408
+ // {
409
+ // tag: 'DesignationSuite1',
410
+ // description: 'NAD Qualité du demandeur 100179 ',
411
+ // value: null,
412
+ // },
413
+ {
414
+ tag: 'AdresseVille',
415
+ description: 'NAD Lieu de dépôt de la demande 100184 ',
416
+ value: data.refund.place,
417
+ },
418
+ ],
421
419
  },
422
420
  {
423
421
  key: 'AG',
@@ -442,66 +440,62 @@ export function getCerfa3517CenturyRegistrationField(data: Cerfa3517_2023): Aspo
442
440
  },
443
441
  {
444
442
  key: 'AK',
445
- tag: 'TitulaireDesignation',
446
- isMultiple: false,
447
- description: 'FII Nom du titulaire du compte 100187 ',
448
443
  value: null,
449
- },
450
- {
451
- key: 'AK',
452
- tag: 'TitulaireDesignationSuite',
453
444
  isMultiple: false,
454
- description: 'FII Complément de nom du titulaire de compte 100188 ',
455
- value: null,
456
- },
457
- {
458
- key: 'AK',
459
- tag: 'Iban',
460
- isMultiple: false,
461
- description: 'FII IBAN IBAN: 34 caractères alphanumériques (INTERNATIONAL BANK ACCOUNT NUMBER) 902429 ',
462
- value: data.bankAccount.iban ? textFormatting(data.bankAccount.iban.toUpperCase())?.replace(/\s/g, '') : null,
463
- },
464
- {
465
- key: 'AK',
466
- tag: 'Bic',
467
- isMultiple: false,
468
- description: 'FII BIC BIC : 8 ou 11 caractères alphanumériques (BANK IDENTIFIER CODE) 902409 ',
469
- value: data.bankAccount.bic ? textFormatting(data.bankAccount.bic.toUpperCase()) : null,
445
+ tags: [
446
+ {
447
+ tag: 'Iban',
448
+ description: 'FII IBAN IBAN: 34 caractères alphanumériques (INTERNATIONAL BANK ACCOUNT NUMBER) 902429 ',
449
+ value: 'DYNAMIC_IBAN',
450
+ },
451
+ {
452
+ tag: 'Bic',
453
+ description: 'FII BIC BIC : 8 ou 11 caractères alphanumériques (BANK IDENTIFIER CODE) 902409 ',
454
+ value: 'DYNAMIC_BIC',
455
+ },
456
+ // {
457
+ // tag: 'TitulaireDesignation',
458
+ // description: 'FII Nom du titulaire du compte 100187 ',
459
+ // value: null,
460
+ // },
461
+ // {
462
+ // tag: 'TitulaireDesignationSuite',
463
+ // description: 'FII Complément de nom du titulaire de compte 100188',
464
+ // value: null,
465
+ // },
466
+ ],
470
467
  },
471
468
  {
472
469
  key: 'AL',
473
- tag: 'TexteLibre1',
474
- isMultiple: false,
475
- description: 'FTX Commentaires type 1, ligne 1 1° zone de 512 c 100447 ',
476
470
  value: null,
477
- },
478
- {
479
- key: 'AL',
480
- tag: 'TexteLibre2',
481
471
  isMultiple: false,
482
- description: 'FTX Commentaires type 1, ligne 2 2° zone de 512 c 100547 ',
483
- value: null,
484
- },
485
- {
486
- key: 'AL',
487
- tag: 'TexteLibre3',
488
- isMultiple: false,
489
- description: 'FTX Commentaires type 1, ligne 3 3° zone de 512 c 100548 ',
490
- value: null,
491
- },
492
- {
493
- key: 'AL',
494
- tag: 'TexteLibre4',
495
- isMultiple: false,
496
- description: 'FTX Commentaires type 1, ligne 4 4° zone de 512 c 100549 ',
497
- value: null,
498
- },
499
- {
500
- key: 'AL',
501
- tag: 'TexteLibre5',
502
- isMultiple: false,
503
- description: 'FTX Commentaires type 1, ligne 5 5° zone de 512 c 100550 ',
504
- value: null,
472
+ tags: [
473
+ {
474
+ tag: 'TexteLibre1',
475
+ description: 'FTX Commentaires type 1, ligne 1 1° zone de 512 c 100447 ',
476
+ value: null,
477
+ },
478
+ {
479
+ tag: 'TexteLibre2',
480
+ description: 'FTX Commentaires type 1, ligne 2 2° zone de 512 c 100547 ',
481
+ value: null,
482
+ },
483
+ {
484
+ tag: 'TexteLibre3',
485
+ description: 'FTX Commentaires type 1, ligne 3 3° zone de 512 c 100548 ',
486
+ value: null,
487
+ },
488
+ {
489
+ tag: 'TexteLibre4',
490
+ description: 'FTX Commentaires type 1, ligne 4 4° zone de 512 c 100549 ',
491
+ value: null,
492
+ },
493
+ {
494
+ tag: 'TexteLibre5',
495
+ description: 'FTX Commentaires type 1, ligne 5 5° zone de 512 c 100550 ',
496
+ value: null,
497
+ },
498
+ ],
505
499
  },
506
500
  {
507
501
  key: 'BA',
@@ -632,37 +626,34 @@ export function getCerfa3517CenturyRegistrationField(data: Cerfa3517_2023): Aspo
632
626
  {
633
627
  key: 'CA',
634
628
  isMultiple: false,
635
- tag: 'TexteLibre1',
636
- description: 'Commentaires type 1, ligne 1 5ème zone de 512 c 100447 ',
637
- value: textFormatting(comment, 512),
638
- },
639
- {
640
- key: 'CA',
641
- isMultiple: false,
642
- tag: 'TexteLibre2',
643
- description: 'Commentaires type 1, ligne 2 4ème zone de 512 c 100547 ',
644
- value: comment && (comment?.length ?? 0) > 512 ? textFormatting(comment.slice(512, 1024)) : null,
645
- },
646
- {
647
- key: 'CA',
648
- isMultiple: false,
649
- tag: 'TexteLibre3',
650
- description: 'Commentaires type 1, ligne 3 3ème zone de 512 c 100548 ',
651
- value: comment && (comment?.length ?? 0) > 1024 ? textFormatting(comment.slice(1024, 1536)) : null,
652
- },
653
- {
654
- key: 'CA',
655
- isMultiple: false,
656
- tag: 'TexteLibre4',
657
- description: 'Commentaires type 1, ligne 4 2ème zone de 512 c 100549 ',
658
- value: comment && (comment?.length ?? 0) > 1536 ? textFormatting(comment.slice(1536, 2048)) : null,
659
- },
660
- {
661
- key: 'CA',
662
- isMultiple: false,
663
- tag: 'TexteLibre5',
664
- value: comment && (comment?.length ?? 0) > 2048 ? textFormatting(comment.slice(2048, 2560)) : null,
665
- description: 'Commentaires type 1, ligne 5 1ère zone de 512 c 100550 ',
629
+ value: null,
630
+ tags: [
631
+ {
632
+ tag: 'TexteLibre1',
633
+ description: 'Commentaires type 1, ligne 1 5ème zone de 512 c 100447 ',
634
+ value: textFormatting(comment, 512),
635
+ },
636
+ {
637
+ tag: 'TexteLibre2',
638
+ description: 'Commentaires type 1, ligne 2 4ème zone de 512 c 100547 ',
639
+ value: comment && (comment?.length ?? 0) > 512 ? textFormatting(comment.slice(512, 1024)) : null,
640
+ },
641
+ {
642
+ tag: 'TexteLibre3',
643
+ description: 'Commentaires type 1, ligne 3 3ème zone de 512 c 100548 ',
644
+ value: comment && (comment?.length ?? 0) > 1024 ? textFormatting(comment.slice(1024, 1536)) : null,
645
+ },
646
+ {
647
+ tag: 'TexteLibre4',
648
+ description: 'Commentaires type 1, ligne 4 2ème zone de 512 c 100549 ',
649
+ value: comment && (comment?.length ?? 0) > 1536 ? textFormatting(comment.slice(1536, 2048)) : null,
650
+ },
651
+ {
652
+ tag: 'TexteLibre5',
653
+ value: comment && (comment?.length ?? 0) > 2048 ? textFormatting(comment.slice(2048, 2560)) : null,
654
+ description: 'Commentaires type 1, ligne 5 1ère zone de 512 c 100550 ',
655
+ },
656
+ ],
666
657
  },
667
658
  {
668
659
  key: 'CG',
@@ -1652,9 +1643,7 @@ export function getCerfa3517CenturyRegistrationField(data: Cerfa3517_2023): Aspo
1652
1643
  value: data.tax.publicity,
1653
1644
  },
1654
1645
  ],
1655
- },
1656
- ...refund,
1657
- ];
1646
+ }];
1658
1647
  }
1659
1648
 
1660
1649
  export const cerfa3517Century23Fields: CerfaPayloadForm[] = [{
@@ -1778,7 +1767,7 @@ export const cerfa3517Century23Fields: CerfaPayloadForm[] = [{
1778
1767
  sectionName: 'Demande de remboursement',
1779
1768
  childrens: [
1780
1769
  { label: 'Remboursement demandé', key: 'refund.asked', type: 'number' },
1781
- { label: 'Crédit remboursable dégagé à la clôture de l’année ou de l’exercice', key: 'refund.onClose', type: 'number' },
1770
+ { label: 'Crédit remboursable dégagé à la clôture de l’année ou de l’exercice', key: 'refund.creditRefundable', type: 'number' },
1782
1771
  ],
1783
1772
  },
1784
1773
  ];
@@ -25,31 +25,30 @@ export function getCerfa3519Century23RegistrationFields(data: Cerfa3519_2017): A
25
25
  },
26
26
  {
27
27
  key: 'DG',
28
- tag: 'Designation',
29
- isMultiple: false,
30
- description: 'Soussigné',
31
- value: textFormatting(data.refund.name, 35),
32
- },
33
- {
34
- key: 'DG',
35
- tag: 'DesignationSuite1',
36
- isMultiple: false,
37
- description: 'Titre',
38
- value: textFormatting(data.refund.quality, 35),
39
- },
40
- {
41
- key: 'DG',
42
- tag: 'DesignationSuite2',
43
- isMultiple: false,
44
- description: 'Qualité',
45
- value: textFormatting(data.refund.quality, 35),
46
- },
47
- {
48
- key: 'DG',
49
- tag: 'AdresseVille',
28
+ value: null,
50
29
  isMultiple: false,
51
- description: 'Lieu',
52
- value: textFormatting(data.refund.place, 35),
30
+ tags: [
31
+ {
32
+ tag: 'Designation',
33
+ description: 'Soussigné',
34
+ value: textFormatting(data.refund.name, 35),
35
+ },
36
+ {
37
+ tag: 'DesignationSuite1',
38
+ description: 'Titre',
39
+ value: textFormatting(data.refund.quality, 35),
40
+ },
41
+ {
42
+ tag: 'DesignationSuite2',
43
+ description: 'Qualité',
44
+ value: textFormatting(data.refund.quality, 35),
45
+ },
46
+ {
47
+ tag: 'AdresseVille',
48
+ description: 'Lieu',
49
+ value: textFormatting(data.refund.place, 35),
50
+ },
51
+ ],
53
52
  },
54
53
  {
55
54
  key: 'FK',
@@ -60,87 +59,87 @@ export function getCerfa3519Century23RegistrationFields(data: Cerfa3519_2017): A
60
59
  },
61
60
  {
62
61
  key: 'AA',
63
- tag: 'Iban',
64
- isMultiple: false,
65
- description: 'IBAN',
66
- value: data.bankAccount.iban ? textFormatting(data.bankAccount.iban.toUpperCase())?.replace(/\s/g, '') : null,
67
- },
68
- {
69
- key: 'AA',
70
- tag: 'Bic',
71
62
  isMultiple: false,
72
- description: 'BIC',
73
- value: data.bankAccount.bic ? textFormatting(data.bankAccount.bic.toUpperCase()) : null,
74
- },
75
- {
76
- key: 'AA',
77
- tag: 'TitulaireDesignation',
78
- isMultiple: false,
79
- description: 'Désignation du titulaire',
80
63
  value: null,
64
+ tags: [
65
+ {
66
+ tag: 'Iban',
67
+ description: 'IBAN',
68
+ value: 'DYNAMIC_IBAN',
69
+ },
70
+ {
71
+ tag: 'Bic',
72
+ description: 'BIC',
73
+ value: 'DYNAMIC_BIC',
74
+ },
75
+ // {
76
+ // tag: 'TitulaireDesignation',
77
+ // description: 'Désignation du titulaire',
78
+ // value: null,
79
+ // },
80
+ ],
81
81
  },
82
82
  {
83
83
  key: 'DI',
84
84
  tag: 'Valeur',
85
85
  isMultiple: false,
86
86
  description: 'Première demande',
87
- value: data.refund.firstTime.is ? 'X' : null,
87
+ value: data.refund.firstTime?.is ? 'X' : null,
88
88
  },
89
89
  {
90
90
  key: 'DL',
91
91
  tag: 'Valeur',
92
92
  isMultiple: false,
93
93
  description: 'Création le',
94
- value: data.refund.firstTime.is && data.refund.firstTime.date ? dayjs(data.refund.firstTime.date).format('YYYYMMDD') : null,
94
+ value: data.refund.firstTime?.is && data.refund.firstTime?.date ? dayjs(data.refund.firstTime.date).format('YYYYMMDD') : null,
95
95
  },
96
96
  {
97
97
  key: 'DJ',
98
98
  tag: 'Valeur',
99
99
  isMultiple: false,
100
100
  description: 'Cession, cessation, décès, entrée dans un groupe TVA',
101
- value: data.refund.closing.is ? 'X' : null,
101
+ value: data.refund.closing?.is ? 'X' : null,
102
102
  },
103
103
  {
104
104
  key: 'DM',
105
105
  tag: 'Valeur',
106
106
  isMultiple: false,
107
107
  description: 'Le :',
108
- value: data.refund.closing.is && data.refund.closing.date ? dayjs(data.refund.closing.date).format('YYYYMMDD') : null,
108
+ value: data.refund.closing?.is && data.refund.closing?.date ? dayjs(data.refund.closing.date).format('YYYYMMDD') : null,
109
109
  },
110
110
  {
111
111
  key: 'DK',
112
112
  tag: 'Valeur',
113
113
  isMultiple: false,
114
114
  description: 'Autres',
115
- value: data.refund.other ? 'X' : null,
115
+ value: data.refund.other?.is ? 'X' : null,
116
116
  },
117
117
  {
118
118
  key: 'FJ',
119
- tag: 'TexteLibre1',
120
- isMultiple: false,
121
- description: 'Commentaires',
122
- value: textFormatting(comment, 512),
123
- },
124
- {
125
- key: 'FJ',
126
- tag: 'TexteLibre2',
127
- isMultiple: false,
128
- description: 'Commentaires',
129
- value: comment && (comment?.length ?? 0) > 512 ? textFormatting(comment.slice(512, 1024)) : null,
130
- },
131
- {
132
- key: 'FJ',
133
- tag: 'TexteLibre3',
134
- isMultiple: false,
135
- description: 'Commentaires',
136
- value: comment && (comment?.length ?? 0) > 1024 ? textFormatting(comment.slice(1024, 1536)) : null,
137
- },
138
- {
139
- key: 'FJ',
140
- tag: 'TexteLibre4',
119
+ value: null,
141
120
  isMultiple: false,
142
- description: 'Commentaires',
143
- value: comment && (comment?.length ?? 0) > 1536 ? textFormatting(comment.slice(1536, 2048)) : null,
121
+ tags: [
122
+ {
123
+ tag: 'TexteLibre1',
124
+ description: 'Commentaires',
125
+ value: textFormatting(comment, 512),
126
+ },
127
+ {
128
+ tag: 'TexteLibre2',
129
+ description: 'Commentaires',
130
+ value: comment && (comment?.length ?? 0) > 512 ? textFormatting(comment.slice(512, 1024)) : null,
131
+ },
132
+ {
133
+ tag: 'TexteLibre3',
134
+ description: 'Commentaires',
135
+ value: comment && (comment?.length ?? 0) > 1024 ? textFormatting(comment.slice(1024, 1536)) : null,
136
+ },
137
+ {
138
+ tag: 'TexteLibre4',
139
+ description: 'Commentaires',
140
+ value: comment && (comment?.length ?? 0) > 1536 ? textFormatting(comment.slice(1536, 2048)) : null,
141
+ },
142
+ ],
144
143
  },
145
144
  ],
146
145
  }];
@@ -27,9 +27,10 @@ export function getTicks(registration: ReadRegistration): ReadRegistrationTick[]
27
27
  if (registration.state === RegistrationState.IN_PROGRESS) {
28
28
  const data: ReadRegistrationTick[][] = [];
29
29
 
30
- declarations.forEach(() => {
30
+ declarations.forEach((declaration) => {
31
31
  const result = [
32
32
  {
33
+ type: isDefined(declaration?.type) && isDefined(declaration?.declarationType?.label) ? `${declaration?.type} - ${declaration?.declarationType?.label}` : null,
33
34
  state: RegistrationTickState.FINISHED,
34
35
  title: 'Déclaration envoyée',
35
36
  details: [],