@silexpert/core 1.1.308 → 1.1.310

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.
Files changed (77) hide show
  1. package/dist/cjs/api/resources/CommercialDocument.d.ts +3 -1
  2. package/dist/cjs/api/resources/CommercialDocument.d.ts.map +1 -1
  3. package/dist/cjs/api/resources/CommercialDocument.js +9 -0
  4. package/dist/cjs/api/resources/CommercialDocument.js.map +1 -1
  5. package/dist/cjs/api/resources/KilometricAllowance.d.ts +2 -0
  6. package/dist/cjs/api/resources/KilometricAllowance.d.ts.map +1 -1
  7. package/dist/cjs/api/resources/KilometricAllowance.js +9 -0
  8. package/dist/cjs/api/resources/KilometricAllowance.js.map +1 -1
  9. package/dist/cjs/types/Enum/EstimateInvoice.d.ts +4 -0
  10. package/dist/cjs/types/Enum/EstimateInvoice.d.ts.map +1 -1
  11. package/dist/cjs/types/Enum/EstimateInvoice.js +27 -1
  12. package/dist/cjs/types/Enum/EstimateInvoice.js.map +1 -1
  13. package/dist/cjs/types/Enum/PriceGridClementine.js +1 -1
  14. package/dist/cjs/types/Enum/PriceGridClementine.js.map +1 -1
  15. package/dist/cjs/types/Interface/api/bankAccount/Read.d.ts +1 -0
  16. package/dist/cjs/types/Interface/api/bankAccount/Read.d.ts.map +1 -1
  17. package/dist/cjs/types/Interface/api/bankAccount/Read.js.map +1 -1
  18. package/dist/cjs/types/Interface/api/commercialManagement/Query.d.ts +6 -0
  19. package/dist/cjs/types/Interface/api/commercialManagement/Query.d.ts.map +1 -1
  20. package/dist/cjs/types/Interface/api/commercialManagement/Query.js +26 -1
  21. package/dist/cjs/types/Interface/api/commercialManagement/Query.js.map +1 -1
  22. package/dist/cjs/types/Interface/api/payment/Util.d.ts +2 -0
  23. package/dist/cjs/types/Interface/api/payment/Util.d.ts.map +1 -1
  24. package/dist/cjs/types/Interface/api/payment/Util.js.map +1 -1
  25. package/dist/cjs/types/Interface/models/IPrestation.d.ts +1 -0
  26. package/dist/cjs/types/Interface/models/IPrestation.d.ts.map +1 -1
  27. package/dist/cjs/types/Interface/models/IPrestation.js.map +1 -1
  28. package/dist/cjs/utils/payment.d.ts +2 -0
  29. package/dist/cjs/utils/payment.d.ts.map +1 -1
  30. package/dist/cjs/utils/payment.js +83 -33
  31. package/dist/cjs/utils/payment.js.map +1 -1
  32. package/dist/cjs/utils/tests/payment.spec.js +36 -0
  33. package/dist/cjs/utils/tests/payment.spec.js.map +1 -1
  34. package/dist/mjs/api/resources/CommercialDocument.d.ts +3 -1
  35. package/dist/mjs/api/resources/CommercialDocument.d.ts.map +1 -1
  36. package/dist/mjs/api/resources/CommercialDocument.js +9 -0
  37. package/dist/mjs/api/resources/CommercialDocument.js.map +1 -1
  38. package/dist/mjs/api/resources/KilometricAllowance.d.ts +2 -0
  39. package/dist/mjs/api/resources/KilometricAllowance.d.ts.map +1 -1
  40. package/dist/mjs/api/resources/KilometricAllowance.js +9 -0
  41. package/dist/mjs/api/resources/KilometricAllowance.js.map +1 -1
  42. package/dist/mjs/types/Enum/EstimateInvoice.d.ts +4 -0
  43. package/dist/mjs/types/Enum/EstimateInvoice.d.ts.map +1 -1
  44. package/dist/mjs/types/Enum/EstimateInvoice.js +26 -0
  45. package/dist/mjs/types/Enum/EstimateInvoice.js.map +1 -1
  46. package/dist/mjs/types/Enum/PriceGridClementine.js +1 -1
  47. package/dist/mjs/types/Enum/PriceGridClementine.js.map +1 -1
  48. package/dist/mjs/types/Interface/api/bankAccount/Read.d.ts +1 -0
  49. package/dist/mjs/types/Interface/api/bankAccount/Read.d.ts.map +1 -1
  50. package/dist/mjs/types/Interface/api/bankAccount/Read.js.map +1 -1
  51. package/dist/mjs/types/Interface/api/commercialManagement/Query.d.ts +6 -0
  52. package/dist/mjs/types/Interface/api/commercialManagement/Query.d.ts.map +1 -1
  53. package/dist/mjs/types/Interface/api/commercialManagement/Query.js +29 -1
  54. package/dist/mjs/types/Interface/api/commercialManagement/Query.js.map +1 -1
  55. package/dist/mjs/types/Interface/api/payment/Util.d.ts +2 -0
  56. package/dist/mjs/types/Interface/api/payment/Util.d.ts.map +1 -1
  57. package/dist/mjs/types/Interface/api/payment/Util.js.map +1 -1
  58. package/dist/mjs/types/Interface/models/IPrestation.d.ts +1 -0
  59. package/dist/mjs/types/Interface/models/IPrestation.d.ts.map +1 -1
  60. package/dist/mjs/types/Interface/models/IPrestation.js.map +1 -1
  61. package/dist/mjs/utils/payment.d.ts +2 -0
  62. package/dist/mjs/utils/payment.d.ts.map +1 -1
  63. package/dist/mjs/utils/payment.js +83 -34
  64. package/dist/mjs/utils/payment.js.map +1 -1
  65. package/dist/mjs/utils/tests/payment.spec.js +37 -1
  66. package/dist/mjs/utils/tests/payment.spec.js.map +1 -1
  67. package/package.json +1 -1
  68. package/ts/api/resources/CommercialDocument.ts +11 -0
  69. package/ts/api/resources/KilometricAllowance.ts +10 -0
  70. package/ts/types/Enum/EstimateInvoice.ts +28 -1
  71. package/ts/types/Enum/PriceGridClementine.ts +1 -1
  72. package/ts/types/Interface/api/bankAccount/Read.ts +1 -0
  73. package/ts/types/Interface/api/commercialManagement/Query.ts +21 -1
  74. package/ts/types/Interface/api/payment/Util.ts +2 -0
  75. package/ts/types/Interface/models/IPrestation.ts +1 -0
  76. package/ts/utils/payment.ts +86 -34
  77. package/ts/utils/tests/payment.spec.ts +37 -1
