@silexpert/core 1.3.205 → 1.3.206-esm-0

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 (95) hide show
  1. package/dist/cjs/api/resources/Project.d.ts +2 -1
  2. package/dist/cjs/api/resources/Project.d.ts.map +1 -1
  3. package/dist/cjs/api/resources/Project.js +2 -1
  4. package/dist/cjs/api/resources/Project.js.map +1 -1
  5. package/dist/cjs/types/Enum/TaskResponseType.d.ts.map +1 -1
  6. package/dist/cjs/types/Enum/TaskResponseType.js +11 -0
  7. package/dist/cjs/types/Enum/TaskResponseType.js.map +1 -1
  8. package/dist/cjs/types/Enum/Unit.js +1 -1
  9. package/dist/cjs/types/Enum/Unit.js.map +1 -1
  10. package/dist/cjs/types/Interface/api/cerfa/3310.d.ts +5 -285
  11. package/dist/cjs/types/Interface/api/cerfa/3310.d.ts.map +1 -1
  12. package/dist/cjs/types/Interface/api/cerfa/3310.js.map +1 -1
  13. package/dist/cjs/types/Interface/api/cerfa/ReadCerfa.d.ts +3 -3
  14. package/dist/cjs/types/Interface/api/cerfa/ReadCerfa.d.ts.map +1 -1
  15. package/dist/cjs/types/Interface/api/cerfa/ReadCerfa.js.map +1 -1
  16. package/dist/cjs/types/Interface/api/exercice/QueryExercice.d.ts +3 -0
  17. package/dist/cjs/types/Interface/api/exercice/QueryExercice.d.ts.map +1 -1
  18. package/dist/cjs/types/Interface/api/exercice/QueryExercice.js +10 -1
  19. package/dist/cjs/types/Interface/api/exercice/QueryExercice.js.map +1 -1
  20. package/dist/cjs/types/Interface/api/registration/CreateRegistration.d.ts +2 -2
  21. package/dist/cjs/types/Interface/api/registration/CreateRegistration.d.ts.map +1 -1
  22. package/dist/cjs/types/Interface/api/registration/CreateRegistration.js.map +1 -1
  23. package/dist/cjs/types/Interface/api/webmail/CreateMailFromLambda.d.ts +6 -7
  24. package/dist/cjs/types/Interface/api/webmail/CreateMailFromLambda.d.ts.map +1 -1
  25. package/dist/cjs/types/Interface/api/webmail/CreateMailFromLambda.js +2 -1
  26. package/dist/cjs/types/Interface/api/webmail/CreateMailFromLambda.js.map +1 -1
  27. package/dist/cjs/utils/vat/3310/century24.d.ts.map +1 -1
  28. package/dist/cjs/utils/vat/3310/century24.js +22 -16
  29. package/dist/cjs/utils/vat/3310/century24.js.map +1 -1
  30. package/dist/cjs/utils/vat/3310/century25.d.ts.map +1 -1
  31. package/dist/cjs/utils/vat/3310/century25.js +5 -0
  32. package/dist/cjs/utils/vat/3310/century25.js.map +1 -1
  33. package/dist/cjs/utils/vat/3310/century26.d.ts +8 -0
  34. package/dist/cjs/utils/vat/3310/century26.d.ts.map +1 -0
  35. package/dist/cjs/utils/vat/3310/{century23.js → century26.js} +114 -43
  36. package/dist/cjs/utils/vat/3310/century26.js.map +1 -0
  37. package/dist/cjs/utils/vat/centuries.js +31 -31
  38. package/dist/cjs/utils/vat/centuries.js.map +1 -1
  39. package/dist/mjs/api/resources/Project.d.ts +2 -1
  40. package/dist/mjs/api/resources/Project.d.ts.map +1 -1
  41. package/dist/mjs/api/resources/Project.js +2 -1
  42. package/dist/mjs/api/resources/Project.js.map +1 -1
  43. package/dist/mjs/types/Enum/TaskResponseType.d.ts.map +1 -1
  44. package/dist/mjs/types/Enum/TaskResponseType.js +11 -0
  45. package/dist/mjs/types/Enum/TaskResponseType.js.map +1 -1
  46. package/dist/mjs/types/Enum/Unit.js +1 -1
  47. package/dist/mjs/types/Enum/Unit.js.map +1 -1
  48. package/dist/mjs/types/Interface/api/cerfa/3310.d.ts +5 -285
  49. package/dist/mjs/types/Interface/api/cerfa/3310.d.ts.map +1 -1
  50. package/dist/mjs/types/Interface/api/cerfa/3310.js.map +1 -1
  51. package/dist/mjs/types/Interface/api/cerfa/ReadCerfa.d.ts +3 -3
  52. package/dist/mjs/types/Interface/api/cerfa/ReadCerfa.d.ts.map +1 -1
  53. package/dist/mjs/types/Interface/api/cerfa/ReadCerfa.js.map +1 -1
  54. package/dist/mjs/types/Interface/api/exercice/QueryExercice.d.ts +3 -0
  55. package/dist/mjs/types/Interface/api/exercice/QueryExercice.d.ts.map +1 -1
  56. package/dist/mjs/types/Interface/api/exercice/QueryExercice.js +10 -1
  57. package/dist/mjs/types/Interface/api/exercice/QueryExercice.js.map +1 -1
  58. package/dist/mjs/types/Interface/api/registration/CreateRegistration.d.ts +2 -2
  59. package/dist/mjs/types/Interface/api/registration/CreateRegistration.d.ts.map +1 -1
  60. package/dist/mjs/types/Interface/api/registration/CreateRegistration.js.map +1 -1
  61. package/dist/mjs/types/Interface/api/webmail/CreateMailFromLambda.d.ts +6 -7
  62. package/dist/mjs/types/Interface/api/webmail/CreateMailFromLambda.d.ts.map +1 -1
  63. package/dist/mjs/types/Interface/api/webmail/CreateMailFromLambda.js +8 -7
  64. package/dist/mjs/types/Interface/api/webmail/CreateMailFromLambda.js.map +1 -1
  65. package/dist/mjs/utils/vat/3310/century24.d.ts.map +1 -1
  66. package/dist/mjs/utils/vat/3310/century24.js +22 -16
  67. package/dist/mjs/utils/vat/3310/century24.js.map +1 -1
  68. package/dist/mjs/utils/vat/3310/century25.d.ts.map +1 -1
  69. package/dist/mjs/utils/vat/3310/century25.js +5 -0
  70. package/dist/mjs/utils/vat/3310/century25.js.map +1 -1
  71. package/dist/mjs/utils/vat/3310/century26.d.ts +8 -0
  72. package/dist/mjs/utils/vat/3310/century26.d.ts.map +1 -0
  73. package/dist/mjs/utils/vat/3310/{century23.js → century26.js} +108 -37
  74. package/dist/mjs/utils/vat/3310/century26.js.map +1 -0
  75. package/dist/mjs/utils/vat/centuries.js +20 -20
  76. package/dist/mjs/utils/vat/centuries.js.map +1 -1
  77. package/package.json +12 -14
  78. package/ts/api/resources/Project.ts +3 -1
  79. package/ts/types/Enum/TaskResponseType.ts +11 -0
  80. package/ts/types/Enum/Unit.ts +1 -1
  81. package/ts/types/Interface/api/cerfa/3310.ts +7 -285
  82. package/ts/types/Interface/api/cerfa/ReadCerfa.ts +3 -3
  83. package/ts/types/Interface/api/exercice/QueryExercice.ts +8 -1
  84. package/ts/types/Interface/api/registration/CreateRegistration.ts +2 -2
  85. package/ts/types/Interface/api/webmail/CreateMailFromLambda.ts +7 -8
  86. package/ts/utils/vat/3310/century24.ts +27 -21
  87. package/ts/utils/vat/3310/century25.ts +5 -0
  88. package/ts/utils/vat/3310/{century23.ts → century26.ts} +118 -43
  89. package/ts/utils/vat/centuries.ts +32 -32
  90. package/dist/cjs/utils/vat/3310/century23.d.ts +0 -8
  91. package/dist/cjs/utils/vat/3310/century23.d.ts.map +0 -1
  92. package/dist/cjs/utils/vat/3310/century23.js.map +0 -1
  93. package/dist/mjs/utils/vat/3310/century23.d.ts +0 -8
  94. package/dist/mjs/utils/vat/3310/century23.d.ts.map +0 -1
  95. package/dist/mjs/utils/vat/3310/century23.js.map +0 -1
