@silexpert/core 1.1.68 → 1.1.70

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 (37) hide show
  1. package/es/types/Enum/Country.d.ts +4 -2
  2. package/es/types/Enum/Country.d.ts.map +1 -1
  3. package/es/types/Enum/Country.js +9 -5
  4. package/es/types/Enum/Country.js.map +1 -1
  5. package/es/types/Interface/api/paymentExpectationCustomer/QueryPaymentExpectationCustomer.d.ts.map +1 -1
  6. package/es/types/Interface/api/paymentExpectationCustomer/QueryPaymentExpectationCustomer.js +14 -0
  7. package/es/types/Interface/api/paymentExpectationCustomer/QueryPaymentExpectationCustomer.js.map +1 -1
  8. package/es/types/Interface/api/stripe/QueryStripe.d.ts +2 -2
  9. package/es/types/Interface/api/stripe/QueryStripe.d.ts.map +1 -1
  10. package/es/types/Interface/api/stripe/QueryStripe.js +20 -1
  11. package/es/types/Interface/api/stripe/QueryStripe.js.map +1 -1
  12. package/es/utils/brands.js +1 -1
  13. package/es/utils/brands.js.map +1 -1
  14. package/es/utils/vat/3310/century23.d.ts.map +1 -1
  15. package/es/utils/vat/3310/century23.js +23 -2
  16. package/es/utils/vat/3310/century23.js.map +1 -1
  17. package/es/utils/vat/3517/century23.js +22 -22
  18. package/es/utils/vat/3517/century23.js.map +1 -1
  19. package/js/types/Enum/Country.js +14 -5
  20. package/js/types/Enum/Country.js.map +1 -1
  21. package/js/types/Interface/api/paymentExpectationCustomer/QueryPaymentExpectationCustomer.js +13 -0
  22. package/js/types/Interface/api/paymentExpectationCustomer/QueryPaymentExpectationCustomer.js.map +1 -1
  23. package/js/types/Interface/api/stripe/QueryStripe.js +16 -0
  24. package/js/types/Interface/api/stripe/QueryStripe.js.map +1 -1
  25. package/js/utils/brands.js +2 -1
  26. package/js/utils/brands.js.map +1 -1
  27. package/js/utils/vat/3310/century23.js +33 -1
  28. package/js/utils/vat/3310/century23.js.map +1 -1
  29. package/js/utils/vat/3517/century23.js +22 -22
  30. package/js/utils/vat/3517/century23.js.map +1 -1
  31. package/package.json +1 -1
  32. package/ts/types/Enum/Country.ts +9 -5
  33. package/ts/types/Interface/api/paymentExpectationCustomer/QueryPaymentExpectationCustomer.ts +2 -1
  34. package/ts/types/Interface/api/stripe/QueryStripe.ts +7 -2
  35. package/ts/utils/brands.ts +1 -1
  36. package/ts/utils/vat/3310/century23.ts +29 -2
  37. package/ts/utils/vat/3517/century23.ts +22 -22
@@ -85,7 +85,7 @@ function getCerfa3517Century23Payload(accountingEntries, payload) {
85
85
  },
86
86
  siret: {
87
87
  first: (0, _classValidator.isDefined)(payload.society.siret) ? (_z = (_y = payload.society.siret) === null || _y === void 0 ? void 0 : _y.slice(0, 9)) !== null && _z !== void 0 ? _z : null : null,
88
- second: (0, _classValidator.isDefined)(payload.society.siret) ? (_1 = (_0 = payload.society.siret) === null || _0 === void 0 ? void 0 : _0.slice(5)) !== null && _1 !== void 0 ? _1 : null : null
88
+ second: (0, _classValidator.isDefined)(payload.society.siret) ? (_1 = (_0 = payload.society.siret) === null || _0 === void 0 ? void 0 : _0.slice(-4)) !== null && _1 !== void 0 ? _1 : null : null
89
89
  }
90
90
  },
