@silexpert/core 1.3.136 → 1.3.137
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/dist/cjs/api/resources/Payment.d.ts +3 -2
- package/dist/cjs/api/resources/Payment.d.ts.map +1 -1
- package/dist/cjs/api/resources/Payment.js +3 -0
- package/dist/cjs/api/resources/Payment.js.map +1 -1
- package/dist/cjs/types/Interface/api/payment/Params.d.ts +3 -0
- package/dist/cjs/types/Interface/api/payment/Params.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/payment/Params.js +9 -1
- package/dist/cjs/types/Interface/api/payment/Params.js.map +1 -1
- package/dist/cjs/types/Interface/api/payment/Util.d.ts +0 -2
- package/dist/cjs/types/Interface/api/payment/Util.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/payment/Util.js.map +1 -1
- package/dist/cjs/types/Interface/models/IPrestation.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IPrestation.js.map +1 -1
- package/dist/cjs/utils/payment.js +54 -50
- package/dist/cjs/utils/payment.js.map +1 -1
- package/dist/cjs/utils/prestation.d.ts +1 -0
- package/dist/cjs/utils/prestation.d.ts.map +1 -1
- package/dist/cjs/utils/prestation.js +1 -0
- package/dist/cjs/utils/prestation.js.map +1 -1
- package/dist/cjs/utils/tests/payment.spec.js +33 -33
- package/dist/cjs/utils/tests/payment.spec.js.map +1 -1
- package/dist/mjs/api/resources/Payment.d.ts +3 -2
- package/dist/mjs/api/resources/Payment.d.ts.map +1 -1
- package/dist/mjs/api/resources/Payment.js +3 -0
- package/dist/mjs/api/resources/Payment.js.map +1 -1
- package/dist/mjs/types/Interface/api/payment/Params.d.ts +3 -0
- package/dist/mjs/types/Interface/api/payment/Params.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/payment/Params.js +8 -0
- package/dist/mjs/types/Interface/api/payment/Params.js.map +1 -1
- package/dist/mjs/types/Interface/api/payment/Util.d.ts +0 -2
- package/dist/mjs/types/Interface/api/payment/Util.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/payment/Util.js.map +1 -1
- package/dist/mjs/types/Interface/models/IPrestation.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IPrestation.js.map +1 -1
- package/dist/mjs/utils/payment.js +52 -48
- package/dist/mjs/utils/payment.js.map +1 -1
- package/dist/mjs/utils/prestation.d.ts +1 -0
- package/dist/mjs/utils/prestation.d.ts.map +1 -1
- package/dist/mjs/utils/prestation.js +1 -0
- package/dist/mjs/utils/prestation.js.map +1 -1
- package/dist/mjs/utils/tests/payment.spec.js +34 -34
- package/dist/mjs/utils/tests/payment.spec.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/Payment.ts +6 -1
- package/ts/types/Interface/api/payment/Params.ts +5 -0
- package/ts/types/Interface/api/payment/Util.ts +2 -2
- package/ts/types/Interface/models/IPrestation.ts +1 -0
- package/ts/utils/payment.ts +49 -49
- package/ts/utils/prestation.ts +1 -0
- package/ts/utils/tests/payment.spec.ts +34 -34
|
@@ -10,8 +10,8 @@ export interface ParamsForPaymentsAuto {
|
|
|
10
10
|
idTypeBrand: number;
|
|
11
11
|
firstExerciceNonExpresssEndDate: Date;
|
|
12
12
|
idPrestation: number;
|
|
13
|
-
idLegalForm: number;
|
|
14
|
-
isWithApplicationFees: boolean;
|
|
13
|
+
// idLegalForm: number; // Application fees are not charged anymore
|
|
14
|
+
// isWithApplicationFees: boolean;
|
|
15
15
|
idVat: number;
|
|
16
16
|
prestationList: IPrestationList;
|
|
17
17
|
yearlyAmountNonExpress: number;
|
|
@@ -32,6 +32,7 @@ export interface IPrestation {
|
|
|
32
32
|
goToFacturation?: Date | null;
|
|
33
33
|
dateLeavingFacturation?: Date | null;
|
|
34
34
|
scoring: number | null;
|
|
35
|
+
// @deprecated Application fees are not charged anymore
|
|
35
36
|
isWithApplicationFees?: boolean;
|
|
36
37
|
state: boolean;
|
|
37
38
|
commentPdf: string | null;
|
package/ts/utils/payment.ts
CHANGED
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from '../types';
|
|
11
11
|
import * as dayjs from 'dayjs';
|
|
12
12
|
import { PartialExercicePrestationExpress } from '../types/Interface/api/payment/Util';
|
|
13
|
-
import { getApplicationFeesAmount, getPriceGrid } from './prestation';
|
|
13
|
+
import { /* getApplicationFeesAmount, */ getPriceGrid } from './prestation';
|
|
14
14
|
|
|
15
15
|
export interface PaymentsWithList extends IPayment {
|
|
16
16
|
type?: 'isComptable' | 'isJuridique' | 'isSocial' | 'isOther';
|
|
@@ -85,23 +85,23 @@ const groupPaymentsByServiceType = (
|
|
|
85
85
|
return societyPayment;
|
|
86
86
|
};
|
|
87
87
|
|
|
88
|
-
const calculateFees = (amount: number, paymentDate: Date): number => {
|
|
89
|
-
|
|
88
|
+
// const calculateFees = (amount: number, paymentDate: Date): number => {
|
|
89
|
+
// const yearlyPriceIncreasing = 1.0275;
|
|
90
90
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
91
|
+
// // Commenté car en fin d'année, pour appliquer le taux d'inflation annuel,
|
|
92
|
+
// // un script enlève les 2,75€ appliqués pour appliquer le bon taux
|
|
93
|
+
// // const oneYearLessIfIn3LastMonthsOfYear = dayjs(goToClient).month() >= 9 ? 1 : 0;
|
|
94
94
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
};
|
|
95
|
+
// if (dayjs(paymentDate).year() - dayjs().year() > 0) {
|
|
96
|
+
// const nbYearsMore = dayjs(paymentDate).year() - dayjs().year(); /* - oneYearLessIfIn3LastMonthsOfYear */
|
|
97
|
+
// // on applique X fois l'augmentation
|
|
98
|
+
// // ex. : si on lance l'appel en 2024, et qu'on génére un paiement pour 2026, on applique 2 fois l'augmentation
|
|
99
|
+
// // soit amount * yearlyPriceIncreasing * yearlyPriceIncreasing
|
|
100
|
+
// // soit amount * yearlyPriceIncreasing ^ nbYearsMore
|
|
101
|
+
// amount = amount * Math.pow(yearlyPriceIncreasing, nbYearsMore);
|
|
102
|
+
// }
|
|
103
|
+
// return amount;
|
|
104
|
+
// };
|
|
105
105
|
|
|
106
106
|
/**
|
|
107
107
|
// * @param {number} firstPaymentAmount - amount of the first payment (first regulation of the customer)
|
|
@@ -121,10 +121,10 @@ const calculateFees = (amount: number, paymentDate: Date): number => {
|
|
|
121
121
|
const calculatePaymentsAuto = (params: ParamsForPaymentsAuto): PaymentAuto[] => {
|
|
122
122
|
const {
|
|
123
123
|
idTypeBrand,
|
|
124
|
-
isWithApplicationFees,
|
|
124
|
+
// isWithApplicationFees,
|
|
125
125
|
firstExerciceNonExpresssEndDate,
|
|
126
126
|
idPrestation,
|
|
127
|
-
idLegalForm,
|
|
127
|
+
// idLegalForm,
|
|
128
128
|
prestationList,
|
|
129
129
|
idVat,
|
|
130
130
|
yearlyAmountNonExpress,
|
|
@@ -157,10 +157,10 @@ const calculatePaymentsAuto = (params: ParamsForPaymentsAuto): PaymentAuto[] =>
|
|
|
157
157
|
if (!prestationList.id) throw new Error('idPrestationList manquant');
|
|
158
158
|
const priceGrid = getPriceGrid(idTypeBrand, prestationList.id);
|
|
159
159
|
if (!priceGrid) throw new Error('Impossible de trouver la grille tarifaire correspondante');
|
|
160
|
-
const { applicationCost, priceWithTaxesIncluded } = priceGrid;
|
|
161
|
-
const applicationCostTotalTTC =
|
|
162
|
-
|
|
163
|
-
const applicationFeesAmountTTC = getApplicationFeesAmount(idLegalForm, idVat);
|
|
160
|
+
const { /* applicationCost, */ priceWithTaxesIncluded } = priceGrid;
|
|
161
|
+
// const applicationCostTotalTTC =
|
|
162
|
+
// (priceWithTaxesIncluded ? applicationCost : getTaxesIncludedAmount(applicationCost, idVat)) * 12;
|
|
163
|
+
// const applicationFeesAmountTTC = getApplicationFeesAmount(idLegalForm, idVat);
|
|
164
164
|
|
|
165
165
|
if (prestationList?.isCatalog || !prestationList?.isComptable)
|
|
166
166
|
throw new Error('Ce type de prestation ne correspond pas aux conditions attendues.');
|
|
@@ -170,10 +170,10 @@ const calculatePaymentsAuto = (params: ParamsForPaymentsAuto): PaymentAuto[] =>
|
|
|
170
170
|
)
|
|
171
171
|
throw new Error('Start date of some exercice are missing');
|
|
172
172
|
|
|
173
|
-
let yearlyAmountNonExpressClone = yearlyAmountNonExpress;
|
|
174
|
-
if (isWithApplicationFees) {
|
|
175
|
-
|
|
176
|
-
}
|
|
173
|
+
// let yearlyAmountNonExpressClone = yearlyAmountNonExpress;
|
|
174
|
+
// if (isWithApplicationFees) {
|
|
175
|
+
// yearlyAmountNonExpressClone -= getApplicationFeesAmount(idLegalForm); //HT
|
|
176
|
+
// }
|
|
177
177
|
|
|
178
178
|
const nbExoExpress = listPartialExercicePrestationExpress.length;
|
|
179
179
|
const listPayments: PaymentAuto[] = [];
|
|
@@ -212,20 +212,20 @@ const calculatePaymentsAuto = (params: ParamsForPaymentsAuto): PaymentAuto[] =>
|
|
|
212
212
|
});
|
|
213
213
|
|
|
214
214
|
// Si les frais de dossiers sont facturés, on ajoute un paiement sur le mois en cours
|
|
215
|
-
if (isWithApplicationFees) {
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
}
|
|
215
|
+
// if (isWithApplicationFees) {
|
|
216
|
+
// listPayments.push({
|
|
217
|
+
// amount: applicationFeesAmountTTC, //TTC
|
|
218
|
+
// isPaid: true,
|
|
219
|
+
// datePayment: dayjs().toDate(),
|
|
220
|
+
// idPrestation,
|
|
221
|
+
// idPaymentMethod: listRegulations[0]?.idPaymentMethod ?? PaymentMethod.DIRECT_DEBIT.id,
|
|
222
|
+
// closingDate: listPartialExercicePrestationExpress?.length
|
|
223
|
+
// ? listPartialExercicePrestationExpress[0].endDate
|
|
224
|
+
// : firstExerciceNonExpresssEndDate,
|
|
225
|
+
// comment: 'Frais de dossier',
|
|
226
|
+
// });
|
|
227
|
+
// remainingAmount += applicationFeesAmountTTC;
|
|
228
|
+
// }
|
|
229
229
|
|
|
230
230
|
// =========================
|
|
231
231
|
// EXPRESS
|
|
@@ -324,7 +324,7 @@ const calculatePaymentsAuto = (params: ParamsForPaymentsAuto): PaymentAuto[] =>
|
|
|
324
324
|
continue;
|
|
325
325
|
}
|
|
326
326
|
|
|
327
|
-
const exoAmount = isFirstNonExpress ?
|
|
327
|
+
const exoAmount = isFirstNonExpress ? yearlyAmountNonExpress : nextYearlyAmountNonExpress;
|
|
328
328
|
const remainingBeforeThisExo = remainingAmount;
|
|
329
329
|
remainingAmount += priceWithTaxesIncluded ? exoAmount : getTaxesIncludedAmount(exoAmount, idVat);
|
|
330
330
|
|
|
@@ -356,17 +356,17 @@ const calculatePaymentsAuto = (params: ParamsForPaymentsAuto): PaymentAuto[] =>
|
|
|
356
356
|
let remainingAmountByExercicePrestation = remainingAmount;
|
|
357
357
|
|
|
358
358
|
// - frais d'application dès les second exo non express
|
|
359
|
-
if (!isFirstNonExpress) remainingAmountByExercicePrestation += applicationCostTotalTTC;
|
|
359
|
+
// if (!isFirstNonExpress) remainingAmountByExercicePrestation += applicationCostTotalTTC;
|
|
360
360
|
|
|
361
361
|
const monthlyAmount = remainingAmountByExercicePrestation / countMonthsBeforeExerciceEnd; //TTC
|
|
362
362
|
|
|
363
363
|
if (monthlyAmount > 0) {
|
|
364
364
|
for (let index = 1; index <= countMonthsBeforeExerciceEnd; index++) {
|
|
365
|
-
|
|
365
|
+
const amount = index < countMonthsBeforeExerciceEnd ? monthlyAmount : remainingAmountByExercicePrestation;
|
|
366
366
|
|
|
367
367
|
// Si besoin, on applique les frais nécessaires :
|
|
368
368
|
// - 2,75% d'augmentation chaque année, sauf si souscriptiuon dans les 3 derniers mois de l'année civile)
|
|
369
|
-
amount = calculateFees(amount, paymentDate);
|
|
369
|
+
// amount = calculateFees(amount, paymentDate);
|
|
370
370
|
|
|
371
371
|
listPayments.push({
|
|
372
372
|
amount: Math.round(100 * amount) / 100,
|
|
@@ -396,13 +396,13 @@ const calculatePaymentsAuto = (params: ParamsForPaymentsAuto): PaymentAuto[] =>
|
|
|
396
396
|
? nextYearlyAmountNonExpress
|
|
397
397
|
: getTaxesIncludedAmount(nextYearlyAmountNonExpress, idVat);
|
|
398
398
|
|
|
399
|
-
|
|
399
|
+
const remainingAmountByExercicePrestation = remainingAmount;
|
|
400
400
|
//On compte le nb de mois restants entre la date à laquelle le paiement va être créé et la date de fin d'exercice
|
|
401
401
|
let countMonthsBeforeExerciceEnd = Math.ceil(dayjs(exerciceEndDate).diff(paymentDate, 'months', true));
|
|
402
402
|
if (countMonthsBeforeExerciceEnd < 3) countMonthsBeforeExerciceEnd = 3;
|
|
403
403
|
|
|
404
404
|
// - frais d'application dès les second exo non express
|
|
405
|
-
remainingAmountByExercicePrestation += applicationCostTotalTTC;
|
|
405
|
+
// remainingAmountByExercicePrestation += applicationCostTotalTTC;
|
|
406
406
|
|
|
407
407
|
const monthlyAmount = remainingAmountByExercicePrestation / countMonthsBeforeExerciceEnd;
|
|
408
408
|
|
|
@@ -410,15 +410,15 @@ const calculatePaymentsAuto = (params: ParamsForPaymentsAuto): PaymentAuto[] =>
|
|
|
410
410
|
if (!listPayments.length) return [];
|
|
411
411
|
|
|
412
412
|
while (dayjs(listPayments.slice(-1)[0].datePayment).month() < 11) {
|
|
413
|
-
|
|
413
|
+
// const amount = monthlyAmount;
|
|
414
414
|
|
|
415
415
|
// Si besoin, on applique les frais nécessaires :
|
|
416
416
|
// - 2,75% d'augmentation chaque année, sauf si souscriptiuon dans les 3 derniers mois de l'année civile)
|
|
417
417
|
// - frais d'application dès les second exo non express
|
|
418
|
-
amount = calculateFees(amount, paymentDate);
|
|
418
|
+
// amount = calculateFees(amount, paymentDate);
|
|
419
419
|
|
|
420
420
|
listPayments.push({
|
|
421
|
-
amount: Math.round(100 *
|
|
421
|
+
amount: Math.round(100 * monthlyAmount) / 100,
|
|
422
422
|
datePayment: paymentDate,
|
|
423
423
|
idPrestation,
|
|
424
424
|
idPaymentMethod: PaymentMethod.DIRECT_DEBIT.id,
|
package/ts/utils/prestation.ts
CHANGED
|
@@ -429,6 +429,7 @@ const calculatePrestationPriceWithPrestationList = (prestationList: IPrestationL
|
|
|
429
429
|
* @param idLegalForm
|
|
430
430
|
* @param idVat
|
|
431
431
|
* @returns amount of application fees, without taxes included
|
|
432
|
+
* @deprecated Application fees are not charged anymore
|
|
432
433
|
*/
|
|
433
434
|
const getApplicationFeesAmount = (idLegalForm: number, idVat?: number) => {
|
|
434
435
|
let applicationFeesAmount = 50;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as dayjs from 'dayjs';
|
|
2
|
-
import { IRegulation, Vat, PaymentMethod,
|
|
2
|
+
import { IRegulation, Vat, PaymentMethod, getTaxesIncludedAmount } from '../../types';
|
|
3
3
|
import MockDate from 'mockdate';
|
|
4
4
|
|
|
5
5
|
import { calculatePaymentsAuto } from '../payment';
|
|
@@ -77,7 +77,7 @@ describe('Payment', () => {
|
|
|
77
77
|
// =====================
|
|
78
78
|
// errors handling
|
|
79
79
|
// =====================
|
|
80
|
-
test(
|
|
80
|
+
test("should return error if prestationList doesn't correspond (!hidden, isCatalog, isComptable)", () => {
|
|
81
81
|
expect.assertions(2);
|
|
82
82
|
try {
|
|
83
83
|
prestationList.hidden = true;
|
|
@@ -85,8 +85,8 @@ describe('Payment', () => {
|
|
|
85
85
|
idTypeBrand: 1,
|
|
86
86
|
firstExerciceNonExpresssEndDate,
|
|
87
87
|
idPrestation,
|
|
88
|
-
isWithApplicationFees: true,
|
|
89
|
-
idLegalForm: LegalFormTypeEnum.SARL,
|
|
88
|
+
// isWithApplicationFees: true,
|
|
89
|
+
// idLegalForm: LegalFormTypeEnum.SARL,
|
|
90
90
|
prestationList: {
|
|
91
91
|
...prestationList,
|
|
92
92
|
isCatalog: true,
|
|
@@ -113,8 +113,8 @@ describe('Payment', () => {
|
|
|
113
113
|
idTypeBrand: 1,
|
|
114
114
|
firstExerciceNonExpresssEndDate,
|
|
115
115
|
idPrestation,
|
|
116
|
-
isWithApplicationFees: true,
|
|
117
|
-
idLegalForm: LegalFormTypeEnum.SARL,
|
|
116
|
+
// isWithApplicationFees: true,
|
|
117
|
+
// idLegalForm: LegalFormTypeEnum.SARL,
|
|
118
118
|
prestationList,
|
|
119
119
|
idVat,
|
|
120
120
|
listPartialExercicePrestationExpress: [listPartialExercicePrestationExpress[0]],
|
|
@@ -136,8 +136,8 @@ describe('Payment', () => {
|
|
|
136
136
|
idTypeBrand: 1,
|
|
137
137
|
firstExerciceNonExpresssEndDate,
|
|
138
138
|
idPrestation,
|
|
139
|
-
isWithApplicationFees: true,
|
|
140
|
-
idLegalForm: LegalFormTypeEnum.SARL,
|
|
139
|
+
// isWithApplicationFees: true,
|
|
140
|
+
// idLegalForm: LegalFormTypeEnum.SARL,
|
|
141
141
|
prestationList,
|
|
142
142
|
idVat,
|
|
143
143
|
listPartialExercicePrestationExpress,
|
|
@@ -166,8 +166,8 @@ describe('Payment', () => {
|
|
|
166
166
|
idTypeBrand: 1,
|
|
167
167
|
firstExerciceNonExpresssEndDate: newFirstExerciceNonExpresssEndDate,
|
|
168
168
|
idPrestation,
|
|
169
|
-
isWithApplicationFees: true,
|
|
170
|
-
idLegalForm: LegalFormTypeEnum.SARL,
|
|
169
|
+
// isWithApplicationFees: true,
|
|
170
|
+
// idLegalForm: LegalFormTypeEnum.SARL,
|
|
171
171
|
prestationList,
|
|
172
172
|
idVat,
|
|
173
173
|
listPartialExercicePrestationExpress: [],
|
|
@@ -197,8 +197,8 @@ describe('Payment', () => {
|
|
|
197
197
|
idTypeBrand: 1,
|
|
198
198
|
firstExerciceNonExpresssEndDate: newFirstExerciceNonExpresssEndDate,
|
|
199
199
|
idPrestation,
|
|
200
|
-
isWithApplicationFees: true,
|
|
201
|
-
idLegalForm: LegalFormTypeEnum.SARL,
|
|
200
|
+
// isWithApplicationFees: true,
|
|
201
|
+
// idLegalForm: LegalFormTypeEnum.SARL,
|
|
202
202
|
prestationList,
|
|
203
203
|
idVat,
|
|
204
204
|
listPartialExercicePrestationExpress: [],
|
|
@@ -233,8 +233,8 @@ describe('Payment', () => {
|
|
|
233
233
|
idTypeBrand: 1,
|
|
234
234
|
firstExerciceNonExpresssEndDate: newFirstExerciceNonExpresssEndDate,
|
|
235
235
|
idPrestation,
|
|
236
|
-
isWithApplicationFees: false,
|
|
237
|
-
idLegalForm: LegalFormTypeEnum.SARL,
|
|
236
|
+
// isWithApplicationFees: false,
|
|
237
|
+
// idLegalForm: LegalFormTypeEnum.SARL,
|
|
238
238
|
prestationList,
|
|
239
239
|
idVat,
|
|
240
240
|
listPartialExercicePrestationExpress: [],
|
|
@@ -265,8 +265,8 @@ describe('Payment', () => {
|
|
|
265
265
|
idTypeBrand: 1,
|
|
266
266
|
firstExerciceNonExpresssEndDate: newFirstExerciceNonExpresssEndDate,
|
|
267
267
|
idPrestation,
|
|
268
|
-
isWithApplicationFees: false,
|
|
269
|
-
idLegalForm: LegalFormTypeEnum.SARL,
|
|
268
|
+
// isWithApplicationFees: false,
|
|
269
|
+
// idLegalForm: LegalFormTypeEnum.SARL,
|
|
270
270
|
prestationList,
|
|
271
271
|
idVat,
|
|
272
272
|
listPartialExercicePrestationExpress: [],
|
|
@@ -293,8 +293,8 @@ describe('Payment', () => {
|
|
|
293
293
|
idTypeBrand: 1,
|
|
294
294
|
firstExerciceNonExpresssEndDate: newFirstExerciceNonExpresssEndDate,
|
|
295
295
|
idPrestation,
|
|
296
|
-
isWithApplicationFees: true,
|
|
297
|
-
idLegalForm: LegalFormTypeEnum.SARL,
|
|
296
|
+
// isWithApplicationFees: true,
|
|
297
|
+
// idLegalForm: LegalFormTypeEnum.SARL,
|
|
298
298
|
prestationList,
|
|
299
299
|
idVat,
|
|
300
300
|
listPartialExercicePrestationExpress: [],
|
|
@@ -326,8 +326,8 @@ describe('Payment', () => {
|
|
|
326
326
|
idTypeBrand: 1,
|
|
327
327
|
firstExerciceNonExpresssEndDate: newFirstExerciceNonExpresssEndDate,
|
|
328
328
|
idPrestation,
|
|
329
|
-
isWithApplicationFees: true,
|
|
330
|
-
idLegalForm: LegalFormTypeEnum.SARL,
|
|
329
|
+
// isWithApplicationFees: true,
|
|
330
|
+
// idLegalForm: LegalFormTypeEnum.SARL,
|
|
331
331
|
prestationList,
|
|
332
332
|
idVat,
|
|
333
333
|
listPartialExercicePrestationExpress: [],
|
|
@@ -357,8 +357,8 @@ describe('Payment', () => {
|
|
|
357
357
|
idTypeBrand: 1,
|
|
358
358
|
firstExerciceNonExpresssEndDate: newFirstExerciceNonExpresssEndDate,
|
|
359
359
|
idPrestation,
|
|
360
|
-
isWithApplicationFees: false,
|
|
361
|
-
idLegalForm: LegalFormTypeEnum.SARL,
|
|
360
|
+
// isWithApplicationFees: false,
|
|
361
|
+
// idLegalForm: LegalFormTypeEnum.SARL,
|
|
362
362
|
prestationList,
|
|
363
363
|
idVat,
|
|
364
364
|
listPartialExercicePrestationExpress: [],
|
|
@@ -398,8 +398,8 @@ describe('Payment', () => {
|
|
|
398
398
|
idTypeBrand: 1,
|
|
399
399
|
firstExerciceNonExpresssEndDate,
|
|
400
400
|
idPrestation,
|
|
401
|
-
isWithApplicationFees: true,
|
|
402
|
-
idLegalForm: LegalFormTypeEnum.SARL,
|
|
401
|
+
// isWithApplicationFees: true,
|
|
402
|
+
// idLegalForm: LegalFormTypeEnum.SARL,
|
|
403
403
|
prestationList,
|
|
404
404
|
idVat,
|
|
405
405
|
listPartialExercicePrestationExpress: listPartialExercicePrestationExpressCloned,
|
|
@@ -420,8 +420,8 @@ describe('Payment', () => {
|
|
|
420
420
|
idTypeBrand: 1,
|
|
421
421
|
firstExerciceNonExpresssEndDate,
|
|
422
422
|
idPrestation,
|
|
423
|
-
isWithApplicationFees: false,
|
|
424
|
-
idLegalForm: LegalFormTypeEnum.SARL,
|
|
423
|
+
// isWithApplicationFees: false,
|
|
424
|
+
// idLegalForm: LegalFormTypeEnum.SARL,
|
|
425
425
|
prestationList,
|
|
426
426
|
idVat,
|
|
427
427
|
listPartialExercicePrestationExpress,
|
|
@@ -459,8 +459,8 @@ describe('Payment', () => {
|
|
|
459
459
|
idTypeBrand: 1,
|
|
460
460
|
firstExerciceNonExpresssEndDate,
|
|
461
461
|
idPrestation,
|
|
462
|
-
isWithApplicationFees: false,
|
|
463
|
-
idLegalForm: LegalFormTypeEnum.SARL,
|
|
462
|
+
// isWithApplicationFees: false,
|
|
463
|
+
// idLegalForm: LegalFormTypeEnum.SARL,
|
|
464
464
|
prestationList,
|
|
465
465
|
idVat,
|
|
466
466
|
listPartialExercicePrestationExpress,
|
|
@@ -480,8 +480,8 @@ describe('Payment', () => {
|
|
|
480
480
|
idTypeBrand: 1,
|
|
481
481
|
firstExerciceNonExpresssEndDate,
|
|
482
482
|
idPrestation,
|
|
483
|
-
isWithApplicationFees: true,
|
|
484
|
-
idLegalForm: LegalFormTypeEnum.SARL,
|
|
483
|
+
// isWithApplicationFees: true,
|
|
484
|
+
// idLegalForm: LegalFormTypeEnum.SARL,
|
|
485
485
|
prestationList,
|
|
486
486
|
idVat,
|
|
487
487
|
listPartialExercicePrestationExpress,
|
|
@@ -497,8 +497,8 @@ describe('Payment', () => {
|
|
|
497
497
|
idTypeBrand: 1,
|
|
498
498
|
firstExerciceNonExpresssEndDate,
|
|
499
499
|
idPrestation,
|
|
500
|
-
isWithApplicationFees: true,
|
|
501
|
-
idLegalForm: LegalFormTypeEnum.SARL,
|
|
500
|
+
// isWithApplicationFees: true,
|
|
501
|
+
// idLegalForm: LegalFormTypeEnum.SARL,
|
|
502
502
|
prestationList,
|
|
503
503
|
idVat,
|
|
504
504
|
listPartialExercicePrestationExpress: [],
|
|
@@ -515,8 +515,8 @@ describe('Payment', () => {
|
|
|
515
515
|
idTypeBrand: 1,
|
|
516
516
|
firstExerciceNonExpresssEndDate: dayjs('2024-12-31').toDate(),
|
|
517
517
|
idPrestation,
|
|
518
|
-
isWithApplicationFees: true,
|
|
519
|
-
idLegalForm: LegalFormTypeEnum.SARL,
|
|
518
|
+
// isWithApplicationFees: true,
|
|
519
|
+
// idLegalForm: LegalFormTypeEnum.SARL,
|
|
520
520
|
prestationList,
|
|
521
521
|
idVat: Vat.TX_20.id,
|
|
522
522
|
listPartialExercicePrestationExpress: [],
|