@@ -2,18 +2,18 @@ import * as dayjs from 'dayjs';
2
2
  import { isDefined } from 'class-validator';
3
3
  import { round as _round, flatten, uniqBy, maxBy } from 'lodash';
4
4
  import { IAccountingEntry } from '../../../types/Interface/models/IAccountingEntry';
5
- import { Cerfa3310_2023, PayloadCerfa3310_2023 } from '../../../types/Interface/api/cerfa/3310';
5
+ import { Cerfa3310_2026, PayloadCerfa3310_2026 } from '../../../types/Interface/api/cerfa/3310';
6
6
  import { Vat } from '../../../types/Enum/Vat';
7
7
  import { getAmountByAccountNumber, getTaxAmountByAccountNumber, setZeroIfIsNegative, textFormatting } from '../utils';
8
8
  import { AsponeFormFields, CerfaPayloadForm } from '../../../types/Interface/api/cerfa/ReadCerfa';
9
9
  import { UpdatedAnnotation } from '../../../types/Interface/api/registration/ReadRegistration';
10
10
  import { FieldForGeneration } from '../../../types/Interface/api/aspone/ReadInterchange';
11
11
 
12
- export function getCerfa3310Century23Payload(
12
+ export function getCerfa3310Century26Payload(
13
13
  accountingEntries: IAccountingEntry[],
14
- payload: PayloadCerfa3310_2023,
14
+ payload: PayloadCerfa3310_2026,
15
15
  updatedEntries: UpdatedAnnotation = [],
16
- ): Cerfa3310_2023 {
16
+ ): Cerfa3310_2026 {
17
17
  const shouldHaveVatCode = isDefined(payload.setting?.tvaCode) && isDefined(payload.society.siret);
18
18
  const vats = Object.values(Vat);
19
19
 
@@ -335,7 +335,6 @@ export function getCerfa3310Century23Payload(
335
335
  true,
336
336
  ),
337
337
  ) + (payload?.vatControl?.importations?.base20 ?? 0);
338
-
339
338
  const importNormalRateTax = _round(importNormalRate * 0.2);
340
339
 
341
340
  const importReducedRate10 =
@@ -462,12 +461,13 @@ export function getCerfa3310Century23Payload(
462
461
  ),
463
462
  ) + (payload?.vatControl?.deducted?.other ?? 0);
