@silexpert/core 1.1.28 → 1.1.30

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.
@@ -36,7 +36,7 @@ function getCerfa3517Century23Payload(accountingEntries, payload) {
36
36
  const prestation2AmountOfVat = (0, _utils.getTaxAmountByAccountNumber)(prestation2Entries, presta2Accounts);
37
37
  const saleOfImmobilization = (0, _utils.getAmountByAccountNumber)(vatEntries.filter(ae => !withoutTaxVat.includes(ae.idVat) && frenchVat.includes(ae.idVat)), ['775'], 0, true);
38
38
  const onInvoiceDeductible = (0, _utils.getAmountByAccountNumber)(vatEntries, ['445660'], 0, true);
39
- const onImmobilizationDeductible = (0, _utils.getAmountByAccountNumber)(vatEntries, ['445662'], 0, true);
39
+ const onImmobilizationDeductible = (0, _utils.getAmountByAccountNumber)(vatEntries, ['44562'], 0, true);
40
40
  const julyAdvance = (_e = (_d = payload === null || payload === void 0 ? void 0 : payload.exerciceAdvanceRegistrations) === null || _d === void 0 ? void 0 : _d.find(a => dayjs(a.endDate).month() === 6)) !== null && _e !== void 0 ? _e : null;
41
41
  const julyAdvancePayload = (_g = (_f = julyAdvance === null || julyAdvance === void 0 ? void 0 : julyAdvance.payload) === null || _f === void 0 ? void 0 : _f.cerfa3514) !== null && _g !== void 0 ? _g : null;
42
42
  const decemberAdvance = (_j = (_h = payload === null || payload === void 0 ? void 0 : payload.exerciceAdvanceRegistrations) === null || _h === void 0 ? void 0 : _h.find(a => dayjs(a.endDate).month() === 11)) !== null && _j !== void 0 ? _j : null;
@@ -188,11 +188,11 @@ function getCerfa3517Century23Payload(accountingEntries, payload) {
188
188
  due: 0,
189
189
  credit: 0,
190
190
  advance1: {
191
- paid: isNil ? 0 : (0, _lodash.round)(((_52 = julyAdvancePayload === null || julyAdvancePayload === void 0 ? void 0 : julyAdvancePayload.amountWanted) !== null && _52 !== void 0 ? _52 : 0) * 0.55),
191
+ paid: isNil ? 0 : (0, _lodash.round)((_52 = julyAdvancePayload === null || julyAdvancePayload === void 0 ? void 0 : julyAdvancePayload.amountWanted) !== null && _52 !== void 0 ? _52 : 0),
192
192
  toPay: isNil ? 0 : (0, _lodash.round)((_54 = (_53 = payload.advance1) === null || _53 === void 0 ? void 0 : _53.toPay) !== null && _54 !== void 0 ? _54 : 0)
193
193
  },
194
194
  advance2: {
195
- paid: isNil ? 0 : (0, _lodash.round)(((_55 = decemberAdvancePayload === null || decemberAdvancePayload === void 0 ? void 0 : decemberAdvancePayload.amountWanted) !== null && _55 !== void 0 ? _55 : 0) * 0.4),
195
+ paid: isNil ? 0 : (0, _lodash.round)((_55 = decemberAdvancePayload === null || decemberAdvancePayload === void 0 ? void 0 : decemberAdvancePayload.amountWanted) !== null && _55 !== void 0 ? _55 : 0),
196
196
  toPay: isNil ? 0 : (0, _lodash.round)((_57 = (_56 = payload.advance2) === null || _56 === void 0 ? void 0 : _56.toPay) !== null && _57 !== void 0 ? _57 : 0)
197
197
  },
198
198
  advance: {