@silexpert/core 1.1.13 → 1.1.14
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/utils/vat/3310/century23.d.ts.map +1 -1
- package/es/utils/vat/3310/century23.js +10 -5
- package/es/utils/vat/3310/century23.js.map +1 -1
- package/js/utils/vat/3310/century23.js +5 -5
- package/js/utils/vat/3310/century23.js.map +1 -1
- package/package.json +1 -1
- package/ts/utils/vat/3310/century23.ts +16 -5
|
@@ -38,16 +38,26 @@ export function getCerfa3310Century23Payload(accountingEntries: IAccountingEntry
|
|
|
38
38
|
const untaxedIntracomunity = getAmountByAccountNumber(vatEntries.filter((ae) => intracomVat.includes(ae.idVat) && withoutTaxVat.includes(ae.idVat)), ['601', '602', '603', '605', '606', '607']);
|
|
39
39
|
const untaxedIntracommunityDelivery = getAmountByAccountNumber(vatEntries.filter((ae) => withoutTaxVat.includes(ae.idVat) && intracomVat.includes(ae.idVat)), ['701', '707']);
|
|
40
40
|
// TVA brute
|
|
41
|
-
const normalRate = getAmountByAccountNumber(taxedServicesEntries.filter((e) => vats.filter((v) => v.value === 20).map((v) => v.id).includes(e.idVat)), servicesAccounts)
|
|
41
|
+
const normalRate = getAmountByAccountNumber(taxedServicesEntries.filter((e) => vats.filter((v) => v.value === 20).map((v) => v.id).includes(e.idVat)), servicesAccounts)
|
|
42
|
+
+ getAmountByAccountNumber(intracommunityServiceEntries.filter((e) => vats.filter((v) => v.value === 20).map((v) => v.id).includes(e.idVat)), intracommunityServiceAccounts);
|
|
42
43
|
const normalRateTax = _round(normalRate * 0.2);
|
|
43
|
-
|
|
44
|
+
|
|
45
|
+
const reducedRate5Dot5 = getAmountByAccountNumber(taxedServicesEntries.filter((e) => vats.filter((v) => v.value === 5.5).map((v) => v.id).includes(e.idVat)), servicesAccounts)
|
|
46
|
+
+ getAmountByAccountNumber(intracommunityServiceEntries.filter((e) => vats.filter((v) => v.value === 5.5).map((v) => v.id).includes(e.idVat)), intracommunityServiceAccounts);
|
|
44
47
|
const reducedRate5Dot5Tax = _round(reducedRate5Dot5 * 0.055);
|
|
45
|
-
|
|
48
|
+
|
|
49
|
+
const reducedRate10 = getAmountByAccountNumber(taxedServicesEntries.filter((e) => vats.filter((v) => v.value === 10).map((v) => v.id).includes(e.idVat)), servicesAccounts)
|
|
50
|
+
+ getAmountByAccountNumber(intracommunityServiceEntries.filter((e) => vats.filter((v) => v.value === 10).map((v) => v.id).includes(e.idVat)), intracommunityServiceAccounts);
|
|
46
51
|
const reducedRate10Tax = _round(reducedRate10 * 0.1);
|
|
47
|
-
|
|
52
|
+
|
|
53
|
+
const reducedRate8Dot5 = getAmountByAccountNumber(taxedServicesEntries.filter((e) => vats.filter((v) => v.value === 8.5).map((v) => v.id).includes(e.idVat)), servicesAccounts)
|
|
54
|
+
+ getAmountByAccountNumber(intracommunityServiceEntries.filter((e) => vats.filter((v) => v.value === 8.5).map((v) => v.id).includes(e.idVat)), intracommunityServiceAccounts);
|
|
48
55
|
const reducedRate8Dot5Tax = _round(reducedRate8Dot5 * 0.085);
|
|
49
|
-
|
|
56
|
+
|
|
57
|
+
const reducedRate2Dot1 = getAmountByAccountNumber(taxedServicesEntries.filter((e) => vats.filter((v) => v.value === 2.1).map((v) => v.id).includes(e.idVat)), servicesAccounts)
|
|
58
|
+
+ getAmountByAccountNumber(intracommunityServiceEntries.filter((e) => vats.filter((v) => v.value === 2.1).map((v) => v.id).includes(e.idVat)), intracommunityServiceAccounts);
|
|
50
59
|
const reducedRate2Dot1Tax = _round(reducedRate2Dot1 * 0.021);
|
|
60
|
+
|
|
51
61
|
const importNormalRate = getAmountByAccountNumber(taxedImportEntries.filter((e) => vats.filter((v) => v.value === 20).map((v) => v.id).includes(e.idVat)), taxedImportAccounts);
|
|
52
62
|
const importNormalRateTax = _round(importNormalRate * 0.2);
|
|
53
63
|
const importReducedRate10 = getAmountByAccountNumber(taxedImportEntries.filter((e) => vats.filter((v) => v.value === 10).map((v) => v.id).includes(e.idVat)), taxedImportAccounts);
|
|
@@ -61,6 +71,7 @@ export function getCerfa3310Century23Payload(accountingEntries: IAccountingEntry
|
|
|
61
71
|
const importReducedRate1Dot05 = getAmountByAccountNumber(taxedImportEntries.filter((e) => vats.filter((v) => v.value === 1.05).map((v) => v.id).includes(e.idVat)), taxedImportAccounts);
|
|
62
72
|
const importReducedRate1Dot05Tax = _round(importReducedRate1Dot05 * 0.0105);
|
|
63
73
|
const intracommunityTax = getTaxAmountByAccountNumber(intracommunityServiceEntries, intracommunityServiceAccounts);
|
|
74
|
+
|
|
64
75
|
// TVA Déductible
|
|
65
76
|
const immobilizationTax = getTaxAmountByAccountNumber(vatEntries, ['2']);
|
|
66
77
|
const otherGoodsAndServices = getTaxAmountByAccountNumber(vatEntries.filter((e) => vats.filter((v) => !v.isVatImportation).map((v) => v.id).includes(e.idVat)), ['6']);
|