@silexpert/core 2.0.33 → 2.0.34

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 (36) hide show
  1. package/dist/types/Enum/CommercialManagement.d.ts +7 -1
  2. package/dist/types/Enum/CommercialManagement.d.ts.map +1 -1
  3. package/dist/types/Enum/CommercialManagement.js +32 -17
  4. package/dist/types/Enum/CommercialManagement.js.map +1 -1
  5. package/dist/types/Enum/EstimateInvoice.d.ts.map +1 -1
  6. package/dist/types/Enum/EstimateInvoice.js +2 -1
  7. package/dist/types/Enum/EstimateInvoice.js.map +1 -1
  8. package/dist/types/Enum/KilometricAllowanceScale.d.ts.map +1 -1
  9. package/dist/types/Enum/KilometricAllowanceScale.js +119 -0
  10. package/dist/types/Enum/KilometricAllowanceScale.js.map +1 -1
  11. package/dist/types/Interface/api/society/CreateUserToSocietyWithPermission.d.ts +2 -2
  12. package/dist/types/Interface/api/society/CreateUserToSocietyWithPermission.d.ts.map +1 -1
  13. package/dist/types/Interface/api/society/CreateUserToSocietyWithPermission.js.map +1 -1
  14. package/dist/types/Interface/api/society/ReadSocietyUsers.d.ts +2 -3
  15. package/dist/types/Interface/api/society/ReadSocietyUsers.d.ts.map +1 -1
  16. package/dist/types/Interface/api/society/ReadSocietyUsers.js.map +1 -1
  17. package/dist/types/index.d.ts +0 -1
  18. package/dist/types/index.d.ts.map +1 -1
  19. package/dist/types/index.js +0 -1
  20. package/dist/types/index.js.map +1 -1
  21. package/dist/utils/commercialManagement/internationalization/choices.d.ts.map +1 -1
  22. package/dist/utils/commercialManagement/internationalization/choices.js +40 -55
  23. package/dist/utils/commercialManagement/internationalization/choices.js.map +1 -1
  24. package/package.json +1 -1
  25. package/ts/types/Enum/CommercialManagement.ts +34 -18
  26. package/ts/types/Enum/EstimateInvoice.ts +2 -1
  27. package/ts/types/Enum/KilometricAllowanceScale.ts +119 -0
  28. package/ts/types/Interface/api/society/CreateUserToSocietyWithPermission.ts +3 -2
  29. package/ts/types/Interface/api/society/ReadSocietyUsers.ts +2 -3
  30. package/ts/types/index.ts +0 -1
  31. package/ts/utils/commercialManagement/internationalization/choices.ts +48 -55
  32. package/dist/types/Interface/api/user/Permissions.d.ts +0 -12
  33. package/dist/types/Interface/api/user/Permissions.d.ts.map +0 -1
  34. package/dist/types/Interface/api/user/Permissions.js +0 -2
  35. package/dist/types/Interface/api/user/Permissions.js.map +0 -1
  36. package/ts/types/Interface/api/user/Permissions.ts +0 -11
@@ -1,4 +1,13 @@
1
- import { AccountingCategoryId, InvoiceLanguage } from '../../../types/Enum/CommercialManagement.js';
1
+ import { TermOfPaymentList } from '#types/Enum/EstimateInvoice.js';
2
+ import {
3
+ AccountingCategoryId,
4
+ AccountingCategoryList,
5
+ CommercialDiscountsList,
6
+ CommercialPenaltiesList,
7
+ CommercialRecoveryCostList,
8
+ CommercialVatMentionList,
9
+ InvoiceLanguage,
10
+ } from '../../../types/Enum/CommercialManagement.js';
2
11
  import { InternationalizationChoicesType } from './type.js';
3
12
 
4
13
  type InternationalizationConsistencyKey =
@@ -32,25 +41,10 @@ export const internationalizationChoices: InternationalizationChoicesType = {
32
41
  ],
33
42
  },
34
43
  options: {
35
- penalties: ['Non applicable', '3 fois le taux légal', 'Taux directeur de la BCE + 10 points'],
36
- discount: ['Non applicable', 'Aucun escompte en cas de paiement anticipé'],
37
- vatMention: [
38
- 'TVA: Non concerné',
39
- 'TVA: Non applicable',
40
- 'TVA non applicable, art. 293 B du CGI',
41
- 'TVA non applicable - Exportation hors UE - Art. 259-1 du CGI',
42
- "Non soumis à TVA selon l'article 261C du CGI",
43
- 'Article 261 D du code général des impôts (CGI)',
44
- 'Exonération de TVA, article 283-2 du Code général des impôts',
45
- 'Exonération de la TVA : Article 262 ter I du CGI',
46
- 'Mention de TVA 261.4.4 1 du CGI',
47
- "Régime particulier – Biens d'occasion - article 297 A du CGI et directive communautaire 2006/112/CE",
48
- "Régime particulier – Objets d'art - article 297 A du CGI et directive communautaire 2006/112/CE",
49
- "Régime particulier – Objets de collection ou d'antiquité - article 297 A du CGI et directive communautaire 2006/112/CE",
50
- 'Régime particulier – Agences de voyage - article 297 A du CGI et directive communautaire 2006/112/CE',
51
- 'Facture soumise au régime de l’auto-liquidation de la TVA',
52
- ],
53
- recoveryCost: ['Non applicable', '40€'],
44
+ penalties: CommercialPenaltiesList,
45
+ discount: CommercialDiscountsList,
46
+ vatMention: CommercialVatMentionList.map((mention) => mention.value),
47
+ recoveryCost: CommercialRecoveryCostList,
54
48
  paymentType: ['Carte bancaire', 'Chèque', 'Espèces', 'Prélèvement', 'Virement bancaire'],
55
49
  },
