@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
@@ -14,38 +14,35 @@ export function getCerfa3514Century23RegistrationFields(data) {
14
14
  },
15
15
  {
16
16
  key: 'CB',
17
- tag: 'TexteLibre1',
17
+ value: null,
18
18
  isMultiple: false,
19
- description: 'Commentaires type 1, ligne 1 (FTX)',
20
- value: textFormatting(comment, 512),
21
- },
22
- {
23
- key: 'CB',
24
- tag: 'TexteLibre2',
25
- isMultiple: false,
26
- description: 'Commentaires type 1, ligne 2 (FTX)',
27
- value: comment && ((_a = comment === null || comment === void 0 ? void 0 : comment.length) !== null && _a !== void 0 ? _a : 0) > 512 ? textFormatting(comment.slice(512, 1024)) : null,
28
- },
29
- {
30
- key: 'CB',
31
- tag: 'TexteLibre3',
32
- isMultiple: false,
33
- description: 'Commentaires type 1, ligne 3 (FTX)',
34
- value: comment && ((_b = comment === null || comment === void 0 ? void 0 : comment.length) !== null && _b !== void 0 ? _b : 0) > 1024 ? textFormatting(comment.slice(1024, 1536)) : null,
35
- },
36
- {
37
- key: 'CB',
38
- tag: 'TexteLibre4',
39
- isMultiple: false,
40
- description: 'Commentaires type 1, ligne 4 (FTX)',
41
- value: comment && ((_c = comment === null || comment === void 0 ? void 0 : comment.length) !== null && _c !== void 0 ? _c : 0) > 1536 ? textFormatting(comment.slice(1536, 2048)) : null,
42
- },
43
- {
44
- key: 'CB',
45
- tag: 'TexteLibre5',
46
- isMultiple: false,
47
- description: 'Commentaires type 1, ligne 5 (FTX)',
48
- value: comment && ((_d = comment === null || comment === void 0 ? void 0 : comment.length) !== null && _d !== void 0 ? _d : 0) > 2048 ? textFormatting(comment.slice(2048, 2560)) : null,
19
+ tags: [
20
+ {
21
+ tag: 'TexteLibre1',
22
+ description: 'Commentaires type 1, ligne 1 (FTX)',
23
+ value: textFormatting(comment, 512),
24
+ },
25
+ {
26
+ tag: 'TexteLibre2',
27
+ description: 'Commentaires type 1, ligne 2 (FTX)',
28
+ value: comment && ((_a = comment === null || comment === void 0 ? void 0 : comment.length) !== null && _a !== void 0 ? _a : 0) > 512 ? textFormatting(comment.slice(512, 1024)) : null,
29
+ },
30
+ {
31
+ tag: 'TexteLibre3',
32
+ description: 'Commentaires type 1, ligne 3 (FTX)',
33
+ value: comment && ((_b = comment === null || comment === void 0 ? void 0 : comment.length) !== null && _b !== void 0 ? _b : 0) > 1024 ? textFormatting(comment.slice(1024, 1536)) : null,
34
+ },
35
+ {
36
+ tag: 'TexteLibre4',
37
+ description: 'Commentaires type 1, ligne 4 (FTX)',
38
+ value: comment && ((_c = comment === null || comment === void 0 ? void 0 : comment.length) !== null && _c !== void 0 ? _c : 0) > 1536 ? textFormatting(comment.slice(1536, 2048)) : null,
39
+ },
40
+ {
41
+ tag: 'TexteLibre5',
42
+ description: 'Commentaires type 1, ligne 5 (FTX)',
43
+ value: comment && ((_d = comment === null || comment === void 0 ? void 0 : comment.length) !== null && _d !== void 0 ? _d : 0) > 2048 ? textFormatting(comment.slice(2048, 2560)) : null,
44
+ },
45
+ ],
49
46
  },
