@silexpert/core 1.1.38 → 1.1.40
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.js +1 -1
- package/es/utils/vat/3310/century23.js.map +1 -1
- package/es/utils/vat/3517/century23.js +1 -1
- package/es/utils/vat/3517/century23.js.map +1 -1
- package/js/utils/vat/3310/century23.js +1 -1
- package/js/utils/vat/3310/century23.js.map +1 -1
- package/js/utils/vat/3517/century23.js +1 -1
- package/js/utils/vat/3517/century23.js.map +1 -1
- package/package.json +1 -1
- package/ts/utils/vat/3310/century23.ts +1 -1
- package/ts/utils/vat/3517/century23.ts +1 -1
|
@@ -96,7 +96,7 @@ function getCerfa3310Century23Payload(accountingEntries, payload, updatedEntries
|
|
|
96
96
|
const coefficient = (0, _lodash.round)((_g = (_f = (_e = payload.vat) === null || _e === void 0 ? void 0 : _e.deductible) === null || _f === void 0 ? void 0 : _f.coefficient) !== null && _g !== void 0 ? _g : 100, 2);
|
|
97
97
|
const isNil = payload.isNil === true;
|
|
98
98
|
const isHolidayDeposit = payload.isHolidayDeposit === true;
|
|
99
|
-
const sumToAdd = isNil ? 0 : isHolidayDeposit ? (0, _lodash.round)(((_k = (_j = (_h = payload.previousVatDeclaration) === null || _h === void 0 ? void 0 : _h.toPay) === null || _j === void 0 ? void 0 : _j.total) !== null && _k !== void 0 ? _k : 0) * 0.8
|
|
99
|
+
const sumToAdd = (0, _utils.setZeroIfIsNegative)(isNil ? 0 : isHolidayDeposit ? (0, _lodash.round)(((_k = (_j = (_h = payload.previousVatDeclaration) === null || _h === void 0 ? void 0 : _h.toPay) === null || _j === void 0 ? void 0 : _j.total) !== null && _k !== void 0 ? _k : 0) * 0.8) : (0, _lodash.round)((_m = (_l = payload.vat) === null || _l === void 0 ? void 0 : _l.sumToAdd) !== null && _m !== void 0 ? _m : 0) + mxToAdd);
|
|
100
100
|
const comment = isHolidayDeposit ? `ACOMPTE CONGES ${(_o = payload.comment) !== null && _o !== void 0 ? _o : ''}` : (_p = payload.comment) !== null && _p !== void 0 ? _p : null;
|
|
101
101
|
const initialPayload = {
|
|
102
102
|
isNil,
|