@silexpert/core 1.1.362 → 1.1.363

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.
@@ -30,7 +30,7 @@ function getCerfa3517Century23Payload(accountingEntries, payload) {
30
30
  const prestation2Entries = vatEntries.filter((ae) => intracomVat.includes(ae.idVat));
31
31
  const presta2Accounts = ['604', '61', '62', '607', '651', '601', '602']; // Ajout suite à la demande de Ben x Angelo
32
32
  const prestation2Base = (0, utils_1.setZeroIfIsNegative)((0, utils_1.getAmountByAccountNumber)(prestation2Entries, presta2Accounts, 0, true));
33
- const prestation2AmountOfVat = (0, utils_1.setZeroIfIsNegative)((0, utils_1.getTaxAmountByAccountNumber)(prestation2Entries, presta2Accounts));
33
+ const prestation2AmountOfVat = (0, utils_1.setZeroIfIsNegative)((0, utils_1.getTaxAmountByAccountNumber)(prestation2Entries, presta2Accounts, 0, false, true));
34
34
  const saleOfImmobilization = (0, utils_1.setZeroIfIsNegative)((0, utils_1.getAmountByAccountNumber)(vatEntries.filter((ae) => !withoutTaxVat.includes(ae.idVat) && frenchVat.includes(ae.idVat)), ['775'], 0, true));
35
35
  const onInvoiceDeductible = (0, utils_1.setZeroIfIsNegative)((0, utils_1.getTaxAmountByAccountNumber)(vatEntries.filter((ae) => !importationVat.includes(ae.idVat)), ['6']));
36
36
  const onImmobilizationDeductible = (0, utils_1.setZeroIfIsNegative)((0, utils_1.getTaxAmountByAccountNumber)(vatEntries, ['2']));