@silexpert/core 1.1.56 → 1.1.58
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/api/resources/TerminationList.d.ts +2 -1
- package/es/api/resources/TerminationList.d.ts.map +1 -1
- package/es/api/resources/TerminationList.js +3 -0
- package/es/api/resources/TerminationList.js.map +1 -1
- package/es/types/Enum/AdjustmentType.d.ts +1 -0
- package/es/types/Enum/AdjustmentType.d.ts.map +1 -1
- package/es/types/Enum/AdjustmentType.js +4 -0
- package/es/types/Enum/AdjustmentType.js.map +1 -1
- package/es/types/Interface/api/cerfa/3310.d.ts +1 -0
- package/es/types/Interface/api/cerfa/3310.d.ts.map +1 -1
- package/es/types/Interface/api/cerfa/3310.js.map +1 -1
- package/es/types/Interface/api/terminationList/CreateTerminationList.d.ts +14 -0
- package/es/types/Interface/api/terminationList/CreateTerminationList.d.ts.map +1 -0
- package/es/types/Interface/api/terminationList/CreateTerminationList.js +80 -0
- package/es/types/Interface/api/terminationList/CreateTerminationList.js.map +1 -0
- package/es/types/Interface/models/ITerminationList.d.ts +11 -11
- package/es/types/Interface/models/ITerminationList.d.ts.map +1 -1
- package/es/types/Interface/models/ITerminationList.js.map +1 -1
- package/es/types/index.d.ts +1 -0
- package/es/types/index.d.ts.map +1 -1
- package/es/types/index.js +1 -0
- package/es/types/index.js.map +1 -1
- package/es/utils/vat/3310/century23.d.ts.map +1 -1
- package/es/utils/vat/3310/century23.js +61 -51
- 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/es/utils/vat/registration.d.ts +1 -0
- package/es/utils/vat/registration.d.ts.map +1 -1
- package/es/utils/vat/registration.js +12 -12
- package/es/utils/vat/registration.js.map +1 -1
- package/js/api/resources/TerminationList.js +3 -0
- package/js/api/resources/TerminationList.js.map +1 -1
- package/js/types/Enum/AdjustmentType.js +7 -3
- package/js/types/Enum/AdjustmentType.js.map +1 -1
- package/js/types/Interface/api/cerfa/3310.js.map +1 -1
- package/js/types/Interface/api/terminationList/CreateTerminationList.js +32 -0
- package/js/types/Interface/api/terminationList/CreateTerminationList.js.map +1 -0
- package/js/types/Interface/models/ITerminationList.js.map +1 -1
- package/js/types/index.js +10 -0
- package/js/types/index.js.map +1 -1
- package/js/utils/vat/3310/century23.js +57 -49
- 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/js/utils/vat/registration.js +14 -12
- package/js/utils/vat/registration.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/TerminationList.ts +5 -1
- package/ts/types/Enum/AdjustmentType.ts +5 -1
- package/ts/types/Interface/api/cerfa/3310.ts +1 -0
- package/ts/types/Interface/api/terminationList/CreateTerminationList.ts +63 -0
- package/ts/types/Interface/models/ITerminationList.ts +11 -11
- package/ts/types/index.ts +1 -0
- package/ts/utils/vat/3310/century23.ts +20 -11
- package/ts/utils/vat/3517/century23.ts +1 -1
- package/ts/utils/vat/registration.ts +3 -3
|
@@ -15,7 +15,7 @@ var _utils = require("../utils");
|
|
|
15
15
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
16
16
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
17
17
|
function getCerfa3310Century23Payload(accountingEntries, payload, updatedEntries = []) {
|
|
18
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39, _40, _41, _42, _43, _44, _45, _46, _47, _48, _49, _50, _51, _52, _53, _54, _55, _56, _57, _58, _59, _60, _61, _62, _63, _64, _65, _66, _67, _68, _69, _70, _71, _72, _73, _74, _75, _76, _77, _78, _79, _80, _81, _82, _83, _84, _85, _86, _87, _88, _89, _90, _91, _92, _93, _94, _95, _96;
|
|
18
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39, _40, _41, _42, _43, _44, _45, _46, _47, _48, _49, _50, _51, _52, _53, _54, _55, _56, _57, _58, _59, _60, _61, _62, _63, _64, _65, _66, _67, _68, _69, _70, _71, _72, _73, _74, _75, _76, _77, _78, _79, _80, _81, _82, _83, _84, _85, _86, _87, _88, _89, _90, _91, _92, _93, _94, _95, _96, _97, _98, _99, _100, _101, _102, _103;
|
|
19
19
|
const shouldHaveVatCode = (0, _classValidator.isDefined)((_a = payload.setting) === null || _a === void 0 ? void 0 : _a.tvaCode) && (0, _classValidator.isDefined)(payload.society.siret);
|
|
20
20
|
const vats = Object.values(_Vat.Vat);
|
|
21
21
|
const frenchVat = vats.filter(v => !v.isVatImportation && !v.isVatIntracom).map(v => v.id);
|
|
@@ -58,8 +58,9 @@ function getCerfa3310Century23Payload(accountingEntries, payload, updatedEntries
|
|
|
58
58
|
const taxedImportEntries = vatEntries.filter(ae => importationVat.includes(ae.idVat) && withTaxVat.includes(ae.idVat));
|
|
59
59
|
const taxedImportAccounts = ['6'];
|
|
60
60
|
const taxedImport = (0, _utils.setZeroIfIsNegative)((0, _utils.getAmountByAccountNumber)(taxedImportEntries, taxedImportAccounts, 0, true));
|
|
61
|
-
const intracommunityAccounts2 = ['601', '602', '603', '605', '606', '607'];
|
|
61
|
+
const intracommunityAccounts2 = ['601', '602', '603', '605', '606', '607', '651'];
|
|
62
62
|
const taxedIntracommunityAcquisitions = (0, _utils.getAmountByAccountNumber)(vatEntries.filter(ae => intracomVat.includes(ae.idVat) && withTaxVat.includes(ae.idVat)), [...intracommunityAccounts2, ...intracommunityServiceAccounts], 0, true);
|
|
63
|
+
console.log('👀 ~ file: century23.ts:64 ~ taxedIntracommunityAcquisitions:', taxedIntracommunityAcquisitions);
|
|
63
64
|
// Opérations non taxées
|
|
64
65
|
const untaxedExportationNotInEurope = (0, _utils.setZeroIfIsNegative)((0, _utils.getAmountByAccountNumber)(vatEntries.filter(ae => importationVat.includes(ae.idVat) && withoutTaxVat.includes(ae.idVat)), servicesAccounts, 0, true));
|
|
65
66
|
const untaxedOther = (0, _utils.setZeroIfIsNegative)((0, _utils.getAmountByAccountNumber)(vatEntries.filter(ae => frenchVat.includes(ae.idVat) && withoutTaxVat.includes(ae.idVat)), ['7'], 0, true));
|
|
@@ -94,12 +95,12 @@ function getCerfa3310Century23Payload(accountingEntries, payload, updatedEntries
|
|
|
94
95
|
const immobilizationTax = (0, _utils.setZeroIfIsNegative)((0, _utils.getTaxAmountByAccountNumber)(vatEntries, ['2']));
|
|
95
96
|
const otherGoodsAndServices = (0, _utils.setZeroIfIsNegative)((0, _utils.getTaxAmountByAccountNumber)(vatEntries.filter(e => vats.filter(v => !v.isVatImportation).map(v => v.id).includes(e.idVat)), ['6']));
|
|
96
97
|
const otherDeductibles = (0, _utils.setZeroIfIsNegative)((0, _utils.getTaxAmountByAccountNumber)(vatEntries.filter(e => vats.filter(v => v.isVatImportation).map(v => v.id).includes(e.idVat)), ['6']));
|
|
97
|
-
const report = (
|
|
98
|
-
const coefficient = (0, _lodash.round)((
|
|
98
|
+
const report = ((_c = (_b = payload.vat) === null || _b === void 0 ? void 0 : _b.deductible) === null || _c === void 0 ? void 0 : _c.toReport) && ((_e = (_d = payload.vat) === null || _d === void 0 ? void 0 : _d.deductible) === null || _e === void 0 ? void 0 : _e.toReport) > 0 ? (0, _lodash.round)((_h = (_g = (_f = payload.vat) === null || _f === void 0 ? void 0 : _f.deductible) === null || _g === void 0 ? void 0 : _g.toReport) !== null && _h !== void 0 ? _h : 0) : (_l = (_k = (_j = payload.previousVatDeclaration) === null || _j === void 0 ? void 0 : _j.credit) === null || _k === void 0 ? void 0 : _k.toReport) !== null && _l !== void 0 ? _l : 0;
|
|
99
|
+
const coefficient = (0, _lodash.round)((_p = (_o = (_m = payload.vat) === null || _m === void 0 ? void 0 : _m.deductible) === null || _o === void 0 ? void 0 : _o.coefficient) !== null && _p !== void 0 ? _p : 100, 2);
|
|
99
100
|
const isNil = payload.isNil === true;
|
|
100
101
|
const isHolidayDeposit = payload.isHolidayDeposit === true;
|
|
101
|
-
const sumToAdd = (0, _utils.setZeroIfIsNegative)(isNil ? 0 : isHolidayDeposit ? (0, _lodash.round)(((
|
|
102
|
-
const comment = isHolidayDeposit ? `ACOMPTE CONGES ${(
|
|
102
|
+
const sumToAdd = (0, _utils.setZeroIfIsNegative)(isNil ? 0 : isHolidayDeposit ? (0, _lodash.round)(((_s = (_r = (_q = payload.previousVatDeclaration) === null || _q === void 0 ? void 0 : _q.toPay) === null || _r === void 0 ? void 0 : _r.total) !== null && _s !== void 0 ? _s : 0) * 0.8) : (0, _lodash.round)((_u = (_t = payload.vat) === null || _t === void 0 ? void 0 : _t.sumToAdd) !== null && _u !== void 0 ? _u : 0) + mxToAdd);
|
|
103
|
+
const comment = isHolidayDeposit ? `ACOMPTE CONGES ${(_v = payload.comment) !== null && _v !== void 0 ? _v : ''}` : (_w = payload.comment) !== null && _w !== void 0 ? _w : null;
|
|
103
104
|
const initialPayload = {
|
|
104
105
|
isNil,
|
|
105
106
|
isDGE: false,
|
|
@@ -112,7 +113,7 @@ function getCerfa3310Century23Payload(accountingEntries, payload, updatedEntries
|
|
|
112
113
|
full: `${payload.society.address}\n${payload.society.zipCode} ${payload.society.city}`
|
|
113
114
|
},
|
|
114
115
|
numbers: {
|
|
115
|
-
SIE: (
|
|
116
|
+
SIE: (_y = (_x = payload.sie) === null || _x === void 0 ? void 0 : _x.sages) !== null && _y !== void 0 ? _y : null,
|
|
116
117
|
folder: null,
|
|
117
118
|
key: null,
|
|
118
119
|
period: null,
|
|
@@ -124,7 +125,7 @@ function getCerfa3310Century23Payload(accountingEntries, payload, updatedEntries
|
|
|
124
125
|
},
|
|
125
126
|
service: {
|
|
126
127
|
address: {
|
|
127
|
-
full: (0, _classValidator.isDefined)((
|
|
128
|
+
full: (0, _classValidator.isDefined)((_0 = (_z = payload.sie) === null || _z === void 0 ? void 0 : _z.address) === null || _0 === void 0 ? void 0 : _0.address1) ? `${(_1 = payload.sie) === null || _1 === void 0 ? void 0 : _1.address.address1}\n${(_2 = payload.sie) === null || _2 === void 0 ? void 0 : _2.address.address2}\n${(_3 = payload.sie) === null || _3 === void 0 ? void 0 : _3.address.address3}\n${(_4 = payload.sie) === null || _4 === void 0 ? void 0 : _4.address.address4}\n${(_5 = payload.sie) === null || _5 === void 0 ? void 0 : _5.address.address5}` : null
|
|
128
129
|
}
|
|
129
130
|
},
|
|
130
131
|
period: {
|
|
@@ -140,13 +141,13 @@ function getCerfa3310Century23Payload(accountingEntries, payload, updatedEntries
|
|
|
140
141
|
}
|
|
141
142
|
},
|
|
142
143
|
siret: {
|
|
143
|
-
first: (0, _classValidator.isDefined)(payload.society.siret) ? (
|
|
144
|
-
second: (0, _classValidator.isDefined)(payload.society.siret) ? (
|
|
144
|
+
first: (0, _classValidator.isDefined)(payload.society.siret) ? (_7 = (_6 = payload.society.siret) === null || _6 === void 0 ? void 0 : _6.slice(0, 9)) !== null && _7 !== void 0 ? _7 : null : null,
|
|
145
|
+
second: (0, _classValidator.isDefined)(payload.society.siret) ? (_9 = (_8 = payload.society.siret) === null || _8 === void 0 ? void 0 : _8.slice(5)) !== null && _9 !== void 0 ? _9 : null : null
|
|
145
146
|
},
|
|
146
147
|
intracommunityVat: {
|
|
147
|
-
first: shouldHaveVatCode ? (
|
|
148
|
-
second: shouldHaveVatCode ? (
|
|
149
|
-
third: shouldHaveVatCode ? (
|
|
148
|
+
first: shouldHaveVatCode ? (_12 = (_11 = (_10 = payload.setting) === null || _10 === void 0 ? void 0 : _10.tvaCode) === null || _11 === void 0 ? void 0 : _11.slice(0, 2)) !== null && _12 !== void 0 ? _12 : null : null,
|
|
149
|
+
second: shouldHaveVatCode ? (_15 = (_14 = (_13 = payload.setting) === null || _13 === void 0 ? void 0 : _13.tvaCode) === null || _14 === void 0 ? void 0 : _14.slice(2, 4)) !== null && _15 !== void 0 ? _15 : null : null,
|
|
150
|
+
third: shouldHaveVatCode ? (_17 = (_16 = payload.society.siret) === null || _16 === void 0 ? void 0 : _16.slice(0, 9)) !== null && _17 !== void 0 ? _17 : null : null
|
|
150
151
|
},
|
|
151
152
|
payment: {
|
|
152
153
|
date: dayjs().format('YYYY-MM-DD'),
|
|
@@ -160,29 +161,29 @@ function getCerfa3310Century23Payload(accountingEntries, payload, updatedEntries
|
|
|
160
161
|
other: isNil || isHolidayDeposit ? 0 : taxedOther,
|
|
161
162
|
purchaseOfIntracommunityServiceProvision: isNil || isHolidayDeposit ? 0 : taxedPurchaseOfIntracommunityService,
|
|
162
163
|
import: isNil || isHolidayDeposit ? 0 : taxedImport,
|
|
163
|
-
withdrawSuspensiveRegime: isNil || isHolidayDeposit ? 0 : (0, _lodash.round)((
|
|
164
|
-
releaseFromConsumption: isNil || isHolidayDeposit ? 0 : (0, _lodash.round)((
|
|
164
|
+
withdrawSuspensiveRegime: isNil || isHolidayDeposit ? 0 : (0, _lodash.round)((_19 = (_18 = payload.taxedOperations) === null || _18 === void 0 ? void 0 : _18.withdrawSuspensiveRegime) !== null && _19 !== void 0 ? _19 : 0),
|
|
165
|
+
releaseFromConsumption: isNil || isHolidayDeposit ? 0 : (0, _lodash.round)((_21 = (_20 = payload.taxedOperations) === null || _20 === void 0 ? void 0 : _20.releaseFromConsumption) !== null && _21 !== void 0 ? _21 : 0),
|
|
165
166
|
intracommunityAcquisitions: isNil || isHolidayDeposit ? 0 : taxedIntracommunityAcquisitions,
|
|
166
|
-
energyDelivery: isNil || isHolidayDeposit ? 0 : (0, _lodash.round)((
|
|
167
|
-
purchaseOfServicesNotInFrance: isNil || isHolidayDeposit ? 0 : (0, _lodash.round)((
|
|
168
|
-
regularizations: isNil || isHolidayDeposit ? 0 : (0, _lodash.round)((
|
|
167
|
+
energyDelivery: isNil || isHolidayDeposit ? 0 : (0, _lodash.round)((_23 = (_22 = payload.taxedOperations) === null || _22 === void 0 ? void 0 : _22.energyDelivery) !== null && _23 !== void 0 ? _23 : 0),
|
|
168
|
+
purchaseOfServicesNotInFrance: isNil || isHolidayDeposit ? 0 : (0, _lodash.round)((_25 = (_24 = payload.taxedOperations) === null || _24 === void 0 ? void 0 : _24.purchaseOfServicesNotInFrance) !== null && _25 !== void 0 ? _25 : 0),
|
|
169
|
+
regularizations: isNil || isHolidayDeposit ? 0 : (0, _lodash.round)((_27 = (_26 = payload.taxedOperations) === null || _26 === void 0 ? void 0 : _26.regularizations) !== null && _27 !== void 0 ? _27 : 0)
|
|
169
170
|
},
|
|
170
171
|
untaxedOperations: {
|
|
171
172
|
exportationNotInEurope: isNil || isHolidayDeposit ? 0 : untaxedExportationNotInEurope,
|
|
172
173
|
other: isNil || isHolidayDeposit ? 0 : untaxedOther,
|
|
173
|
-
distanceSelling: isNil || isHolidayDeposit ? 0 : (0, _lodash.round)((
|
|
174
|
+
distanceSelling: isNil || isHolidayDeposit ? 0 : (0, _lodash.round)((_29 = (_28 = payload.untaxedOperations) === null || _28 === void 0 ? void 0 : _28.distanceSelling) !== null && _29 !== void 0 ? _29 : 0),
|
|
174
175
|
import: isNil || isHolidayDeposit ? 0 : untaxedImport,
|
|
175
|
-
withdrawSuspensiveRegime: isNil || isHolidayDeposit ? 0 : (0, _lodash.round)((
|
|
176
|
-
importInSuspensiveSystem: isNil || isHolidayDeposit ? 0 : (0, _lodash.round)((
|
|
176
|
+
withdrawSuspensiveRegime: isNil || isHolidayDeposit ? 0 : (0, _lodash.round)((_31 = (_30 = payload.untaxedOperations) === null || _30 === void 0 ? void 0 : _30.withdrawSuspensiveRegime) !== null && _31 !== void 0 ? _31 : 0),
|
|
177
|
+
importInSuspensiveSystem: isNil || isHolidayDeposit ? 0 : (0, _lodash.round)((_33 = (_32 = payload.untaxedOperations) === null || _32 === void 0 ? void 0 : _32.importInSuspensiveSystem) !== null && _33 !== void 0 ? _33 : 0),
|
|
177
178
|
intracommunityAcquisitions: isNil || isHolidayDeposit ? 0 : untaxedIntracomunity,
|
|
178
179
|
intracommunityDelivery: isNil || isHolidayDeposit ? 0 : untaxedIntracommunityDelivery,
|
|
179
|
-
energyDelivery: isNil || isHolidayDeposit ? 0 : (0, _lodash.round)((
|
|
180
|
-
oilProductsConsumption: isNil || isHolidayDeposit ? 0 : (0, _lodash.round)((
|
|
181
|
-
importPetrolInSuspensiveSystem: isNil || isHolidayDeposit ? 0 : (0, _lodash.round)((
|
|
182
|
-
purchaseInFranchise: isNil || isHolidayDeposit ? 0 : (0, _lodash.round)((
|
|
183
|
-
saleOfServicesNotInFrance: isNil || isHolidayDeposit ? 0 : (0, _lodash.round)((
|
|
184
|
-
regularizations: isNil || isHolidayDeposit ? 0 : (0, _lodash.round)((
|
|
185
|
-
internalUniq: isNil || isHolidayDeposit ? 0 : (0, _lodash.round)((
|
|
180
|
+
energyDelivery: isNil || isHolidayDeposit ? 0 : (0, _lodash.round)((_35 = (_34 = payload.untaxedOperations) === null || _34 === void 0 ? void 0 : _34.energyDelivery) !== null && _35 !== void 0 ? _35 : 0),
|
|
181
|
+
oilProductsConsumption: isNil || isHolidayDeposit ? 0 : (0, _lodash.round)((_37 = (_36 = payload.untaxedOperations) === null || _36 === void 0 ? void 0 : _36.oilProductsConsumption) !== null && _37 !== void 0 ? _37 : 0),
|
|
182
|
+
importPetrolInSuspensiveSystem: isNil || isHolidayDeposit ? 0 : (0, _lodash.round)((_39 = (_38 = payload.untaxedOperations) === null || _38 === void 0 ? void 0 : _38.importPetrolInSuspensiveSystem) !== null && _39 !== void 0 ? _39 : 0),
|
|
183
|
+
purchaseInFranchise: isNil || isHolidayDeposit ? 0 : (0, _lodash.round)((_41 = (_40 = payload.untaxedOperations) === null || _40 === void 0 ? void 0 : _40.purchaseInFranchise) !== null && _41 !== void 0 ? _41 : 0),
|
|
184
|
+
saleOfServicesNotInFrance: isNil || isHolidayDeposit ? 0 : (0, _lodash.round)((_43 = (_42 = payload.untaxedOperations) === null || _42 === void 0 ? void 0 : _42.saleOfServicesNotInFrance) !== null && _43 !== void 0 ? _43 : 0),
|
|
185
|
+
regularizations: isNil || isHolidayDeposit ? 0 : (0, _lodash.round)((_45 = (_44 = payload.untaxedOperations) === null || _44 === void 0 ? void 0 : _44.regularizations) !== null && _45 !== void 0 ? _45 : 0),
|
|
186
|
+
internalUniq: isNil || isHolidayDeposit ? 0 : (0, _lodash.round)((_47 = (_46 = payload.untaxedOperations) === null || _46 === void 0 ? void 0 : _46.internalUniq) !== null && _47 !== void 0 ? _47 : 0)
|
|
186
187
|
},
|
|
187
188
|
vat: {
|
|
188
189
|
carrieredOutInFrance: {
|
|
@@ -211,12 +212,12 @@ function getCerfa3310Century23Payload(accountingEntries, payload, updatedEntries
|
|
|
211
212
|
},
|
|
212
213
|
oilProducts: {
|
|
213
214
|
normalRate20: {
|
|
214
|
-
base: isNil || isHolidayDeposit ? 0 : (0, _lodash.round)((
|
|
215
|
-
tax: isNil || isHolidayDeposit ? 0 : (0, _lodash.round)((
|
|
215
|
+
base: isNil || isHolidayDeposit ? 0 : (0, _lodash.round)((_51 = (_50 = (_49 = (_48 = payload.vat) === null || _48 === void 0 ? void 0 : _48.oilProducts) === null || _49 === void 0 ? void 0 : _49.normalRate20) === null || _50 === void 0 ? void 0 : _50.base) !== null && _51 !== void 0 ? _51 : 0),
|
|
216
|
+
tax: isNil || isHolidayDeposit ? 0 : (0, _lodash.round)((_55 = (_54 = (_53 = (_52 = payload.vat) === null || _52 === void 0 ? void 0 : _52.oilProducts) === null || _53 === void 0 ? void 0 : _53.normalRate20) === null || _54 === void 0 ? void 0 : _54.base) !== null && _55 !== void 0 ? _55 : 0) * 0.02
|
|
216
217
|
},
|
|
217
218
|
reduceRate13: {
|
|
218
|
-
base: isNil || isHolidayDeposit ? 0 : (0, _lodash.round)((
|
|
219
|
-
tax: isNil || isHolidayDeposit ? 0 : (0, _lodash.round)((
|
|
219
|
+
base: isNil || isHolidayDeposit ? 0 : (0, _lodash.round)((_59 = (_58 = (_57 = (_56 = payload.vat) === null || _56 === void 0 ? void 0 : _56.oilProducts) === null || _57 === void 0 ? void 0 : _57.reduceRate13) === null || _58 === void 0 ? void 0 : _58.base) !== null && _59 !== void 0 ? _59 : 0),
|
|
220
|
+
tax: isNil || isHolidayDeposit ? 0 : (0, _lodash.round)((_63 = (_62 = (_61 = (_60 = payload.vat) === null || _60 === void 0 ? void 0 : _60.oilProducts) === null || _61 === void 0 ? void 0 : _61.reduceRate13) === null || _62 === void 0 ? void 0 : _62.base) !== null && _63 !== void 0 ? _63 : 0) * 0.013
|
|
220
221
|
}
|
|
221
222
|
},
|
|
222
223
|
importations: {
|
|
@@ -246,34 +247,34 @@ function getCerfa3310Century23Payload(accountingEntries, payload, updatedEntries
|
|
|
246
247
|
}
|
|
247
248
|
},
|
|
248
249
|
previouslyDeductedToBeReturned: {
|
|
249
|
-
onOilProducts: isNil || isHolidayDeposit ? 0 : (0, _lodash.round)((
|
|
250
|
-
otherThanOilProducts: isNil || isHolidayDeposit ? 0 : (0, _lodash.round)((
|
|
251
|
-
total: isNil || isHolidayDeposit ? 0 : (0, _lodash.round)((
|
|
250
|
+
onOilProducts: isNil || isHolidayDeposit ? 0 : (0, _lodash.round)((_66 = (_65 = (_64 = payload.vat) === null || _64 === void 0 ? void 0 : _64.previouslyDeductedToBeReturned) === null || _65 === void 0 ? void 0 : _65.onOilProducts) !== null && _66 !== void 0 ? _66 : 0),
|
|
251
|
+
otherThanOilProducts: isNil || isHolidayDeposit ? 0 : (0, _lodash.round)((_69 = (_68 = (_67 = payload.vat) === null || _67 === void 0 ? void 0 : _67.previouslyDeductedToBeReturned) === null || _68 === void 0 ? void 0 : _68.otherThanOilProducts) !== null && _69 !== void 0 ? _69 : 0),
|
|
252
|
+
total: isNil || isHolidayDeposit ? 0 : (0, _lodash.round)((_72 = (_71 = (_70 = payload.vat) === null || _70 === void 0 ? void 0 : _70.previouslyDeductedToBeReturned) === null || _71 === void 0 ? void 0 : _71.total) !== null && _72 !== void 0 ? _72 : 0)
|
|
252
253
|
},
|
|
253
254
|
sumToAdd,
|
|
254
255
|
grossDue: 0,
|
|
255
256
|
onIntracommunityAcquisition: isNil || isHolidayDeposit ? 0 : intracommunityTax,
|
|
256
|
-
toMonaco: isNil || isHolidayDeposit ? 0 : (0, _lodash.round)((
|
|
257
|
+
toMonaco: isNil || isHolidayDeposit ? 0 : (0, _lodash.round)((_74 = (_73 = payload.vat) === null || _73 === void 0 ? void 0 : _73.toMonaco) !== null && _74 !== void 0 ? _74 : 0),
|
|
257
258
|
deductible: {
|
|
258
259
|
immobilizations: isNil || isHolidayDeposit ? 0 : immobilizationTax !== null && immobilizationTax !== void 0 ? immobilizationTax : 0,
|
|
259
260
|
otherGoodsAndServices: isNil || isHolidayDeposit ? 0 : otherGoodsAndServices !== null && otherGoodsAndServices !== void 0 ? otherGoodsAndServices : 0,
|
|
260
261
|
other: {
|
|
261
|
-
oil: isNil || isHolidayDeposit ? 0 : (0, _lodash.round)((
|
|
262
|
+
oil: isNil || isHolidayDeposit ? 0 : (0, _lodash.round)((_78 = (_77 = (_76 = (_75 = payload.vat) === null || _75 === void 0 ? void 0 : _75.deductible) === null || _76 === void 0 ? void 0 : _76.other) === null || _77 === void 0 ? void 0 : _77.oil) !== null && _78 !== void 0 ? _78 : 0),
|
|
262
263
|
thanOilProducts: 0,
|
|
263
264
|
collected: 0,
|
|
264
265
|
total: isNil || isHolidayDeposit ? 0 : otherDeductibles
|
|
265
266
|
},
|
|
266
267
|
report,
|
|
267
|
-
toImpute: isNil || isHolidayDeposit ? 0 : (0, _lodash.round)((
|
|
268
|
+
toImpute: isNil || isHolidayDeposit ? 0 : (0, _lodash.round)((_81 = (_80 = (_79 = payload.vat) === null || _79 === void 0 ? void 0 : _79.deductible) === null || _80 === void 0 ? void 0 : _80.toImpute) !== null && _81 !== void 0 ? _81 : 0) + mxToSub,
|
|
268
269
|
total: 0,
|
|
269
270
|
onImportOtherThanOilProducts: isNil || isHolidayDeposit ? 0 : otherDeductibles,
|
|
270
271
|
coefficient: isNil || isHolidayDeposit ? 100 : coefficient,
|
|
271
|
-
onOilProducts: isNil || isHolidayDeposit ? 0 : (0, _lodash.round)((
|
|
272
|
+
onOilProducts: isNil || isHolidayDeposit ? 0 : (0, _lodash.round)((_84 = (_83 = (_82 = payload.vat) === null || _82 === void 0 ? void 0 : _82.deductible) === null || _83 === void 0 ? void 0 : _83.onOilProducts) !== null && _84 !== void 0 ? _84 : 0)
|
|
272
273
|
},
|
|
273
274
|
otherRate: {
|
|
274
275
|
oldRate: {
|
|
275
|
-
base: isNil || isHolidayDeposit ? 0 : (0, _lodash.round)((
|
|
276
|
-
tax: isNil || isHolidayDeposit ? 0 : (0, _lodash.round)((
|
|
276
|
+
base: isNil || isHolidayDeposit ? 0 : (0, _lodash.round)((_88 = (_87 = (_86 = (_85 = payload.vat) === null || _85 === void 0 ? void 0 : _85.otherRate) === null || _86 === void 0 ? void 0 : _86.oldRate) === null || _87 === void 0 ? void 0 : _87.base) !== null && _88 !== void 0 ? _88 : 0),
|
|
277
|
+
tax: isNil || isHolidayDeposit ? 0 : (0, _lodash.round)((_92 = (_91 = (_90 = (_89 = payload.vat) === null || _89 === void 0 ? void 0 : _89.otherRate) === null || _90 === void 0 ? void 0 : _90.oldRate) === null || _91 === void 0 ? void 0 : _91.tax) !== null && _92 !== void 0 ? _92 : 0)
|
|
277
278
|
},
|
|
278
279
|
at1Dot75: {
|
|
279
280
|
base: 0,
|
|
@@ -307,16 +308,16 @@ function getCerfa3310Century23Payload(accountingEntries, payload, updatedEntries
|
|
|
307
308
|
},
|
|
308
309
|
credit: {
|
|
309
310
|
amount: 0,
|
|
310
|
-
refundAsked: isNil || isHolidayDeposit ? 0 : (0, _lodash.round)((
|
|
311
|
-
transferedToSocietyHeadOfGroup: isNil || isHolidayDeposit ? 0 : (0, _lodash.round)((
|
|
312
|
-
assimiledTaxes: isNil || isHolidayDeposit ? 0 : (0, _lodash.round)((
|
|
311
|
+
refundAsked: isNil || isHolidayDeposit ? 0 : (0, _lodash.round)((_94 = (_93 = payload.credit) === null || _93 === void 0 ? void 0 : _93.refundAsked) !== null && _94 !== void 0 ? _94 : 0),
|
|
312
|
+
transferedToSocietyHeadOfGroup: isNil || isHolidayDeposit ? 0 : (0, _lodash.round)((_96 = (_95 = payload.credit) === null || _95 === void 0 ? void 0 : _95.transferedToSocietyHeadOfGroup) !== null && _96 !== void 0 ? _96 : 0),
|
|
313
|
+
assimiledTaxes: isNil || isHolidayDeposit ? 0 : (0, _lodash.round)((_98 = (_97 = payload.credit) === null || _97 === void 0 ? void 0 : _97.assimiledTaxes) !== null && _98 !== void 0 ? _98 : 0),
|
|
313
314
|
toReport: 0,
|
|
314
315
|
ticRefund: 0,
|
|
315
316
|
ticTransfered: 0
|
|
316
317
|
},
|
|
317
318
|
toPay: {
|
|
318
319
|
netDue: 0,
|
|
319
|
-
acquittedBySocietyHeadOfGroup: isNil || isHolidayDeposit ? 0 : (0, _lodash.round)((
|
|
320
|
+
acquittedBySocietyHeadOfGroup: isNil || isHolidayDeposit ? 0 : (0, _lodash.round)((_100 = (_99 = payload.toPay) === null || _99 === void 0 ? void 0 : _99.acquittedBySocietyHeadOfGroup) !== null && _100 !== void 0 ? _100 : 0),
|
|
320
321
|
total: 0
|
|
321
322
|
},
|
|
322
323
|
tic: {
|
|
@@ -330,7 +331,7 @@ function getCerfa3310Century23Payload(accountingEntries, payload, updatedEntries
|
|
|
330
331
|
initialPayload.credit.amount = initialPayload.vat.grossDue - initialPayload.vat.deductible.total < 0 ? Math.abs(initialPayload.vat.grossDue - initialPayload.vat.deductible.total) : 0;
|
|
331
332
|
initialPayload.toPay.netDue = initialPayload.vat.grossDue - initialPayload.vat.deductible.total > 0 ? initialPayload.vat.grossDue - initialPayload.vat.deductible.total : 0;
|
|
332
333
|
initialPayload.credit.toReport = initialPayload.credit.amount - initialPayload.credit.refundAsked - initialPayload.credit.transferedToSocietyHeadOfGroup;
|
|
333
|
-
initialPayload.toPay.total = initialPayload.toPay.netDue + initialPayload.credit.assimiledTaxes + ((
|
|
334
|
+
initialPayload.toPay.total = initialPayload.toPay.netDue + initialPayload.credit.assimiledTaxes + ((_103 = (_102 = (_101 = initialPayload.tic) === null || _101 === void 0 ? void 0 : _101.total) === null || _102 === void 0 ? void 0 : _102.tax) !== null && _103 !== void 0 ? _103 : 0) - initialPayload.toPay.acquittedBySocietyHeadOfGroup;
|
|
334
335
|
return initialPayload;
|
|
335
336
|
}
|
|
336
337
|
function getCerfa3310Century23RegistrationFields(data) {
|
|
@@ -1266,10 +1267,17 @@ const cerfa3310Century23Fields = exports.cerfa3310Century23Fields = [{
|
|
|
1266
1267
|
}, {
|
|
1267
1268
|
sectionName: 'TVA déductible',
|
|
1268
1269
|
childrens: [{
|
|
1269
|
-
label: '
|
|
1270
|
-
key: 'deductible.
|
|
1270
|
+
label: '22 - Report du crédit apparaissant ligne 27 de la précédente déclaration',
|
|
1271
|
+
key: 'vat.deductible.toReport',
|
|
1271
1272
|
type: 'number'
|
|
1272
|
-
},
|
|
1273
|
+
},
|
|
1274
|
+
/* {
|
|
1275
|
+
GERE DANS LES REGULARISATIONS
|
|
1276
|
+
label: '2C - Sommes à imputer, y compris acompte congés',
|
|
1277
|
+
key: 'vat.deductible.toImpute',
|
|
1278
|
+
type: 'number',
|
|
1279
|
+
}, */
|
|
1280
|
+
{
|
|
1273
1281
|
label: '22A - Coefficient de taxation unique applicable pour la période si différent de 100%',
|
|
1274
1282
|
key: 'vat.deductible.coefficient',
|
|
1275
1283
|
type: 'number'
|