464
463
 
465
- const isNil = payload.isNil === true;
466
- const report = isNil ? 0 :
467
- (payload.vat?.deductible?.toReport && payload.vat?.deductible?.toReport >= 0
468
- ? _round(payload.vat?.deductible?.toReport ?? 0)
469
- : (payload.previousVatDeclaration?.credit?.toReport ?? 0)) + (payload?.vatControl?.deducted?.reported ?? 0);
470
464
  const coefficient = _round(payload.vat?.deductible?.coefficient ?? 100, 2);
465
+ const isNil = payload.isNil === true;
466
+ const report = isNil
467
+ ? 0
468
+ : (isDefined(payload.vat?.deductible?.toReport) && payload.vat?.deductible?.toReport >= 0
469
+ ? _round(payload.vat?.deductible?.toReport ?? 0)
470
+ : (payload.previousVatDeclaration?.credit?.toReport ?? 0)) + (payload?.vatControl?.deducted?.reported ?? 0);
471
471
  const isHolidayDeposit = payload.isHolidayDeposit === true;
472
472
 
473
473
  const sumToAdd =
@@ -480,8 +480,9 @@ export function getCerfa3310Century23Payload(
480
480
  ) + (payload?.vatControl?.regularisations?.case5B ?? 0);
481
481
  const comment = isHolidayDeposit ? `ACOMPTE CONGES ${payload.comment ?? ''}` : (payload.comment ?? null);
482
482
 
