@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.
- package/es/types/Enum/Country.d.ts +4 -2
- package/es/types/Enum/Country.d.ts.map +1 -1
- package/es/types/Enum/Country.js +9 -5
- package/es/types/Enum/Country.js.map +1 -1
- package/es/types/Interface/api/paymentExpectationCustomer/QueryPaymentExpectationCustomer.d.ts.map +1 -1
- package/es/types/Interface/api/paymentExpectationCustomer/QueryPaymentExpectationCustomer.js +14 -0
- package/es/types/Interface/api/paymentExpectationCustomer/QueryPaymentExpectationCustomer.js.map +1 -1
- package/es/types/Interface/api/stripe/QueryStripe.d.ts +2 -2
- package/es/types/Interface/api/stripe/QueryStripe.d.ts.map +1 -1
- package/es/types/Interface/api/stripe/QueryStripe.js +20 -1
- package/es/types/Interface/api/stripe/QueryStripe.js.map +1 -1
- package/es/utils/brands.js +1 -1
- package/es/utils/brands.js.map +1 -1
- package/es/utils/vat/3310/century23.d.ts.map +1 -1
- package/es/utils/vat/3310/century23.js +23 -2
- package/es/utils/vat/3310/century23.js.map +1 -1
- package/es/utils/vat/3517/century23.js +22 -22
- package/es/utils/vat/3517/century23.js.map +1 -1
- package/js/types/Enum/Country.js +14 -5
- package/js/types/Enum/Country.js.map +1 -1
- package/js/types/Interface/api/paymentExpectationCustomer/QueryPaymentExpectationCustomer.js +13 -0
- package/js/types/Interface/api/paymentExpectationCustomer/QueryPaymentExpectationCustomer.js.map +1 -1
- package/js/types/Interface/api/stripe/QueryStripe.js +16 -0
- package/js/types/Interface/api/stripe/QueryStripe.js.map +1 -1
- package/js/utils/brands.js +2 -1
- package/js/utils/brands.js.map +1 -1
- package/js/utils/vat/3310/century23.js +33 -1
- package/js/utils/vat/3310/century23.js.map +1 -1
- package/js/utils/vat/3517/century23.js +22 -22
- package/js/utils/vat/3517/century23.js.map +1 -1
- package/package.json +1 -1
- package/ts/types/Enum/Country.ts +9 -5
- package/ts/types/Interface/api/paymentExpectationCustomer/QueryPaymentExpectationCustomer.ts +2 -1
- package/ts/types/Interface/api/stripe/QueryStripe.ts +7 -2
- package/ts/utils/brands.ts +1 -1
- package/ts/utils/vat/3310/century23.ts +29 -2
- package/ts/utils/vat/3517/century23.ts +22 -22
|
@@ -74,7 +74,7 @@ export function getCerfa3517Century23Payload(accountingEntries, payload) {
|
|
|
74
74
|
},
|
|
75
75
|
siret: {
|
|
76
76
|
first: 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,
|
|
77
|
-
second: isDefined(payload.society.siret) ? ((_1 = (_0 = payload.society.siret) === null || _0 === void 0 ? void 0 : _0.slice(
|
|
77
|
+
second: 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,
|
|
78
78
|
},
|
|
79
79
|
},
|
|
80
80
|
payment: {
|
|
@@ -581,14 +581,14 @@ export function getCerfa3517CenturyRegistrationField(data) {
|
|
|
581
581
|
isMultiple: false,
|
|
582
582
|
tag: 'Valeur',
|
|
583
583
|
description: 'Remboursement de reliquat de TIC demandé 912242 Y5',
|
|
584
|
-
value: data.recapitulation.ticRefunded,
|
|
584
|
+
value: data.recapitulation.ticRefunded > 0 ? data.recapitulation.ticRefunded : null,
|
|
585
585
|
},
|
|
586
586
|
{
|
|
587
587
|
key: 'BJ',
|
|
588
588
|
isMultiple: false,
|
|
589
589
|
tag: 'Valeur',
|
|
590
590
|
description: 'Total des taxes intérieures de consommation dues 912247 Z5',
|
|
591
|
-
value: data.recapitulation.consumsion,
|
|
591
|
+
value: data.recapitulation.consumsion > 0 ? data.recapitulation.consumsion : null,
|
|
592
592
|
},
|
|
593
593
|
{
|
|
594
594
|
key: 'CA',
|
|
@@ -634,14 +634,14 @@ export function getCerfa3517CenturyRegistrationField(data) {
|
|
|
634
634
|
isMultiple: false,
|
|
635
635
|
tag: 'Valeur',
|
|
636
636
|
description: 'TICFE - Taxe due 912244 ',
|
|
637
|
-
value: data.tic.ticfe.tax,
|
|
637
|
+
value: data.tic.ticfe.tax && data.tic.ticfe.tax > 0 ? data.tic.ticfe.tax : null,
|
|
638
638
|
},
|
|
639
639
|
{
|
|
640
640
|
key: 'CJ',
|
|
641
641
|
isMultiple: false,
|
|
642
642
|
tag: 'Valeur',
|
|
643
643
|
description: 'Total de la contribution sur la rente infra-marginale de la production d\'électricité (lignes a à q) 912268 44A',
|
|
644
|
-
value: data.tax.contribution,
|
|
644
|
+
value: data.tax.contribution && data.tax.contribution > 0 ? data.tax.contribution : null,
|
|
645
645
|
},
|
|
646
646
|
{
|
|
647
647
|
key: 'DA',
|
|
@@ -956,14 +956,14 @@ export function getCerfa3517CenturyRegistrationField(data) {
|
|
|
956
956
|
isMultiple: false,
|
|
957
957
|
tag: 'Valeur',
|
|
958
958
|
description: 'TICCE - crédit imputé sur la TVA 912237 ',
|
|
959
|
-
value: data.tic.ticc.imputed,
|
|
959
|
+
value: data.tic.ticc.imputed && data.tic.ticc.imputed > 0 ? data.tic.ticc.imputed : null,
|
|
960
960
|
},
|
|
961
961
|
{
|
|
962
962
|
key: 'HH',
|
|
963
963
|
isMultiple: false,
|
|
964
964
|
tag: 'Valeur',
|
|
965
965
|
description: 'TICGN - Taxe due 912245 ',
|
|
966
|
-
value: data.tic.ticgn.tax,
|
|
966
|
+
value: data.tic.ticgn.tax && data.tic.ticgn.tax > 0 ? data.tic.ticgn.tax : null,
|
|
967
967
|
},
|
|
968
968
|
{
|
|
969
969
|
key: 'JA',
|
|
@@ -991,14 +991,14 @@ export function getCerfa3517CenturyRegistrationField(data) {
|
|
|
991
991
|
isMultiple: false,
|
|
992
992
|
tag: 'Valeur',
|
|
993
993
|
description: 'TOTAL - crédit imputé sur la TVA 912252 ',
|
|
994
|
-
value: data.tic.total.imputed,
|
|
994
|
+
value: data.tic.total.imputed && data.tic.total.imputed > 0 ? data.tic.total.imputed : null,
|
|
995
995
|
},
|
|
996
996
|
{
|
|
997
997
|
key: 'JH',
|
|
998
998
|
isMultiple: false,
|
|
999
999
|
tag: 'Valeur',
|
|
1000
1000
|
description: 'TICCE - Taxe due 912246 ',
|
|
1001
|
-
value: data.tic.ticc.tax,
|
|
1001
|
+
value: data.tic.ticc.tax && data.tic.ticc.tax > 0 ? data.tic.ticc.tax : null,
|
|
1002
1002
|
},
|
|
1003
1003
|
{
|
|
1004
1004
|
key: 'KA',
|
|
@@ -1054,14 +1054,14 @@ export function getCerfa3517CenturyRegistrationField(data) {
|
|
|
1054
1054
|
isMultiple: false,
|
|
1055
1055
|
tag: 'Valeur',
|
|
1056
1056
|
description: 'Crédit de TIC imputé sur la TVA (Total) 912238 X5',
|
|
1057
|
-
value: data.recapitulation.imputeOnVat,
|
|
1057
|
+
value: data.recapitulation.imputeOnVat && data.recapitulation.imputeOnVat > 0 ? data.recapitulation.imputeOnVat : null,
|
|
1058
1058
|
},
|
|
1059
1059
|
{
|
|
1060
1060
|
key: 'LH',
|
|
1061
1061
|
isMultiple: false,
|
|
1062
1062
|
tag: 'Valeur',
|
|
1063
1063
|
description: 'TOTAL - taxe due 912254 ',
|
|
1064
|
-
value: data.tic.total.tax,
|
|
1064
|
+
value: data.tic.total.tax && data.tic.total.tax > 0 ? data.tic.total.tax : null,
|
|
1065
1065
|
},
|
|
1066
1066
|
{
|
|
1067
1067
|
key: 'MA',
|
|
@@ -1138,21 +1138,21 @@ export function getCerfa3517CenturyRegistrationField(data) {
|
|
|
1138
1138
|
isMultiple: false,
|
|
1139
1139
|
tag: 'Valeur',
|
|
1140
1140
|
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',
|
|
1141
|
-
value: data.tax.ofEmployer,
|
|
1141
|
+
value: data.tax.ofEmployer && data.tax.ofEmployer > 0 ? data.tax.ofEmployer : null,
|
|
1142
1142
|
},
|
|
1143
1143
|
{
|
|
1144
1144
|
key: 'NT',
|
|
1145
1145
|
isMultiple: false,
|
|
1146
1146
|
tag: 'Valeur',
|
|
1147
1147
|
description: 'TICFE - Reliquat de crédit à rembourser 912239 ',
|
|
1148
|
-
value: data.tic.ticfe.refund,
|
|
1148
|
+
value: data.tic.ticfe.refund && data.tic.ticfe.refund > 0 ? data.tic.ticfe.refund : null,
|
|
1149
1149
|
},
|
|
1150
1150
|
{
|
|
1151
1151
|
key: 'NU',
|
|
1152
1152
|
isMultiple: false,
|
|
1153
1153
|
tag: 'Valeur',
|
|
1154
1154
|
description: 'TICFE - crédit constaté 912248 ',
|
|
1155
|
-
value: data.tic.ticfe.credit,
|
|
1155
|
+
value: data.tic.ticfe.credit && data.tic.ticfe.credit > 0 ? data.tic.ticfe.credit : null,
|
|
1156
1156
|
},
|
|
1157
1157
|
{
|
|
1158
1158
|
key: 'QA',
|
|
@@ -1313,28 +1313,28 @@ export function getCerfa3517CenturyRegistrationField(data) {
|
|
|
1313
1313
|
isMultiple: false,
|
|
1314
1314
|
tag: 'Valeur',
|
|
1315
1315
|
description: 'TICFE - crédit imputé sur la TVA 912235 ',
|
|
1316
|
-
value: data.tic.ticfe.imputed,
|
|
1316
|
+
value: data.tic.ticfe.imputed && data.tic.ticfe.imputed > 0 ? data.tic.ticfe.imputed : null,
|
|
1317
1317
|
},
|
|
1318
1318
|
{
|
|
1319
1319
|
key: 'TF',
|
|
1320
1320
|
isMultiple: false,
|
|
1321
1321
|
tag: 'Valeur',
|
|
1322
1322
|
description: 'TICGN - crédit imputé sur la TVA 912236 ',
|
|
1323
|
-
value: data.tic.ticgn.imputed,
|
|
1323
|
+
value: data.tic.ticgn.imputed && data.tic.ticgn.imputed > 0 ? data.tic.ticgn.imputed : null,
|
|
1324
1324
|
},
|
|
1325
1325
|
{
|
|
1326
1326
|
key: 'TG',
|
|
1327
1327
|
isMultiple: false,
|
|
1328
1328
|
tag: 'Valeur',
|
|
1329
1329
|
description: 'TICGN - Reliquat de crédit à rembourser 912240 ',
|
|
1330
|
-
value: data.tic.ticgn.refund,
|
|
1330
|
+
value: data.tic.ticgn.refund && data.tic.ticgn.refund > 0 ? data.tic.ticgn.refund : null,
|
|
1331
1331
|
},
|
|
1332
1332
|
{
|
|
1333
1333
|
key: 'TH',
|
|
1334
1334
|
isMultiple: false,
|
|
1335
1335
|
tag: 'Valeur',
|
|
1336
1336
|
description: 'TICGN - crédit constaté 912249 ',
|
|
1337
|
-
value: data.tic.ticgn.credit,
|
|
1337
|
+
value: data.tic.ticgn.credit && data.tic.ticgn.credit > 0 ? data.tic.ticgn.credit : null,
|
|
1338
1338
|
},
|
|
1339
1339
|
{
|
|
1340
1340
|
key: 'UB',
|
|
@@ -1362,14 +1362,14 @@ export function getCerfa3517CenturyRegistrationField(data) {
|
|
|
1362
1362
|
isMultiple: false,
|
|
1363
1363
|
tag: 'Valeur',
|
|
1364
1364
|
description: 'TICCE - Reliquat de crédit à rembourser 912241 ',
|
|
1365
|
-
value: data.tic.ticc.refund,
|
|
1365
|
+
value: data.tic.ticc.refund && data.tic.ticc.refund > 0 ? data.tic.ticc.refund : null,
|
|
1366
1366
|
},
|
|
1367
1367
|
{
|
|
1368
1368
|
key: 'UH',
|
|
1369
1369
|
isMultiple: false,
|
|
1370
1370
|
tag: 'Valeur',
|
|
1371
1371
|
description: 'TICCE - crédit constaté 912250 ',
|
|
1372
|
-
value: data.tic.ticc.credit,
|
|
1372
|
+
value: data.tic.ticc.credit && data.tic.ticc.credit > 0 ? data.tic.ticc.credit : null,
|
|
1373
1373
|
},
|
|
1374
1374
|
{
|
|
1375
1375
|
key: 'VA',
|
|
@@ -1593,14 +1593,14 @@ export function getCerfa3517CenturyRegistrationField(data) {
|
|
|
1593
1593
|
isMultiple: false,
|
|
1594
1594
|
tag: 'Valeur',
|
|
1595
1595
|
description: 'TOTAL - reliquat de crédit à rembourser 912253 ',
|
|
1596
|
-
value: data.tic.total.refund,
|
|
1596
|
+
value: data.tic.total.refund && data.tic.total.refund > 0 ? data.tic.total.refund : null,
|
|
1597
1597
|
},
|
|
1598
1598
|
{
|
|
1599
1599
|
key: 'XH',
|
|
1600
1600
|
isMultiple: false,
|
|
1601
1601
|
tag: 'Valeur',
|
|
1602
1602
|
description: 'TOTAL - crédit constaté 912251 ',
|
|
1603
|
-
value: data.tic.total.credit,
|
|
1603
|
+
value: data.tic.total.credit && data.tic.total.credit > 0 ? data.tic.total.credit : null,
|
|
1604
1604
|
},
|
|
1605
1605
|
{
|
|
1606
1606
|
key: 'ZB',
|