@@ -1,5 +1,5 @@
1
1
  import * as dayjs from 'dayjs';
2
- import { IRegulation, Vat, PaymentMethod } from '../../types';
2
+ import { IRegulation, Vat, PaymentMethod, LegalFormTypeEnum } from '../../types';
3
3
  import MockDate from 'mockdate';
4
4
 
5
5
  import { calculatePaymentsAuto } from '../payment';
@@ -83,6 +83,8 @@ describe('Payment', () => {
83
83
  goToClient: dayjs('2024-06-06').toDate(),
84
84
  firstExerciceNonExpresssEndDate,
85
85
  idPrestation,
86
+ isWithApplicationFees: true,
87
+ idLegalForm: LegalFormTypeEnum.SARL,
86
88
  prestationList: {
87
89
  ...prestationList,
88
90
  isCatalog: true,
@@ -106,6 +108,8 @@ describe('Payment', () => {
106
108
  goToClient: dayjs('2024-06-06').toDate(),
107
109
  firstExerciceNonExpresssEndDate,
108
110
  idPrestation,
111
+ isWithApplicationFees: true,
112
+ idLegalForm: LegalFormTypeEnum.SARL,
109
113
  prestationList,
110
114
  idVat,
111
115
  listPartialExercicePrestationExpress,
@@ -126,6 +130,8 @@ describe('Payment', () => {
126
130
  goToClient: dayjs('2024-06-06').toDate(),
127
131
  firstExerciceNonExpresssEndDate,
128
132
  idPrestation,
133
+ isWithApplicationFees: true,
134
+ idLegalForm: LegalFormTypeEnum.SARL,
129
135
  prestationList,
130
136
  idVat,
131
137
  listPartialExercicePrestationExpress,
@@ -149,6 +155,8 @@ describe('Payment', () => {
149
155
  goToClient: dayjs('2024-06-06').toDate(),
150
156
  firstExerciceNonExpresssEndDate,
151
157
  idPrestation,
158
+ isWithApplicationFees: true,
159
+ idLegalForm: LegalFormTypeEnum.SARL,
152
160
  prestationList,
153
161
  idVat,
154
162
  listPartialExercicePrestationExpress: [listPartialExercicePrestationExpress[0]],
@@ -166,6 +174,8 @@ describe('Payment', () => {
166
174
  goToClient: dayjs('2024-06-06').toDate(),
167
175
  firstExerciceNonExpresssEndDate,
168
176
  idPrestation,
177
+ isWithApplicationFees: true,
178
+ idLegalForm: LegalFormTypeEnum.SARL,
169
179
  prestationList,
170
180
  idVat,
171
181
  listPartialExercicePrestationExpress,
@@ -190,6 +200,8 @@ describe('Payment', () => {
190
200
  goToClient: dayjs('2024-06-06').toDate(),
191
201
  firstExerciceNonExpresssEndDate: newFirstExerciceNonExpresssEndDate,
192
202
  idPrestation,
203
+ isWithApplicationFees: true,
204
+ idLegalForm: LegalFormTypeEnum.SARL,
193
205
  prestationList,
194
206
  idVat,
195
207
  listPartialExercicePrestationExpress: [],
@@ -215,6 +227,8 @@ describe('Payment', () => {
215
227
  goToClient: dayjs('2024-06-06').toDate(),
216
228
  firstExerciceNonExpresssEndDate: newFirstExerciceNonExpresssEndDate,
217
229
  idPrestation,
230
+ isWithApplicationFees: true,
231
+ idLegalForm: LegalFormTypeEnum.SARL,
218
232
  prestationList,
219
233
  idVat,
220
234
  listPartialExercicePrestationExpress: [],
@@ -243,6 +257,8 @@ describe('Payment', () => {
243
257
  goToClient: dayjs('2024-06-06').toDate(),
244
258
  firstExerciceNonExpresssEndDate: newFirstExerciceNonExpresssEndDate,
245
259
  idPrestation,
260
+ isWithApplicationFees: true,
261
+ idLegalForm: LegalFormTypeEnum.SARL,
246
262
  prestationList,
247
263
  idVat,
248
264
  listPartialExercicePrestationExpress: [],
@@ -269,6 +285,8 @@ describe('Payment', () => {
269
285
  goToClient: dayjs('2024-06-06').toDate(),
270
286
  firstExerciceNonExpresssEndDate: newFirstExerciceNonExpresssEndDate,
271
287
  idPrestation,
288
+ isWithApplicationFees: true,
289
+ idLegalForm: LegalFormTypeEnum.SARL,
272
290
  prestationList,
273
291
  idVat,
274
292
  listPartialExercicePrestationExpress: [],
@@ -293,6 +311,8 @@ describe('Payment', () => {
293
311
  goToClient: dayjs('2024-06-06').toDate(),
294
312
  firstExerciceNonExpresssEndDate: newFirstExerciceNonExpresssEndDate,
295
313
  idPrestation,
314
+ isWithApplicationFees: true,
315
+ idLegalForm: LegalFormTypeEnum.SARL,
296
316
  prestationList,
297
317
  idVat,
298
318
  listPartialExercicePrestationExpress: [],
@@ -319,6 +339,8 @@ describe('Payment', () => {
319
339
  goToClient: dayjs('2024-06-06').toDate(),
320
340
  firstExerciceNonExpresssEndDate: newFirstExerciceNonExpresssEndDate,
321
341
  idPrestation,
342
+ isWithApplicationFees: true,
343
+ idLegalForm: LegalFormTypeEnum.SARL,
322
344
  prestationList,
323
345
  idVat,
324
346
  listPartialExercicePrestationExpress: [],
@@ -346,6 +368,8 @@ describe('Payment', () => {
346
368
  goToClient: dayjs('2024-06-06').toDate(),
347
369
  firstExerciceNonExpresssEndDate: newFirstExerciceNonExpresssEndDate,
348
370
  idPrestation,
371
+ isWithApplicationFees: true,
372
+ idLegalForm: LegalFormTypeEnum.SARL,
349
373
  prestationList,
350
374
  idVat,
351
375
  listPartialExercicePrestationExpress: [],
@@ -379,6 +403,8 @@ describe('Payment', () => {
379
403
  goToClient: dayjs('2024-06-06').toDate(),
380
404
  firstExerciceNonExpresssEndDate,
381
405
  idPrestation,
406
+ isWithApplicationFees: true,
407
+ idLegalForm: LegalFormTypeEnum.SARL,
382
408
  prestationList,
383
409
  idVat,
384
410
  listPartialExercicePrestationExpress: listPartialExercicePrestationExpressCloned,
@@ -397,6 +423,8 @@ describe('Payment', () => {
397
423
  goToClient: dayjs('2024-06-06').toDate(),
398
424
  firstExerciceNonExpresssEndDate,
399
425
  idPrestation,
426
+ isWithApplicationFees: true,
427
+ idLegalForm: LegalFormTypeEnum.SARL,
400
428
  prestationList,
401
429
  idVat,
402
430
  listPartialExercicePrestationExpress,
@@ -436,6 +464,8 @@ describe('Payment', () => {
436
464
  goToClient: dayjs('2024-06-06').toDate(),
437
465
  firstExerciceNonExpresssEndDate,
438
466
  idPrestation,
467
+ isWithApplicationFees: true,
468
+ idLegalForm: LegalFormTypeEnum.SARL,
439
469
  prestationList,
440
470
  idVat,
441
471
  listPartialExercicePrestationExpress,
@@ -455,6 +485,8 @@ describe('Payment', () => {
455
485
  goToClient: dayjs('2024-06-06').toDate(),
456
486
  firstExerciceNonExpresssEndDate,
457
487
  idPrestation,
488
+ isWithApplicationFees: true,
489
+ idLegalForm: LegalFormTypeEnum.SARL,
458
490
  prestationList,
459
491
  idVat,
460
492
  listPartialExercicePrestationExpress,
@@ -470,6 +502,8 @@ describe('Payment', () => {
470
502
  goToClient: dayjs('2024-06-06').toDate(),
471
503
  firstExerciceNonExpresssEndDate,
472
504
  idPrestation,
505
+ isWithApplicationFees: true,
506
+ idLegalForm: LegalFormTypeEnum.SARL,
473
507
  prestationList,
474
508
  idVat,
475
509
  listPartialExercicePrestationExpress: [],
@@ -484,6 +518,8 @@ describe('Payment', () => {
484
518
  goToClient: dayjs('2024-06-06').toDate(),
485
519
  firstExerciceNonExpresssEndDate: dayjs('2024-12-31').toDate(),
486
520
  idPrestation,
521
+ isWithApplicationFees: true,
522
+ idLegalForm: LegalFormTypeEnum.SARL,
487
523
  prestationList,
488
524
  idVat: Vat.TX_20.id,
489
525
  listPartialExercicePrestationExpress: [],