483
- const initialPayload: Cerfa3310_2023 = {
483
+ const initialPayload: Cerfa3310_2026 = {
484
484
  isNil,
485
+ isHolidayDeposit,
485
486
  isDGE: false,
486
487
  isUniq: false,
487
488
  declaration: {
@@ -695,6 +696,10 @@ export function getCerfa3310Century23Payload(
695
696
  base: 0,
696
697
  tax: 0,
697
698
  },
699
+ atCorse13: {
700
+ base: 0,
701
+ tax: 0,
702
+ },
698
703
  atCorse2Dot1: {
699
704
  base: 0,
700
705
  tax: 0,
@@ -756,6 +761,7 @@ export function getCerfa3310Century23Payload(
756
761
  initialPayload.vat.otherRate.at1Dot05.base +
757
762
  initialPayload.vat.otherRate.at10.base +
758
763
  initialPayload.vat.otherRate.atCorse2Dot1.base +
764
+ initialPayload.vat.otherRate.atCorse13.base +
759
765
  initialPayload.vat.otherRate.atCorse0Dot9.base +
760
766
  initialPayload.vat.otherRate.at2Dot1.base +
761
767
  initialPayload.vat.otherRate.author.base +
@@ -796,6 +802,7 @@ export function getCerfa3310Century23Payload(
796
802
  initialPayload.vat.otherRate.at1Dot05.tax +
797
803
  initialPayload.vat.otherRate.at10.tax +
798
804
  initialPayload.vat.otherRate.atCorse2Dot1.tax +
805
+ initialPayload.vat.otherRate.atCorse13.tax +
799
806
  initialPayload.vat.otherRate.atCorse0Dot9.tax +
800
807
  initialPayload.vat.otherRate.at2Dot1.tax +
801
808
  initialPayload.vat.otherRate.author.tax +
@@ -837,7 +844,7 @@ export function getCerfa3310Century23Payload(
837
844
  return initialPayload;
838
845
  }
839
846
 
840
- export function getCerfa3310Century23RegistrationFields(data: Cerfa3310_2023): AsponeFormFields {
847
+ export function getCerfa3310Century26RegistrationFields(data: Cerfa3310_2026): AsponeFormFields {
841
848
  const comment = textFormatting(data.declaration.comment);
842
849
 
843
850
  const importFields: FieldForGeneration[] = [];
@@ -952,19 +959,33 @@ export function getCerfa3310Century23RegistrationFields(data: Cerfa3310_2023): A
952
959
  });
953
960
  }
954
961
 
962
+ if (data.vat.deductible.other.collected > 0) {
963
+ importFields.push({
964
+ key: 'HH',
965
+ tag: 'Valeur',
966
+ isMultiple: false,
967
+ description: 'MOA - TVA collectée sur autres produits ou PS [cf notice] ou déductible',
968
+ value: data.vat.deductible.other.collected,
969
+ });
970
+ }
971
+
955
972
  return [
956
973
  {
957
974
  name: '3310CA3',
958
975
  fields: [
959
976
  {
960
- key: 'BA',
961
- value: null,
977
+ key: 'AA',
978
+ tag: 'Valeur',
962
979
  isMultiple: false,
963
- tags: [1, 2, 3, 4, 5].map((i) => ({
964
- tag: `TexteLibre${i}` as 'TexteLibre1',
965
- description: `FTX Commentaires type ${i}`,
966
- value: textFormatting(comment, 512, 512 * (i - 1)) || null,
967
- })),
980
+ description: 'Acompte congés payés',
981
+ value: data.isHolidayDeposit ? 'X' : null,
982
+ },
983
+ {
984
+ key: 'AC',
985
+ tag: 'Valeur',
986
+ isMultiple: false,
987
+ description: 'Autres',
988
+ value: comment && comment?.length > 0 && !data.isHolidayDeposit ? 'X' : null,
968
989
  },
969
990
  {
970
991
  key: 'BB',
@@ -980,6 +1001,16 @@ export function getCerfa3310Century23RegistrationFields(data: Cerfa3310_2023): A
980
1001
  description: 'CCITBX Mention expresse Table TBX avec X pour sélectionné, CCI/7037 = CAV/1131 =',
981
1002
  value: comment && comment?.length > 0 ? 'X' : null,
982
1003
  },
1004
+ {
1005
+ key: 'BA',
1006
+ value: null,
1007
+ isMultiple: false,
1008
+ tags: [1, 2, 3, 4, 5].map((i) => ({
1009
+ tag: `TexteLibre${i}` as 'TexteLibre1',
1010
+ description: `FTX Commentaires type ${i}`,
1011
+ value: textFormatting(comment, 512, 512 * (i - 1)) || null,
1012
+ })),
1013
+ },
983
1014
  {
984
1015
  key: 'BE',
985
1016
  tag: 'Valeur',
@@ -1048,7 +1079,7 @@ export function getCerfa3310Century23RegistrationFields(data: Cerfa3310_2023): A
1048
1079
  tag: 'Valeur',
1049
1080
  isMultiple: false,
1050
1081
  description:
1051
- 'MOA Livraisons d\'electricité, de gaz naturel, de chaleur ou de froid imposables en France, base hors taxe',
1082
+ "MOA Livraisons d'electricité, de gaz naturel, de chaleur ou de froid imposables en France, base hors taxe",
1052
1083
  value: data.taxedOperations.energyDelivery,
1053
1084
  },
1054
1085
  {
@@ -1056,9 +1087,10 @@ export function getCerfa3310Century23RegistrationFields(data: Cerfa3310_2023): A
1056
1087
  tag: 'Valeur',
1057
1088
  isMultiple: false,
1058
1089
  description:
1059
- 'MOA Achats de biens ou de prestations de services réalisés auprès d\'un assujetti non établi en France, art 283-1 du CGI',
1090
+ "MOA Achats de biens ou de prestations de services réalisés auprès d'un assujetti non établi en France, art 283-1 du CGI",
1060
1091
  value: data.taxedOperations.purchaseOfServicesNotInFrance,
1061
1092
  },
1093
+
1062
1094
  {
1063
1095
  key: 'CH',
1064
1096
  tag: 'Valeur',
@@ -1080,6 +1112,20 @@ export function getCerfa3310Century23RegistrationFields(data: Cerfa3310_2023): A
1080
1112
  description: 'MOA Opérations imposables dans les DOM à un taux particulier, taux 1,75%, taxe due',
1081
1113
  value: data.vat.otherRate.at1Dot75.tax,
1082
1114
  },
1115
+ {
1116
+ key: 'NN',
1117
+ tag: 'Valeur',
1118
+ isMultiple: false,
1119
+ description: 'Opérations réalisées en Corse et imposables au taux de 13 %, base HT',
1120
+ value: data.vat.otherRate.atCorse13.base,
1121
+ },
1122
+ {
1123
+ key: 'NP',
1124
+ tag: 'Valeur',
1125
+ isMultiple: false,
1126
+ description: 'Opérations réalisées en Corse et imposables au taux de 13 %, taxe due',
1127
+ value: data.vat.otherRate.atCorse13.tax,
1128
+ },
1083
1129
  {
1084
1130
  key: 'CS',
1085
1131
  tag: 'Valeur',
@@ -1105,7 +1151,7 @@ export function getCerfa3310Century23RegistrationFields(data: Cerfa3310_2023): A
1105
1151
  key: 'DC',
1106
1152
  tag: 'Valeur',
1107
1153
  isMultiple: false,
1108
- description: 'MOA Livraisons intracommunautaires à destination d\'une personne assujettie 100077',
1154
+ description: "MOA Livraisons intracommunautaires à destination d'une personne assujettie 100077",
1109
1155
  value: data.untaxedOperations.intracommunityDelivery,
1110
1156
  },
1111
1157
  {
@@ -1127,7 +1173,7 @@ export function getCerfa3310Century23RegistrationFields(data: Cerfa3310_2023): A
1127
1173
  tag: 'Valeur',
1128
1174
  isMultiple: false,
1129
1175
  description:
1130
- 'MOA Livraisons d\'electricité, de gaz naturel, de chaleur ou de froid non imposables en France 100122',
1176
+ "MOA Livraisons d'electricité, de gaz naturel, de chaleur ou de froid non imposables en France 100122",
1131
1177
  value: data.untaxedOperations.energyDelivery,
1132
1178
  },
1133
1179
  {
@@ -1334,7 +1380,7 @@ export function getCerfa3310Century23RegistrationFields(data: Cerfa3310_2023): A
1334
1380
  tag: 'Valeur',
1335
1381
  isMultiple: false,
1336
1382
  description:
1337
- 'PCD Pourcentage de déduction applicable pour la période s\'il est différent de 100% Valeur entière et au plus 2 décimales',
1383
+ "PCD Pourcentage de déduction applicable pour la période s'il est différent de 100% Valeur entière et au plus 2 décimales",
1338
1384
  value:
1339
1385
  isDefined(data.vat.deductible.coefficient) && data.vat.deductible.coefficient !== 100
1340
1386
  ? data.vat.deductible.coefficient
@@ -1354,18 +1400,11 @@ export function getCerfa3310Century23RegistrationFields(data: Cerfa3310_2023): A
1354
1400
  description: 'MOA Total de la TVA déductible',
1355
1401
  value: data.vat.deductible.total,
1356
1402
  },
1357
- {
1358
- key: 'HH',
1359
- tag: 'Valeur',
1360
- isMultiple: false,
1361
- description: 'MOA - TVA collectée sur autres produits ou PS [cf notice] ou déductible',
1362
- value: data.vat.deductible.other.collected,
1363
- },
1364
1403
  {
1365
1404
  key: 'HJ',
1366
1405
  tag: 'Valeur',
1367
1406
  isMultiple: false,
1368
- description: 'CCITBX Mention membre d\'un groupe Table TBX avec X pour sélectionné, CCI/7037 = CAV/1131 =',
1407
+ description: "CCITBX Mention membre d'un groupe Table TBX avec X pour sélectionné, CCI/7037 = CAV/1131 =",
1369
1408
  value: null,
1370
1409
  },
1371
1410
  {
@@ -1471,7 +1510,8 @@ export function getCerfa3310Century23RegistrationFields(data: Cerfa3310_2023): A
1471
1510
  key: 'KV',
1472
1511
  tag: 'Valeur',
1473
1512
  isMultiple: false,
1474
- description: 'MOA Sorties de régime fiscal suspensif (autres que les produits pétroliers',
1513
+ description:
1514
+ 'Sorties de régime fiscal suspensif (autres que les produits pétroliers) et sorties de régime particulier douanier uniquement lorsque des livraisons ont eu lieu en cours de régime',
1475
1515
  value: data.taxedOperations.withdrawSuspensiveRegime,
1476
1516
  },
1477
1517
  {
@@ -1571,7 +1611,7 @@ export function getCerfa3310Century23RegistrationFields(data: Cerfa3310_2023): A
1571
1611
  tag: 'Valeur',
1572
1612
  isMultiple: false,
1573
1613
  description:
1574
- 'CCITBX Mention de qualité de représentant d\'un assujetti unique Table TBX avec X pour sélectionné, CCI/7037 = CAV/1131 =',
1614
+ "CCITBX Mention de qualité de représentant d'un assujetti unique Table TBX avec X pour sélectionné, CCI/7037 = CAV/1131 =",
1575
1615
  value: null,
1576
1616
  },
1577
1617
  {
@@ -1592,7 +1632,7 @@ export function getCerfa3310Century23RegistrationFields(data: Cerfa3310_2023): A
1592
1632
  key: 'MD',
1593
1633
  tag: 'Valeur',
1594
1634
  isMultiple: false,
1595
- description: 'MOA Retenue de TVA sur droits d\'auteur taxe due',
1635
+ description: "MOA Retenue de TVA sur droits d'auteur taxe due",
1596
1636
  value: data.vat.otherRate.author.tax,
1597
1637
  },
1598
1638
  {
@@ -1613,7 +1653,7 @@ export function getCerfa3310Century23RegistrationFields(data: Cerfa3310_2023): A
1613
1653
  key: 'MG',
1614
1654
  tag: 'Valeur',
1615
1655
  isMultiple: false,
1616
- description: 'MOA Retenue de TVA sur droits d\'auteur base HT',
1656
+ description: "MOA Retenue de TVA sur droits d'auteur base HT",
1617
1657
  value: data.vat.otherRate.oldRate.base,
1618
1658
  },
1619
1659
  {
@@ -1764,12 +1804,41 @@ export function getCerfa3310Century23RegistrationFields(data: Cerfa3310_2023): A
1764
1804
  description: 'MOA TVA nette due (ligne TD - ligne X5',
1765
1805
  value: data.toPay.netDue,
1766
1806
  },
1807
+
1808
+ {
1809
+ key: 'NV',
1810
+ tag: 'Valeur',
1811
+ isMultiple: false,
1812
+ description: 'Accise sur les autres produits énergétiques - Crédit constaté',
1813
+ value: data.tic?.other?.credit,
1814
+ },
1815
+ {
1816
+ key: 'NW',
1817
+ tag: 'Valeur',
1818
+ isMultiple: false,
1819
+ description: 'Assise sur les autres produits énergétiques - Crédit imputé sur la TVA',
1820
+ value: data.tic?.other?.imputed,
1821
+ },
1822
+ {
1823
+ key: 'NX',
1824
+ tag: 'Valeur',
1825
+ isMultiple: false,
1826
+ description: 'Assise sur les autres produits énergétiques - Reliquat de crédit à rembourser',
1827
+ value: data.tic?.other?.refund,
1828
+ },
1829
+ {
1830
+ key: 'NY',
1831
+ tag: 'Valeur',
1832
+ isMultiple: false,
1833
+ description: 'Accise sur le gazole non routier agricole - Taxe due',
1834
+ value: data?.tic?.gasoline?.tax,
1835
+ },
1767
1836
  ],
1768
1837
  },
1769
1838
  ];
1770
1839
  }
1771
1840
 
1772
- export const cerfa3310Century23Fields: CerfaPayloadForm[] = [
1841
+ export const cerfa3310Century26Fields: CerfaPayloadForm[] = [
1773
1842
  {
1774
1843
  sectionName: 'Général',
1775
1844
  childrens: [
@@ -1789,7 +1858,8 @@ export const cerfa3310Century23Fields: CerfaPayloadForm[] = [
1789
1858
  sectionName: 'Opérations taxées',
1790
1859
  childrens: [
1791
1860
  {
1792
- label: 'A5 - Sorties de régime fiscal suspensif (autre que les produits pétroliers)',
1861
+ label:
1862
+ 'A5 - Sorties de régime fiscal suspensif (autres que les produits pétroliers) et sorties de régime particulier douanier uniquement lorsque des livraisons ont eu lieu en cours de régime',
1793
1863
  key: 'taxedOperations.withdrawSuspensiveRegime',
1794
1864
  type: 'number',
1795
1865
  },
@@ -1799,12 +1869,17 @@ export const cerfa3310Century23Fields: CerfaPayloadForm[] = [
1799
1869
  type: 'number',
1800
1870
  },
1801
1871
  {
1802
- label: 'B3 - Achats d\'electricité, de gaz naturel, de chaleur ou de froid imposables en France',
1872
+ label: "B3 - Achats d'electricité, de gaz naturel, de chaleur ou de froid imposables en France",
1803
1873
  key: 'taxedOperations.energyDelivery',
1804
1874
  type: 'number',
1805
1875
  },
1806
1876
  {
1807
- label: 'B4 - Achats de biens ou de prestations de services réalisés auprès d\'un assujetti non établi en France',
1877
+ label: "B4 - Achats de biens ou de prestations de services réalisés auprès d'un assujetti non établi en France",
1878
+ key: 'taxedOperations.purchaseOfServicesNotInFrance',
1879
+ type: 'number',
1880
+ },
1881
+ {
1882
+ label: 'B5 - Régularisations',
1808
1883
  key: 'taxedOperations.regularizations',
1809
1884
  type: 'number',
1810
1885
  },
@@ -1834,7 +1909,7 @@ export const cerfa3310Century23Fields: CerfaPayloadForm[] = [
1834
1909
  type: 'number',
1835
1910
  },
1836
1911
  {
1837
- label: 'F3 - Livraisons d\'électricité, de gaz naturel, de chaleur ou de froid non imposables en France',
1912
+ label: "F3 - Livraisons d'électricité, de gaz naturel, de chaleur ou de froid non imposables en France",
1838
1913
  key: 'untaxedOperations.energyDelivery',
1839
1914
  type: 'number',
1840
1915
  },
@@ -1864,7 +1939,7 @@ export const cerfa3310Century23Fields: CerfaPayloadForm[] = [
1864
1939
  type: 'number',
1865
1940
  },
1866
1941
  {
1867
- label: 'F9 - Opérations internes réalisées entre membres d\'un assujetti unique',
1942
+ label: 'F9 - Opérations internes réalisées entre membres dun assujetti unique',
1868
1943
  key: 'untaxedOperations.internalUniq',
1869
1944
  type: 'number',
1870
1945
  },
@@ -1951,7 +2026,7 @@ export const cerfa3310Century23Fields: CerfaPayloadForm[] = [
1951
2026
  type: 'number',
1952
2027
  },
1953
2028
  {
1954
- label: '29 - Taxes assimilées calculées sur l\'annexe n° 3310 A',
2029
+ label: "29 - Taxes assimilées calculées sur l'annexe n° 3310 A",
1955
2030
  key: 'credit.assimiledTaxes',
1956
2031
  type: 'number',
1957
2032
  },
@@ -1,19 +1,14 @@
1
1
  import * as dayjs from 'dayjs';
2
2
  import { CerfaType } from '../../types/Enum/CerfaType';
3
3
  import { VatDocument } from '../../types/Interface/api/cerfa/ReadCerfa';
4
- import {
5
- cerfa3310Century23Fields,
6
- getCerfa3310Century23Payload,
7
- getCerfa3310Century23RegistrationFields,
8
- } from './3310/century23';
9
4
  import { IAccountingEntry } from '../../types/Interface/models/IAccountingEntry';
10
5
  import {
11
- Cerfa3310_2023,
12
6
  Cerfa3310_2024,
13
7
  Cerfa3310_2025,
14
- PayloadCerfa3310_2023,
8
+ Cerfa3310_2026,
15
9
  PayloadCerfa3310_2024,
16
10
  PayloadCerfa3310_2025,
11
+ PayloadCerfa3310_2026,
17
12
  } from '../../types/Interface/api/cerfa/3310';
18
13
  import {
19
14
  Cerfa3514_2022,
@@ -48,6 +43,11 @@ import {
48
43
  getCerfa3310Century25Payload,
49
44
  getCerfa3310Century25RegistrationFields,
50
45
  } from './3310/century25';
46
+ import {
47
+ cerfa3310Century26Fields,
48
+ getCerfa3310Century26Payload,
49
+ getCerfa3310Century26RegistrationFields,
50
+ } from './3310/century26';
51
51
  import {
52
52
  cerfa3517Century26Fields,
53
53
  getCerfa3517Century26Payload,
@@ -59,20 +59,20 @@ const vatDocuments: VatDocument[] = [
59
59
  {
60
60
  idCerfaType: CerfaType.CERFA_3310,
61
61
  name: '3310',
62
- century: '23',
63
- centuries: [2022, 2023],
62
+ century: '24',
63
+ centuries: [2022, 2023, 2024],
64
64
  payload: (
65
65
  accountingEntries: IAccountingEntry[],
66
- payload: PayloadCerfa3310_2023,
66
+ payload: PayloadCerfa3310_2024,
67
67
  updatedEntries: UpdatedAnnotation,
68
- ) => getCerfa3310Century23Payload(accountingEntries, payload, updatedEntries),
69
- asponePayload: (data: Cerfa3310_2023) => getCerfa3310Century23RegistrationFields(data),
70
- fields: cerfa3310Century23Fields,
71
- fileName: '3310-2023',
68
+ ) => getCerfa3310Century24Payload(accountingEntries, payload, updatedEntries),
69
+ asponePayload: (data: Cerfa3310_2024) => getCerfa3310Century24RegistrationFields(data),
70
+ fields: cerfa3310Century24Fields,
71
+ fileName: '3310-2024',
72
72
  annex: {
73
73
  name: '3519',
74
- century: '23',
75
- shouldInclude: (data: Cerfa3310_2023) => Boolean(data.credit?.refundAsked && data.credit.refundAsked > 0),
74
+ century: dayjs().month() === 0 ? dayjs().subtract(1, 'month').format('YY') : dayjs().format('YY'),
75
+ shouldInclude: (data: Cerfa3310_2024) => Boolean(data.credit?.refundAsked && data.credit.refundAsked > 0),
76
76
  payload: (amount: number, payload: PayloadCerfa3519_2017) => getCerfa3519Century17Payload(amount, payload),
77
77
  asponePayload: (data: Cerfa3519_2017) => getCerfa3519Century23RegistrationFields(data),
78
78
  fields: cerfa3519Century17Fields,
@@ -82,20 +82,20 @@ const vatDocuments: VatDocument[] = [
82
82
  {
83
83
  idCerfaType: CerfaType.CERFA_3310,
84
84
  name: '3310',
85
- century: '24',
86
- centuries: [2024],
85
+ century: '25',
86
+ centuries: [2025],
87
87
  payload: (
88
88
  accountingEntries: IAccountingEntry[],
89
- payload: PayloadCerfa3310_2024,
89
+ payload: PayloadCerfa3310_2025,
90
90
  updatedEntries: UpdatedAnnotation,
91
- ) => getCerfa3310Century24Payload(accountingEntries, payload, updatedEntries),
92
- asponePayload: (data: Cerfa3310_2024) => getCerfa3310Century24RegistrationFields(data),
93
- fields: cerfa3310Century24Fields,
94
- fileName: '3310-2024',
91
+ ) => getCerfa3310Century25Payload(accountingEntries, payload, updatedEntries),
92
+ asponePayload: (data: Cerfa3310_2025) => getCerfa3310Century25RegistrationFields(data),
93
+ fields: cerfa3310Century25Fields,
94
+ fileName: '3310-2025',
95
95
  annex: {
96
96
  name: '3519',
97
97
  century: dayjs().month() === 0 ? dayjs().subtract(1, 'month').format('YY') : dayjs().format('YY'),
98
- shouldInclude: (data: Cerfa3310_2023) => Boolean(data.credit?.refundAsked && data.credit.refundAsked > 0),
98
+ shouldInclude: (data: Cerfa3310_2025) => Boolean(data.credit?.refundAsked && data.credit.refundAsked > 0),
99
99
  payload: (amount: number, payload: PayloadCerfa3519_2017) => getCerfa3519Century17Payload(amount, payload),
100
100
  asponePayload: (data: Cerfa3519_2017) => getCerfa3519Century23RegistrationFields(data),
101
101
  fields: cerfa3519Century17Fields,
@@ -105,20 +105,20 @@ const vatDocuments: VatDocument[] = [
105
105
  {
106
106
  idCerfaType: CerfaType.CERFA_3310,
107
107
  name: '3310',
108
- century: '25',
109
- centuries: [2025, 2026],
108
+ century: '26',
109
+ centuries: [2026],
110
110
  payload: (
111
111
  accountingEntries: IAccountingEntry[],
112
- payload: PayloadCerfa3310_2025,
112
+ payload: PayloadCerfa3310_2026,
113
113
  updatedEntries: UpdatedAnnotation,
114
- ) => getCerfa3310Century25Payload(accountingEntries, payload, updatedEntries),
115
- asponePayload: (data: Cerfa3310_2025) => getCerfa3310Century25RegistrationFields(data),
116
- fields: cerfa3310Century25Fields,
117
- fileName: '3310-2025',
114
+ ) => getCerfa3310Century26Payload(accountingEntries, payload, updatedEntries),
115
+ asponePayload: (data: Cerfa3310_2026) => getCerfa3310Century26RegistrationFields(data),
116
+ fields: cerfa3310Century26Fields,
117
+ fileName: '3310-2026',
118
118
  annex: {
119
119
  name: '3519',
120
120
  century: dayjs().month() === 0 ? dayjs().subtract(1, 'month').format('YY') : dayjs().format('YY'),
121
- shouldInclude: (data: Cerfa3310_2023) => Boolean(data.credit?.refundAsked && data.credit.refundAsked > 0),
121
+ shouldInclude: (data: Cerfa3310_2026) => Boolean(data.credit?.refundAsked && data.credit.refundAsked > 0),
122
122
  payload: (amount: number, payload: PayloadCerfa3519_2017) => getCerfa3519Century17Payload(amount, payload),
123
123
  asponePayload: (data: Cerfa3519_2017) => getCerfa3519Century23RegistrationFields(data),
124
124
  fields: cerfa3519Century17Fields,
@@ -1,8 +0,0 @@
1
- import { IAccountingEntry } from '../../../types/Interface/models/IAccountingEntry';
2
- import { Cerfa3310_2023, PayloadCerfa3310_2023 } from '../../../types/Interface/api/cerfa/3310';
3
- import { AsponeFormFields, CerfaPayloadForm } from '../../../types/Interface/api/cerfa/ReadCerfa';
4
- import { UpdatedAnnotation } from '../../../types/Interface/api/registration/ReadRegistration';
5
- export declare function getCerfa3310Century23Payload(accountingEntries: IAccountingEntry[], payload: PayloadCerfa3310_2023, updatedEntries?: UpdatedAnnotation): Cerfa3310_2023;
6
- export declare function getCerfa3310Century23RegistrationFields(data: Cerfa3310_2023): AsponeFormFields;
7
- export declare const cerfa3310Century23Fields: CerfaPayloadForm[];
8
- //# sourceMappingURL=century23.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"century23.d.ts","sourceRoot":"","sources":["../../../../../ts/utils/vat/3310/century23.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kDAAkD,CAAC;AACpF,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAGhG,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAClG,OAAO,EAAE,iBAAiB,EAAE,MAAM,4DAA4D,CAAC;AAG/F,wBAAgB,4BAA4B,CAC1C,iBAAiB,EAAE,gBAAgB,EAAE,EACrC,OAAO,EAAE,qBAAqB,EAC9B,cAAc,GAAE,iBAAsB,GACrC,cAAc,CAszBhB;AAED,wBAAgB,uCAAuC,CAAC,IAAI,EAAE,cAAc,GAAG,gBAAgB,CAk6B9F;AAED,eAAO,MAAM,wBAAwB,EAAE,gBAAgB,EAiMtD,CAAC"}