50
47
  {
51
48
  key: 'CC',
@@ -1 +1 @@
1
- {"version":3,"file":"century23.js","sourceRoot":"","sources":["../../../../ts/utils/vat/3514/century23.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C,MAAM,UAAU,uCAAuC,CAAC,IAAoB;;IAC1E,MAAM,OAAO,GAAG,cAAc,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,C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IAAI;oBACT,GAAG,EAAE,QAAQ;oBACb,UAAU,EAAE,KAAK;oBACjB,WAAW,EAAE,8KAA8K;oBAC3L,KAAK,EAAE,IAAI,CAAC,cAAc;iBAC3B;gBACD;oBACE,GAAG,EAAE,IAAI;oBACT,GAAG,EAAE,QAAQ;oBACb,UAAU,EAAE,KAAK;oBACjB,WAAW,EAAE,uEAAuE;oBACpF,KAAK,EAAE,IAAI,CAAC,cAAc;iBAC3B;gBACD;oBACE,GAAG,EAAE,IAAI;oBACT,GAAG,EAAE,QAAQ;oBACb,UAAU,EAAE,KAAK;oBACjB,WAAW,EAAE,wDAAwD;oBACrE,KAAK,EAAE,IAAI,CAAC,kBAAkB;iBAC/B;gBACD;oBACE,GAAG,EAAE,IAAI;oBACT,GAAG,EAAE,QAAQ;oBACb,UAAU,EAAE,KAAK;oBACjB,WAAW,EAAE,yDAAyD;oBACtE,KAAK,EAAE,IAAI,CAAC,mBAAmB;iBAChC;gBACD;oBACE,GAAG,EAAE,IAAI;oBACT,GAAG,EAAE,QAAQ;oBACb,UAAU,EAAE,KAAK;oBACjB,WAAW,EAAE,iDAAiD;oBAC9D,KAAK,EAAE,IAAI,CAAC,gBAAgB;iBAC7B;gBACD;oBACE,GAAG,EAAE,IAAI;oBACT,GAAG,EAAE,QAAQ;oBACb,UAAU,EAAE,KAAK;oBACjB,WAAW,EAAE,mDAAmD;oBAChE,KAAK,EAAE,IAAI,CAAC,oBAAoB;iBACjC;aACF;SACF,CAAC,CAAC;AACL,CAAC","sourcesContent":["import { Cerfa3514_2022 } from '../../../types/Interface/api/cerfa/3514';\nimport { AsponeFormFields } from '../../../types/Interface/api/cerfa/ReadCerfa';\nimport { textFormatting } from '../utils';\n\nexport function getCerfa3514Century23RegistrationFields(data: Cerfa3514_2022): AsponeFormFields {\n const comment = textFormatting(data.declaration.comment);\n\n return [{\n name: '3514',\n fields: [\n {\n key: 'CA',\n tag: 'Valeur',\n isMultiple: false,\n description: 'Paiement par imputation (CCI)',\n value: data.payment.byImputation ? 'X' : null,\n },\n {\n key: 'CB',\n tag: 'TexteLibre1',\n isMultiple: false,\n description: 'Commentaires type 1, ligne 1 (FTX)',\n value: textFormatting(comment, 512),\n },\n {\n key: 'CB',\n tag: 'TexteLibre2',\n isMultiple: false,\n description: 'Commentaires type 1, ligne 2 (FTX)',\n value: comment && (comment?.length ?? 0) > 512 ? textFormatting(comment.slice(512, 1024)) : null,\n },\n {\n key: 'CB',\n tag: 'TexteLibre3',\n isMultiple: false,\n description: 'Commentaires type 1, ligne 3 (FTX)',\n value: comment && (comment?.length ?? 0) > 1024 ? textFormatting(comment.slice(1024, 1536)) : null,\n },\n {\n key: 'CB',\n tag: 'TexteLibre4',\n isMultiple: false,\n description: 'Commentaires type 1, ligne 4 (FTX)',\n value: comment && (comment?.length ?? 0) > 1536 ? textFormatting(comment.slice(1536, 2048)) : null,\n },\n {\n key: 'CB',\n tag: 'TexteLibre5',\n isMultiple: false,\n description: 'Commentaires type 1, ligne 5 (FTX)',\n value: comment && (comment?.length ?? 0) > 2048 ? textFormatting(comment.slice(2048, 2560)) : null,\n },\n {\n key: 'CC',\n tag: 'Valeur',\n isMultiple: false,\n description: 'Mention expresse (CCI)',\n value: comment && (comment?.length > 0) ? 'X' : null,\n },\n {\n key: 'DE',\n tag: 'Valeur',\n isMultiple: false,\n description: 'Je demande la suspension du ou des acomptes restant à courir (CCI)',\n value: data.shouldCancelAdvance ? 'X' : null,\n },\n {\n key: 'HA',\n tag: 'Valeur',\n isMultiple: false,\n description: 'Montant de l\\'acompte attendu ou modulé (MOA)',\n value: data.amountWanted,\n },\n {\n key: 'HB',\n tag: 'Valeur',\n isMultiple: false,\n description: 'Montant du crédit ou de l\\'excédent de TVA, figurant sur la précédente déclaration CA12/CA12E, et à déduire éventuellement du montant de l\\'acompte attendu ou modulé (MOA)',\n value: data.amountOfCredit,\n },\n {\n key: 'HC',\n tag: 'Valeur',\n isMultiple: false,\n description: 'Montant total de la TVA à payer à la place de l\\'acompte de TVA (MOA)',\n value: data.vatAmountToPay,\n },\n {\n key: 'IA',\n tag: 'Valeur',\n isMultiple: false,\n description: 'Montant de la TVA collectée au titre du semestre (MOA)',\n value: data.vatAmountCollected,\n },\n {\n key: 'IB',\n tag: 'Valeur',\n isMultiple: false,\n description: 'Montant de la TVA déductible au titre du semestre (MOA)',\n value: data.vatAmountDeductible,\n },\n {\n key: 'IC',\n tag: 'Valeur',\n isMultiple: false,\n description: 'Crédit de TVA dégagé au titre du semestre (MOA)',\n value: data.vatAmountQuarter,\n },\n {\n key: 'ID',\n tag: 'Valeur',\n isMultiple: false,\n description: 'Remboursement de la TVA sur investissements (MOA)',\n value: data.vatRefundedOnInvests,\n },\n ],\n }];\n}"]}
1
+ {"version":3,"file":"century23.js","sourceRoot":"","sources":["../../../../ts/utils/vat/3514/century23.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C,MAAM,UAAU,uCAAuC,CAAC,IAAoB;;IAC1E,MAAM,OAAO,GAAG,cAAc,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IAEzD,OAAO,CAAC;YACN,IAAI,EAAE,MAAM;YACZ,MAAM,EAAE;gBACN;oBACE,GAAG,EAAE,IAAI;oBACT,GAAG,EAAE,QAAQ;oBACb,UAAU,EAAE,KAAK;oBACjB,WAAW,EAAE,+BAA+B;oBAC5C,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI;iBAC9C;gBACD;oBACE,GAAG,EAAE,IAAI;oBACT,KAAK,EAAE,IAAI;oBACX,UAAU,EAAE,KAAK;oBACjB,IAAI,EAAE;wBACJ;4BACE,GAAG,EAAE,aAAa;4BAClB,WAAW,EAAE,oCAAoC;4BACjD,KAAK,EAAE,cAAc,CAAC,OAAO,EAAE,GAAG,CAAC;yBACpC;wBACD;4BACE,GAAG,EAAE,aAAa;4BAClB,WAAW,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,EAAE,iDAAiD;oBAC9D,KAAK,EAAE,IAAI,CAAC,gBAAgB;iBAC7B;gBACD;oBACE,GAAG,EAAE,IAAI;oBACT,GAAG,EAAE,QAAQ;oBACb,UAAU,EAAE,KAAK;oBACjB,WAAW,EAAE,mDAAmD;oBAChE,KAAK,EAAE,IAAI,CAAC,oBAAoB;iBACjC;aACF;SACF,CAAC,CAAC;AACL,CAAC","sourcesContent":["import { Cerfa3514_2022 } from '../../../types/Interface/api/cerfa/3514';\nimport { AsponeFormFields } from '../../../types/Interface/api/cerfa/ReadCerfa';\nimport { textFormatting } from '../utils';\n\nexport function getCerfa3514Century23RegistrationFields(data: Cerfa3514_2022): AsponeFormFields {\n const comment = textFormatting(data.declaration.comment);\n\n return [{\n name: '3514',\n fields: [\n {\n key: 'CA',\n tag: 'Valeur',\n isMultiple: false,\n description: 'Paiement par imputation (CCI)',\n value: data.payment.byImputation ? 'X' : null,\n },\n {\n key: 'CB',\n value: null,\n isMultiple: false,\n tags: [\n {\n tag: 'TexteLibre1',\n description: 'Commentaires type 1, ligne 1 (FTX)',\n value: textFormatting(comment, 512),\n },\n {\n tag: 'TexteLibre2',\n description: 'Commentaires type 1, ligne 2 (FTX)',\n value: comment && (comment?.length ?? 0) > 512 ? textFormatting(comment.slice(512, 1024)) : null,\n },\n {\n tag: 'TexteLibre3',\n description: 'Commentaires type 1, ligne 3 (FTX)',\n value: comment && (comment?.length ?? 0) > 1024 ? textFormatting(comment.slice(1024, 1536)) : null,\n },\n {\n tag: 'TexteLibre4',\n description: 'Commentaires type 1, ligne 4 (FTX)',\n value: comment && (comment?.length ?? 0) > 1536 ? textFormatting(comment.slice(1536, 2048)) : null,\n },\n {\n tag: 'TexteLibre5',\n description: 'Commentaires type 1, ligne 5 (FTX)',\n value: comment && (comment?.length ?? 0) > 2048 ? textFormatting(comment.slice(2048, 2560)) : null,\n },\n ],\n },\n {\n key: 'CC',\n tag: 'Valeur',\n isMultiple: false,\n description: 'Mention expresse (CCI)',\n value: comment && (comment?.length > 0) ? 'X' : null,\n },\n {\n key: 'DE',\n tag: 'Valeur',\n isMultiple: false,\n description: 'Je demande la suspension du ou des acomptes restant à courir (CCI)',\n value: data.shouldCancelAdvance ? 'X' : null,\n },\n {\n key: 'HA',\n tag: 'Valeur',\n isMultiple: false,\n description: 'Montant de l\\'acompte attendu ou modulé (MOA)',\n value: data.amountWanted,\n },\n {\n key: 'HB',\n tag: 'Valeur',\n isMultiple: false,\n description: 'Montant du crédit ou de l\\'excédent de TVA, figurant sur la précédente déclaration CA12/CA12E, et à déduire éventuellement du montant de l\\'acompte attendu ou modulé (MOA)',\n value: data.amountOfCredit,\n },\n {\n key: 'HC',\n tag: 'Valeur',\n isMultiple: false,\n description: 'Montant total de la TVA à payer à la place de l\\'acompte de TVA (MOA)',\n value: data.vatAmountToPay,\n },\n {\n key: 'IA',\n tag: 'Valeur',\n isMultiple: false,\n description: 'Montant de la TVA collectée au titre du semestre (MOA)',\n value: data.vatAmountCollected,\n },\n {\n key: 'IB',\n tag: 'Valeur',\n isMultiple: false,\n description: 'Montant de la TVA déductible au titre du semestre (MOA)',\n value: data.vatAmountDeductible,\n },\n {\n key: 'IC',\n tag: 'Valeur',\n isMultiple: false,\n description: 'Crédit de TVA dégagé au titre du semestre (MOA)',\n value: data.vatAmountQuarter,\n },\n {\n key: 'ID',\n tag: 'Valeur',\n isMultiple: false,\n description: 'Remboursement de la TVA sur investissements (MOA)',\n value: data.vatRefundedOnInvests,\n },\n ],\n }];\n}"]}
@@ -1 +1 @@
1
- {"version":3,"file":"century23.d.ts","sourceRoot":"","sources":["../../../../ts/utils/vat/3517/century23.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAChG,OAAO,EAAE,gBAAgB,EAAE,MAAM,kDAAkD,CAAC;AAKpF,OAAO,EAEL,gBAAgB,EAAkB,gBAAgB,EACnD,MAAM,gBAAgB,CAAC;AAExB,wBAAgB,4BAA4B,CAAC,iBAAiB,EAAE,gBAAgB,EAAE,EAAE,OAAO,EAAE,qBAAqB,GAAG,cAAc,CAoVlI;AAED,wBAAgB,oCAAoC,CAAC,IAAI,EAAE,cAAc,GAAG,gBAAgB,CAqxC3F;AAED,eAAO,MAAM,wBAAwB,EAAE,gBAAgB,EA4HtD,CAAC"}
1
+ {"version":3,"file":"century23.d.ts","sourceRoot":"","sources":["../../../../ts/utils/vat/3517/century23.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAChG,OAAO,EAAE,gBAAgB,EAAE,MAAM,kDAAkD,CAAC;AAKpF,OAAO,EACL,gBAAgB,EAAkB,gBAAgB,EACnD,MAAM,gBAAgB,CAAC;AAExB,wBAAgB,4BAA4B,CAAC,iBAAiB,EAAE,gBAAgB,EAAE,EAAE,OAAO,EAAE,qBAAqB,GAAG,cAAc,CAoVlI;AAED,wBAAgB,oCAAoC,CAAC,IAAI,EAAE,cAAc,GAAG,gBAAgB,CA2wC3F;AAED,eAAO,MAAM,wBAAwB,EAAE,gBAAgB,EA4HtD,CAAC"}
@@ -327,11 +327,10 @@ export function getCerfa3517Century23Payload(accountingEntries, payload) {
327
327
  return data;
328
328
  }
329
329
  export function getCerfa3517CenturyRegistrationField(data) {
330
- var _a, _b, _c, _d, _e;
330
+ var _a, _b, _c, _d;
331
331
  const comment = textFormatting(data.declaration.comment);
332
- let refund = [];
333
332
  if (data.refund.asked > 0) {
334
- refund = [{
333
+ return [{
335
334
  name: '3517DDR',
336
335
  fields: [
337
336
  {
@@ -371,24 +370,25 @@ export function getCerfa3517CenturyRegistrationField(data) {
371
370
  },
372
371
  {
373
372
  key: 'AF',
374
- tag: 'AdresseVille',
375
- isMultiple: false,
376
- description: 'NAD Lieu de dépôt de la demande 100184 ',
377
- value: data.refund.place,
378
- },
379
- {
380
- key: 'AF',
381
- tag: 'Designation',
382
- isMultiple: false,
383
- description: 'NAD Nom et prénom du demandeur 100178 ',
384
- value: textFormatting(data.refund.name, 35),
385
- },
386
- {
387
- key: 'AF',
388
- tag: 'DesignationSuite1',
389
- isMultiple: false,
390
- description: 'NAD Qualité du demandeur 100179 ',
391
373
  value: null,
374
+ isMultiple: false,
375
+ tags: [
376
+ {
377
+ tag: 'Designation',
378
+ description: 'NAD Nom et prénom du demandeur 100178 ',
379
+ value: textFormatting(data.refund.name, 35),
380
+ },
381
+ // {
382
+ // tag: 'DesignationSuite1',
383
+ // description: 'NAD Qualité du demandeur 100179 ',
384
+ // value: null,
385
+ // },
386
+ {
387
+ tag: 'AdresseVille',
388
+ description: 'NAD Lieu de dépôt de la demande 100184 ',
389
+ value: data.refund.place,
390
+ },
391
+ ],
392
392
  },
393
393
  {
394
394
  key: 'AG',
@@ -413,66 +413,62 @@ export function getCerfa3517CenturyRegistrationField(data) {
413
413
  },
414
414
  {
415
415
  key: 'AK',
416
- tag: 'TitulaireDesignation',
417
- isMultiple: false,
418
- description: 'FII Nom du titulaire du compte 100187 ',
419
416
  value: null,
420
- },
421
- {
422
- key: 'AK',
423
- tag: 'TitulaireDesignationSuite',
424
417
  isMultiple: false,
425
- description: 'FII Complément de nom du titulaire de compte 100188 ',
426
- value: null,
427
- },
428
- {
429
- key: 'AK',
430
- tag: 'Iban',
431
- isMultiple: false,
432
- description: 'FII IBAN IBAN: 34 caractères alphanumériques (INTERNATIONAL BANK ACCOUNT NUMBER) 902429 ',
433
- value: data.bankAccount.iban ? (_a = textFormatting(data.bankAccount.iban.toUpperCase())) === null || _a === void 0 ? void 0 : _a.replace(/\s/g, '') : null,
434
- },
435
- {
436
- key: 'AK',
437
- tag: 'Bic',
438
- isMultiple: false,
439
- description: 'FII BIC BIC : 8 ou 11 caractères alphanumériques (BANK IDENTIFIER CODE) 902409 ',
440
- value: data.bankAccount.bic ? textFormatting(data.bankAccount.bic.toUpperCase()) : null,
418
+ tags: [
419
+ {
420
+ tag: 'Iban',
421
+ description: 'FII IBAN IBAN: 34 caractères alphanumériques (INTERNATIONAL BANK ACCOUNT NUMBER) 902429 ',
422
+ value: 'DYNAMIC_IBAN',
423
+ },
424
+ {
425
+ tag: 'Bic',
426
+ description: 'FII BIC BIC : 8 ou 11 caractères alphanumériques (BANK IDENTIFIER CODE) 902409 ',
427
+ value: 'DYNAMIC_BIC',
428
+ },
429
+ // {
430
+ // tag: 'TitulaireDesignation',
431
+ // description: 'FII Nom du titulaire du compte 100187 ',
432
+ // value: null,
433
+ // },
434
+ // {
435
+ // tag: 'TitulaireDesignationSuite',
436
+ // description: 'FII Complément de nom du titulaire de compte 100188',
437
+ // value: null,
438
+ // },
439
+ ],
441
440
  },
442
441
  {
443
442
  key: 'AL',
444
- tag: 'TexteLibre1',
445
- isMultiple: false,
446
- description: 'FTX Commentaires type 1, ligne 1 1° zone de 512 c 100447 ',
447
443
  value: null,
448
- },
449
- {
450
- key: 'AL',
451
- tag: 'TexteLibre2',
452
444
  isMultiple: false,
453
- description: 'FTX Commentaires type 1, ligne 2 2° zone de 512 c 100547 ',
454
- value: null,
455
- },
456
- {
457
- key: 'AL',
458
- tag: 'TexteLibre3',
459
- isMultiple: false,
460
- description: 'FTX Commentaires type 1, ligne 3 3° zone de 512 c 100548 ',
461
- value: null,
462
- },
463
- {
464
- key: 'AL',
465
- tag: 'TexteLibre4',
466
- isMultiple: false,
467
- description: 'FTX Commentaires type 1, ligne 4 4° zone de 512 c 100549 ',
468
- value: null,
469
- },
470
- {
471
- key: 'AL',
472
- tag: 'TexteLibre5',
473
- isMultiple: false,
474
- description: 'FTX Commentaires type 1, ligne 5 5° zone de 512 c 100550 ',
475
- value: null,
445
+ tags: [
446
+ {
447
+ tag: 'TexteLibre1',
448
+ description: 'FTX Commentaires type 1, ligne 1 1° zone de 512 c 100447 ',
449
+ value: null,
450
+ },
451
+ {
452
+ tag: 'TexteLibre2',
453
+ description: 'FTX Commentaires type 1, ligne 2 2° zone de 512 c 100547 ',
454
+ value: null,
455
+ },
456
+ {
457
+ tag: 'TexteLibre3',
458
+ description: 'FTX Commentaires type 1, ligne 3 3° zone de 512 c 100548 ',
459
+ value: null,
460
+ },
461
+ {
462
+ tag: 'TexteLibre4',
463
+ description: 'FTX Commentaires type 1, ligne 4 4° zone de 512 c 100549 ',
464
+ value: null,
465
+ },
466
+ {
467
+ tag: 'TexteLibre5',
468
+ description: 'FTX Commentaires type 1, ligne 5 5° zone de 512 c 100550 ',
469
+ value: null,
470
+ },
471
+ ],
476
472
  },
477
473
  {
478
474
  key: 'BA',
@@ -602,37 +598,34 @@ export function getCerfa3517CenturyRegistrationField(data) {
602
598
  {
603
599
  key: 'CA',
604
600
  isMultiple: false,
605
- tag: 'TexteLibre1',
606
- description: 'Commentaires type 1, ligne 1 5ème zone de 512 c 100447 ',
607
- value: textFormatting(comment, 512),
608
- },
609
- {
610
- key: 'CA',
611
- isMultiple: false,
612
- tag: 'TexteLibre2',
613
- description: 'Commentaires type 1, ligne 2 4ème zone de 512 c 100547 ',
614
- value: comment && ((_b = comment === null || comment === void 0 ? void 0 : comment.length) !== null && _b !== void 0 ? _b : 0) > 512 ? textFormatting(comment.slice(512, 1024)) : null,
615
- },
616
- {
617
- key: 'CA',
618
- isMultiple: false,
619
- tag: 'TexteLibre3',
620
- description: 'Commentaires type 1, ligne 3 3ème zone de 512 c 100548 ',
621
- value: comment && ((_c = comment === null || comment === void 0 ? void 0 : comment.length) !== null && _c !== void 0 ? _c : 0) > 1024 ? textFormatting(comment.slice(1024, 1536)) : null,
622
- },
623
- {
624
- key: 'CA',
625
- isMultiple: false,
626
- tag: 'TexteLibre4',
627
- description: 'Commentaires type 1, ligne 4 2ème zone de 512 c 100549 ',
628
- value: comment && ((_d = comment === null || comment === void 0 ? void 0 : comment.length) !== null && _d !== void 0 ? _d : 0) > 1536 ? textFormatting(comment.slice(1536, 2048)) : null,
629
- },
630
- {
631
- key: 'CA',
632
- isMultiple: false,
633
- tag: 'TexteLibre5',
634
- value: comment && ((_e = comment === null || comment === void 0 ? void 0 : comment.length) !== null && _e !== void 0 ? _e : 0) > 2048 ? textFormatting(comment.slice(2048, 2560)) : null,
635
- description: 'Commentaires type 1, ligne 5 1ère zone de 512 c 100550 ',
601
+ value: null,
602
+ tags: [
603
+ {
604
+ tag: 'TexteLibre1',
605
+ description: 'Commentaires type 1, ligne 1 5ème zone de 512 c 100447 ',
606
+ value: textFormatting(comment, 512),
607
+ },
608
+ {
609
+ tag: 'TexteLibre2',
610
+ description: 'Commentaires type 1, ligne 2 4ème zone de 512 c 100547 ',
611
+ value: comment && ((_a = comment === null || comment === void 0 ? void 0 : comment.length) !== null && _a !== void 0 ? _a : 0) > 512 ? textFormatting(comment.slice(512, 1024)) : null,
612
+ },
613
+ {
614
+ tag: 'TexteLibre3',
615
+ description: 'Commentaires type 1, ligne 3 3ème zone de 512 c 100548 ',
616
+ value: comment && ((_b = comment === null || comment === void 0 ? void 0 : comment.length) !== null && _b !== void 0 ? _b : 0) > 1024 ? textFormatting(comment.slice(1024, 1536)) : null,
617
+ },
618
+ {
619
+ tag: 'TexteLibre4',
620
+ description: 'Commentaires type 1, ligne 4 2ème zone de 512 c 100549 ',
621
+ value: comment && ((_c = comment === null || comment === void 0 ? void 0 : comment.length) !== null && _c !== void 0 ? _c : 0) > 1536 ? textFormatting(comment.slice(1536, 2048)) : null,
622
+ },
623
+ {
624
+ tag: 'TexteLibre5',
625
+ value: comment && ((_d = comment === null || comment === void 0 ? void 0 : comment.length) !== null && _d !== void 0 ? _d : 0) > 2048 ? textFormatting(comment.slice(2048, 2560)) : null,
626
+ description: 'Commentaires type 1, ligne 5 1ère zone de 512 c 100550 ',
627
+ },
628
+ ],
636
629
  },
637
630
  {
638
631
  key: 'CG',
@@ -1622,8 +1615,7 @@ export function getCerfa3517CenturyRegistrationField(data) {
1622
1615
  value: data.tax.publicity,
1623
1616
  },
1624
1617
  ],
1625
- },
1626
- ...refund,];
1618
+ }];
1627
1619
  }
1628
1620
  export const cerfa3517Century23Fields = [{
1629
1621
  sectionName: 'Général',
@@ -1746,7 +1738,7 @@ export const cerfa3517Century23Fields = [{
1746
1738
  sectionName: 'Demande de remboursement',
1747
1739
  childrens: [
1748
1740
  { label: 'Remboursement demandé', key: 'refund.asked', type: 'number' },
1749
- { label: 'Crédit remboursable dégagé à la clôture de l’année ou de l’exercice', key: 'refund.onClose', type: 'number' },
1741
+ { label: 'Crédit remboursable dégagé à la clôture de l’année ou de l’exercice', key: 'refund.creditRefundable', type: 'number' },
1750
1742
  ],
1751
1743
  },
1752
1744
  ];