56
50
  },
@@ -398,17 +392,17 @@ export const internationalizationChoices: InternationalizationChoicesType = {
398
392
 
399
393
  const internationalizationMatching: { [key: string]: { fr: string; en: string }[] } = {
400
394
  penalties: [
401
- { fr: 'Non applicable', en: 'Not applicable' },
402
- { fr: '3 fois le taux légal', en: '3 times the legal rate' },
403
- { fr: 'Taux directeur de la BCE + 10 points', en: 'ECB key rate + 10 points' },
395
+ { fr: CommercialPenaltiesList[0], en: '3 times the legal rate' },
396
+ { fr: CommercialPenaltiesList[1], en: 'Not applicable' },
397
+ { fr: CommercialPenaltiesList[2], en: 'ECB key rate + 10 points' },
404
398
  ],
405
399
  discount: [
406
- { fr: 'Non applicable', en: 'Not applicable' },
407
- { fr: 'Aucun escompte en cas de paiement anticipé', en: 'No discount for early payment' },
400
+ { fr: CommercialDiscountsList[0], en: 'No discount for early payment' },
401
+ { fr: CommercialDiscountsList[1], en: 'Not applicable' },
408
402
  ],
409
403
  recoveryCost: [
410
- { fr: 'Non applicable', en: 'Not applicable' },
411
- { fr: '40€', en: '40€' },
404
+ { fr: CommercialRecoveryCostList[0], en: '40€' },
405
+ { fr: CommercialRecoveryCostList[1], en: 'Not applicable' },
412
406
  ],
413
407
  paymentType: [
414
408
  { fr: 'Carte bancaire', en: 'Credit card' },
@@ -418,96 +412,95 @@ const internationalizationMatching: { [key: string]: { fr: string; en: string }[
418
412
  { fr: 'Virement bancaire', en: 'Bank transfer' },
419
413
  ],
420
414
  vatMention: [
421
- { fr: 'TVA: Non concerné', en: 'VAT: Not affected' },
422
- { fr: 'TVA: Non applicable', en: 'VAT: Not applicable' },
415
+ { fr: CommercialVatMentionList[0].value, en: 'VAT: Not affected' },
423
416
  {
424
- fr: 'TVA non applicable, art. 293 B du CGI',
417
+ fr: CommercialVatMentionList[1].value,
425
418
  en: 'VAT not applicable, art. 293 B of the French General Tax Code (FGTC)',
426
419
  },
427
420
  {
428
- fr: 'TVA non applicable - Exportation hors UE - Art. 259-1 du CGI',
421
+ fr: CommercialVatMentionList[2].value,
429
422
  en: 'VAT not applicable - Exports outside the EU - Art. 259-1 of the French General Tax Code (FGTC)',
430
423
  },
431
424
  {
432
- fr: "Non soumis à TVA selon l'article 261C du CGI",
425
+ fr: CommercialVatMentionList[3].value,
426
+ en: 'Invoice subject to VAT reverse charge system',
427
+ },
428
+ {
429
+ fr: CommercialVatMentionList[4].value,
433
430
  en: 'Not subject to VAT according to article 261C of the French General Tax Code (FGTC)',
434
431
  },
435
- { fr: 'Article 261 D du code général des impôts (CGI)', en: 'Article 261D of the French General Tax Code (FGTC)' },
432
+ { fr: CommercialVatMentionList[5].value, en: 'Article 261D of the French General Tax Code (FGTC)' },
436
433
  {
437
- fr: 'Exonération de TVA, article 283-2 du Code général des impôts',
434
+ fr: CommercialVatMentionList[6].value,
438
435
  en: 'VAT exemption, article 283-2 of the French General Tax Code (FGTC)',
439
436
  },
440
437
  {
441
- fr: 'Exonération de la TVA : Article 262 ter I du CGI',
438
+ fr: CommercialVatMentionList[7].value,
442
439
  en: 'VAT exemption: Article 262 ter I of the French General Tax Code (FGTC)',
443
440
  },
444
- { fr: 'Mention de TVA 261.4.4 1 du CGI', en: 'VAT notice 261.4.4 1 of the French General Tax Code (FGTC)' },
441
+ { fr: CommercialVatMentionList[8].value, en: 'VAT notice 261.4.4 1 of the French General Tax Code (FGTC)' },
445
442
  {
446
- fr: "Régime particulier – Biens d'occasion - article 297 A du CGI et directive communautaire 2006/112/CE",
443
+ fr: CommercialVatMentionList[9].value,
447
444
  en: 'Specific regime - Second-hand goods - article 297 A of the French General Tax Code (FGTC) and Community Directive 2006/112/EC',
448
445
  },
449
446
  {
450
- fr: "Régime particulier – Objets d'art - article 297 A du CGI et directive communautaire 2006/112/CE",
447
+ fr: CommercialVatMentionList[10].value,
451
448
  en: 'Specific regime - Works of art - article 297 A of the French General Tax Code (FGTC) and Community Directive 2006/112/EC',
452
449
  },
453
450
  {
454
- fr: "Régime particulier – Objets de collection ou d'antiquité - article 297 A du CGI et directive communautaire 2006/112/CE",
451
+ fr: CommercialVatMentionList[11].value,
455
452
  en: 'Specific regime – Collectibles and antiques - article 297 A of the French General Tax Code (FGTC) and Community Directive 2006/112/EC',
456
453
  },
457
454
  {
458
- fr: 'Régime particulier – Agences de voyage - article 297 A du CGI et directive communautaire 2006/112/CE',
455
+ fr: CommercialVatMentionList[12].value,
459
456
  en: 'Specific regime - Travel agencies - article 297 A of the French General Tax Code (FGTC) and Community Directive 2006/112/EC',
460
457
  },
461
- {
462
- fr: 'Facture soumise au régime de l’auto-liquidation de la TVA',
463
- en: 'Invoice subject to VAT reverse charge system',
464
- },
465
458
  ],
466
459
  termsOfPayment: [
467
460
  {
468
- fr: 'À la livraison',
461
+ fr: TermOfPaymentList[0].label,
469
462
  en: 'On delivery',
470
463
  },
471
464
  {
472
- fr: 'À la command',
465
+ fr: TermOfPaymentList[1].label,
473
466
  en: 'On order',
474
467
  },
475
468
  {
476
- fr: 'À réception de la facture',
469
+ fr: TermOfPaymentList[2].label,
477
470
  en: 'Upon receipt of invoice',
478
471
  },
479
472
  {
480
- fr: 'Exigible sous 14 jours',
473
+ fr: TermOfPaymentList[3].label,
481
474
  en: 'Due within 14 days',
482
475
  },
483
476
  {
484
- fr: 'Exigible sous 30 jours',
477
+ fr: TermOfPaymentList[4].label,
485
478
  en: 'Due within 30 days',
486
479
  },
487
480
  {
488
- fr: '30 jours à réception de la facture',
481
+ fr: TermOfPaymentList[5].label,
489
482
  en: '30 days upon receipt of invoice',
490
483
  },
491
484
  {
492
- fr: '45 jours à réception de la facture',
485
+ fr: TermOfPaymentList[6].label,
493
486
  en: '45 days upon receipt of invoice',
494
487
  },
495
488
  {
496
- fr: '60 jours à réception de la facture',
489
+ fr: TermOfPaymentList[7].label,
497
490
  en: '60 days upon receipt of invoice',
498
491
  },
499
492
  ],
500
493
  accountingCategory: [
501
494
  {
502
- fr: 'Livraison de biens',
495
+ fr: AccountingCategoryList[0].label,
503
496
  en: 'Supply of goods',
504
497
  },
505
498
  {
506
- fr: 'Prestation de services',
499
+ fr: AccountingCategoryList[1].label,
507
500
  en: 'Services provision',
508
501
  },
509
502
  {
510
- fr: 'Prestation de services et livraison de biens',
503
+ fr: AccountingCategoryList[2].label,
511
504
  en: 'Services provision and supply of goods',
512
505
  },
513
506
  ],
@@ -1,12 +0,0 @@
1
- export interface Permissions {
2
- gescom: boolean;
3
- compta: boolean;
4
- stats: boolean;
5
- docTreso: boolean;
6
- services: boolean;
7
- social: boolean;
8
- tva: boolean;
9
- setting: boolean;
10
- purchase: boolean;
11
- }
12
- //# sourceMappingURL=Permissions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Permissions.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/user/Permissions.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,OAAO,CAAC;IACf,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,OAAO,CAAC;IAChB,GAAG,EAAE,OAAO,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;CACnB"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=Permissions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Permissions.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/user/Permissions.ts"],"names":[],"mappings":"","sourcesContent":["export interface Permissions {\n gescom: boolean;\n compta: boolean;\n stats: boolean;\n docTreso: boolean;\n services: boolean;\n social: boolean;\n tva: boolean;\n setting: boolean;\n purchase: boolean;\n}\n"]}
@@ -1,11 +0,0 @@
1
- export interface Permissions {
2
- gescom: boolean;
3
- compta: boolean;
4
- stats: boolean;
5
- docTreso: boolean;
6
- services: boolean;
7
- social: boolean;
8
- tva: boolean;
9
- setting: boolean;
10
- purchase: boolean;
11
- }