91
91
  payment: {
@@ -584,13 +584,13 @@ function getCerfa3517CenturyRegistrationField(data) {
584
584
  isMultiple: false,
585
585
  tag: 'Valeur',
586
586
  description: 'Remboursement de reliquat de TIC demandé 912242 Y5',
587
- value: data.recapitulation.ticRefunded
587
+ value: data.recapitulation.ticRefunded > 0 ? data.recapitulation.ticRefunded : null
588
588
  }, {
589
589
  key: 'BJ',
590
590
  isMultiple: false,
591
591
  tag: 'Valeur',
592
592
  description: 'Total des taxes intérieures de consommation dues 912247 Z5',
593
- value: data.recapitulation.consumsion
593
+ value: data.recapitulation.consumsion > 0 ? data.recapitulation.consumsion : null
594
594
  }, {
595
595
  key: 'CA',
596
596
  isMultiple: false,
@@ -627,13 +627,13 @@ function getCerfa3517CenturyRegistrationField(data) {
627
627
  isMultiple: false,
628
628
  tag: 'Valeur',
629
629
  description: 'TICFE - Taxe due 912244 ',
630
- value: data.tic.ticfe.tax
630
+ value: data.tic.ticfe.tax && data.tic.ticfe.tax > 0 ? data.tic.ticfe.tax : null
631
631
  }, {
632
632
  key: 'CJ',
633
633
  isMultiple: false,
634
634
  tag: 'Valeur',
635
635
  description: 'Total de la contribution sur la rente infra-marginale de la production d\'électricité (lignes a à q) 912268 44A',
636
- value: data.tax.contribution
636
+ value: data.tax.contribution && data.tax.contribution > 0 ? data.tax.contribution : null
637
637
  }, {
638
638
  key: 'DA',
639
639
  isMultiple: false,
@@ -903,13 +903,13 @@ function getCerfa3517CenturyRegistrationField(data) {
903
903
  isMultiple: false,
904
904
  tag: 'Valeur',
905
905
  description: 'TICCE - crédit imputé sur la TVA 912237 ',
906
- value: data.tic.ticc.imputed
906
+ value: data.tic.ticc.imputed && data.tic.ticc.imputed > 0 ? data.tic.ticc.imputed : null
907
907
  }, {
908
908
  key: 'HH',
909
909
  isMultiple: false,
910
910
  tag: 'Valeur',
911
911
  description: 'TICGN - Taxe due 912245 ',
912
- value: data.tic.ticgn.tax
912
+ value: data.tic.ticgn.tax && data.tic.ticgn.tax > 0 ? data.tic.ticgn.tax : null
913
913
  }, {
914
914
  key: 'JA',
915
915
  isMultiple: false,
@@ -933,13 +933,13 @@ function getCerfa3517CenturyRegistrationField(data) {
933
933
  isMultiple: false,
934
934
  tag: 'Valeur',
935
935
  description: 'TOTAL - crédit imputé sur la TVA 912252 ',
936
- value: data.tic.total.imputed
936
+ value: data.tic.total.imputed && data.tic.total.imputed > 0 ? data.tic.total.imputed : null
937
937
  }, {
938
938
  key: 'JH',
939
939
  isMultiple: false,
940
940
  tag: 'Valeur',
941
941
  description: 'TICCE - Taxe due 912246 ',
942
- value: data.tic.ticc.tax
942
+ value: data.tic.ticc.tax && data.tic.ticc.tax > 0 ? data.tic.ticc.tax : null
943
943
  }, {
944
944
  key: 'KA',
945
945
  isMultiple: false,
@@ -987,13 +987,13 @@ function getCerfa3517CenturyRegistrationField(data) {
987
987
  isMultiple: false,
988
988
  tag: 'Valeur',
989
989
  description: 'Crédit de TIC imputé sur la TVA (Total) 912238 X5',
990
- value: data.recapitulation.imputeOnVat
990
+ value: data.recapitulation.imputeOnVat && data.recapitulation.imputeOnVat > 0 ? data.recapitulation.imputeOnVat : null
991
991
  }, {
992
992
  key: 'LH',
993
993
  isMultiple: false,
994
994
  tag: 'Valeur',
995
995
  description: 'TOTAL - taxe due 912254 ',
996
- value: data.tic.total.tax
996
+ value: data.tic.total.tax && data.tic.total.tax > 0 ? data.tic.total.tax : null
997
997
  }, {
998
998
  key: 'MA',
999
999
  isMultiple: false,
@@ -1059,19 +1059,19 @@ function getCerfa3517CenturyRegistrationField(data) {
1059
1059
  isMultiple: false,
1060
1060
  tag: 'Valeur',
1061
1061
  description: 'Taxe due par les employeurs de main-d\'½uvre étrangère (L. 436-10 du CESEDA) (uniquement pour les cessations d\'activité ayant lieu en 2023) 912261 45',
1062
- value: data.tax.ofEmployer
1062
+ value: data.tax.ofEmployer && data.tax.ofEmployer > 0 ? data.tax.ofEmployer : null
1063
1063
  }, {
1064
1064
  key: 'NT',
1065
1065
  isMultiple: false,
1066
1066
  tag: 'Valeur',
1067
1067
  description: 'TICFE - Reliquat de crédit à rembourser 912239 ',
1068
- value: data.tic.ticfe.refund
1068
+ value: data.tic.ticfe.refund && data.tic.ticfe.refund > 0 ? data.tic.ticfe.refund : null
1069
1069
  }, {
1070
1070
  key: 'NU',
1071
1071
  isMultiple: false,
1072
1072
  tag: 'Valeur',
1073
1073
  description: 'TICFE - crédit constaté 912248 ',
1074
- value: data.tic.ticfe.credit
1074
+ value: data.tic.ticfe.credit && data.tic.ticfe.credit > 0 ? data.tic.ticfe.credit : null
1075
1075
  }, {
1076
1076
  key: 'QA',
1077
1077
  isMultiple: false,
@@ -1209,25 +1209,25 @@ function getCerfa3517CenturyRegistrationField(data) {
1209
1209
  isMultiple: false,
1210
1210
  tag: 'Valeur',
1211
1211
  description: 'TICFE - crédit imputé sur la TVA 912235 ',
1212
- value: data.tic.ticfe.imputed
1212
+ value: data.tic.ticfe.imputed && data.tic.ticfe.imputed > 0 ? data.tic.ticfe.imputed : null
1213
1213
  }, {
1214
1214
  key: 'TF',
1215
1215
  isMultiple: false,
1216
1216
  tag: 'Valeur',
1217
1217
  description: 'TICGN - crédit imputé sur la TVA 912236 ',
1218
- value: data.tic.ticgn.imputed
1218
+ value: data.tic.ticgn.imputed && data.tic.ticgn.imputed > 0 ? data.tic.ticgn.imputed : null
1219
1219
  }, {
1220
1220
  key: 'TG',
1221
1221
  isMultiple: false,
1222
1222
  tag: 'Valeur',
1223
1223
  description: 'TICGN - Reliquat de crédit à rembourser 912240 ',
1224
- value: data.tic.ticgn.refund
1224
+ value: data.tic.ticgn.refund && data.tic.ticgn.refund > 0 ? data.tic.ticgn.refund : null
1225
1225
  }, {
1226
1226
  key: 'TH',
1227
1227
  isMultiple: false,
1228
1228
  tag: 'Valeur',
1229
1229
  description: 'TICGN - crédit constaté 912249 ',
1230
- value: data.tic.ticgn.credit
1230
+ value: data.tic.ticgn.credit && data.tic.ticgn.credit > 0 ? data.tic.ticgn.credit : null
1231
1231
  }, {
1232
1232
  key: 'UB',
1233
1233
  isMultiple: false,
@@ -1251,13 +1251,13 @@ function getCerfa3517CenturyRegistrationField(data) {
1251
1251
  isMultiple: false,
1252
1252
  tag: 'Valeur',
1253
1253
  description: 'TICCE - Reliquat de crédit à rembourser 912241 ',
1254
- value: data.tic.ticc.refund
1254
+ value: data.tic.ticc.refund && data.tic.ticc.refund > 0 ? data.tic.ticc.refund : null
1255
1255
  }, {
1256
1256
  key: 'UH',
1257
1257
  isMultiple: false,
1258
1258
  tag: 'Valeur',
1259
1259
  description: 'TICCE - crédit constaté 912250 ',
1260
- value: data.tic.ticc.credit
1260
+ value: data.tic.ticc.credit && data.tic.ticc.credit > 0 ? data.tic.ticc.credit : null
1261
1261
  }, {
1262
1262
  key: 'VA',
1263
1263
  isMultiple: false,
@@ -1449,13 +1449,13 @@ function getCerfa3517CenturyRegistrationField(data) {
1449
1449
  isMultiple: false,
1450
1450
  tag: 'Valeur',
1451
1451
  description: 'TOTAL - reliquat de crédit à rembourser 912253 ',
1452
- value: data.tic.total.refund
1452
+ value: data.tic.total.refund && data.tic.total.refund > 0 ? data.tic.total.refund : null
1453
1453
  }, {
1454
1454
  key: 'XH',
1455
1455
  isMultiple: false,
1456
1456
  tag: 'Valeur',
1457
1457
  description: 'TOTAL - crédit constaté 912251 ',
1458
- value: data.tic.total.credit
1458
+ value: data.tic.total.credit && data.tic.total.credit > 0 ? data.tic.total.credit : null
1459
1459
  }, {
1460
1460
  key: 'ZB',
1461
1461
  isMultiple: false,