@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.
- package/dist/types/Enum/CommercialManagement.d.ts +7 -1
- package/dist/types/Enum/CommercialManagement.d.ts.map +1 -1
- package/dist/types/Enum/CommercialManagement.js +32 -17
- package/dist/types/Enum/CommercialManagement.js.map +1 -1
- package/dist/types/Enum/EstimateInvoice.d.ts.map +1 -1
- package/dist/types/Enum/EstimateInvoice.js +2 -1
- package/dist/types/Enum/EstimateInvoice.js.map +1 -1
- package/dist/types/Enum/KilometricAllowanceScale.d.ts.map +1 -1
- package/dist/types/Enum/KilometricAllowanceScale.js +119 -0
- package/dist/types/Enum/KilometricAllowanceScale.js.map +1 -1
- package/dist/types/Interface/api/society/CreateUserToSocietyWithPermission.d.ts +2 -2
- package/dist/types/Interface/api/society/CreateUserToSocietyWithPermission.d.ts.map +1 -1
- package/dist/types/Interface/api/society/CreateUserToSocietyWithPermission.js.map +1 -1
- package/dist/types/Interface/api/society/ReadSocietyUsers.d.ts +2 -3
- package/dist/types/Interface/api/society/ReadSocietyUsers.d.ts.map +1 -1
- package/dist/types/Interface/api/society/ReadSocietyUsers.js.map +1 -1
- package/dist/types/index.d.ts +0 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +0 -1
- package/dist/types/index.js.map +1 -1
- package/dist/utils/commercialManagement/internationalization/choices.d.ts.map +1 -1
- package/dist/utils/commercialManagement/internationalization/choices.js +40 -55
- package/dist/utils/commercialManagement/internationalization/choices.js.map +1 -1
- package/package.json +1 -1
- package/ts/types/Enum/CommercialManagement.ts +34 -18
- package/ts/types/Enum/EstimateInvoice.ts +2 -1
- package/ts/types/Enum/KilometricAllowanceScale.ts +119 -0
- package/ts/types/Interface/api/society/CreateUserToSocietyWithPermission.ts +3 -2
- package/ts/types/Interface/api/society/ReadSocietyUsers.ts +2 -3
- package/ts/types/index.ts +0 -1
- package/ts/utils/commercialManagement/internationalization/choices.ts +48 -55
- package/dist/types/Interface/api/user/Permissions.d.ts +0 -12
- package/dist/types/Interface/api/user/Permissions.d.ts.map +0 -1
- package/dist/types/Interface/api/user/Permissions.js +0 -2
- package/dist/types/Interface/api/user/Permissions.js.map +0 -1
- package/ts/types/Interface/api/user/Permissions.ts +0 -11
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TermOfPaymentList } from '#types/Enum/EstimateInvoice.js';
|
|
2
|
+
import { AccountingCategoryId, AccountingCategoryList, CommercialDiscountsList, CommercialPenaltiesList, CommercialRecoveryCostList, CommercialVatMentionList, InvoiceLanguage, } from '../../../types/Enum/CommercialManagement.js';
|
|
2
3
|
export const internationalizationChoices = {
|
|
3
4
|
fr: {
|
|
4
5
|
inputLists: {
|
|
@@ -20,25 +21,10 @@ export const internationalizationChoices = {
|
|
|
20
21
|
],
|
|
21
22
|
},
|
|
22
23
|
options: {
|
|
23
|
-
penalties:
|
|
24
|
-
discount:
|
|
25
|
-
vatMention:
|
|
26
|
-
|
|
27
|
-
'TVA: Non applicable',
|
|
28
|
-
'TVA non applicable, art. 293 B du CGI',
|
|
29
|
-
'TVA non applicable - Exportation hors UE - Art. 259-1 du CGI',
|
|
30
|
-
"Non soumis à TVA selon l'article 261C du CGI",
|
|
31
|
-
'Article 261 D du code général des impôts (CGI)',
|
|
32
|
-
'Exonération de TVA, article 283-2 du Code général des impôts',
|
|
33
|
-
'Exonération de la TVA : Article 262 ter I du CGI',
|
|
34
|
-
'Mention de TVA 261.4.4 1 du CGI',
|
|
35
|
-
"Régime particulier – Biens d'occasion - article 297 A du CGI et directive communautaire 2006/112/CE",
|
|
36
|
-
"Régime particulier – Objets d'art - article 297 A du CGI et directive communautaire 2006/112/CE",
|
|
37
|
-
"Régime particulier – Objets de collection ou d'antiquité - article 297 A du CGI et directive communautaire 2006/112/CE",
|
|
38
|
-
'Régime particulier – Agences de voyage - article 297 A du CGI et directive communautaire 2006/112/CE',
|
|
39
|
-
'Facture soumise au régime de l’auto-liquidation de la TVA',
|
|
40
|
-
],
|
|
41
|
-
recoveryCost: ['Non applicable', '40€'],
|
|
24
|
+
penalties: CommercialPenaltiesList,
|
|
25
|
+
discount: CommercialDiscountsList,
|
|
26
|
+
vatMention: CommercialVatMentionList.map((mention) => mention.value),
|
|
27
|
+
recoveryCost: CommercialRecoveryCostList,
|
|
42
28
|
paymentType: ['Carte bancaire', 'Chèque', 'Espèces', 'Prélèvement', 'Virement bancaire'],
|
|
43
29
|
},
|
|
44
30
|
},
|
|
@@ -385,17 +371,17 @@ export const internationalizationChoices = {
|
|
|
385
371
|
};
|
|
386
372
|
const internationalizationMatching = {
|
|
387
373
|
penalties: [
|
|
388
|
-
{ fr:
|
|
389
|
-
{ fr:
|
|
390
|
-
{ fr:
|
|
374
|
+
{ fr: CommercialPenaltiesList[0], en: '3 times the legal rate' },
|
|
375
|
+
{ fr: CommercialPenaltiesList[1], en: 'Not applicable' },
|
|
376
|
+
{ fr: CommercialPenaltiesList[2], en: 'ECB key rate + 10 points' },
|
|
391
377
|
],
|
|
392
378
|
discount: [
|
|
393
|
-
{ fr:
|
|
394
|
-
{ fr:
|
|
379
|
+
{ fr: CommercialDiscountsList[0], en: 'No discount for early payment' },
|
|
380
|
+
{ fr: CommercialDiscountsList[1], en: 'Not applicable' },
|
|
395
381
|
],
|
|
396
382
|
recoveryCost: [
|
|
397
|
-
{ fr:
|
|
398
|
-
{ fr:
|
|
383
|
+
{ fr: CommercialRecoveryCostList[0], en: '40€' },
|
|
384
|
+
{ fr: CommercialRecoveryCostList[1], en: 'Not applicable' },
|
|
399
385
|
],
|
|
400
386
|
paymentType: [
|
|
401
387
|
{ fr: 'Carte bancaire', en: 'Credit card' },
|
|
@@ -405,96 +391,95 @@ const internationalizationMatching = {
|
|
|
405
391
|
{ fr: 'Virement bancaire', en: 'Bank transfer' },
|
|
406
392
|
],
|
|
407
393
|
vatMention: [
|
|
408
|
-
{ fr:
|
|
409
|
-
{ fr: 'TVA: Non applicable', en: 'VAT: Not applicable' },
|
|
394
|
+
{ fr: CommercialVatMentionList[0].value, en: 'VAT: Not affected' },
|
|
410
395
|
{
|
|
411
|
-
fr:
|
|
396
|
+
fr: CommercialVatMentionList[1].value,
|
|
412
397
|
en: 'VAT not applicable, art. 293 B of the French General Tax Code (FGTC)',
|
|
413
398
|
},
|
|
414
399
|
{
|
|
415
|
-
fr:
|
|
400
|
+
fr: CommercialVatMentionList[2].value,
|
|
416
401
|
en: 'VAT not applicable - Exports outside the EU - Art. 259-1 of the French General Tax Code (FGTC)',
|
|
417
402
|
},
|
|
418
403
|
{
|
|
419
|
-
fr:
|
|
404
|
+
fr: CommercialVatMentionList[3].value,
|
|
405
|
+
en: 'Invoice subject to VAT reverse charge system',
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
fr: CommercialVatMentionList[4].value,
|
|
420
409
|
en: 'Not subject to VAT according to article 261C of the French General Tax Code (FGTC)',
|
|
421
410
|
},
|
|
422
|
-
{ fr:
|
|
411
|
+
{ fr: CommercialVatMentionList[5].value, en: 'Article 261D of the French General Tax Code (FGTC)' },
|
|
423
412
|
{
|
|
424
|
-
fr:
|
|
413
|
+
fr: CommercialVatMentionList[6].value,
|
|
425
414
|
en: 'VAT exemption, article 283-2 of the French General Tax Code (FGTC)',
|
|
426
415
|
},
|
|
427
416
|
{
|
|
428
|
-
fr:
|
|
417
|
+
fr: CommercialVatMentionList[7].value,
|
|
429
418
|
en: 'VAT exemption: Article 262 ter I of the French General Tax Code (FGTC)',
|
|
430
419
|
},
|
|
431
|
-
{ fr:
|
|
420
|
+
{ fr: CommercialVatMentionList[8].value, en: 'VAT notice 261.4.4 1 of the French General Tax Code (FGTC)' },
|
|
432
421
|
{
|
|
433
|
-
fr:
|
|
422
|
+
fr: CommercialVatMentionList[9].value,
|
|
434
423
|
en: 'Specific regime - Second-hand goods - article 297 A of the French General Tax Code (FGTC) and Community Directive 2006/112/EC',
|
|
435
424
|
},
|
|
436
425
|
{
|
|
437
|
-
fr:
|
|
426
|
+
fr: CommercialVatMentionList[10].value,
|
|
438
427
|
en: 'Specific regime - Works of art - article 297 A of the French General Tax Code (FGTC) and Community Directive 2006/112/EC',
|
|
439
428
|
},
|
|
440
429
|
{
|
|
441
|
-
fr:
|
|
430
|
+
fr: CommercialVatMentionList[11].value,
|
|
442
431
|
en: 'Specific regime – Collectibles and antiques - article 297 A of the French General Tax Code (FGTC) and Community Directive 2006/112/EC',
|
|
443
432
|
},
|
|
444
433
|
{
|
|
445
|
-
fr:
|
|
434
|
+
fr: CommercialVatMentionList[12].value,
|
|
446
435
|
en: 'Specific regime - Travel agencies - article 297 A of the French General Tax Code (FGTC) and Community Directive 2006/112/EC',
|
|
447
436
|
},
|
|
448
|
-
{
|
|
449
|
-
fr: 'Facture soumise au régime de l’auto-liquidation de la TVA',
|
|
450
|
-
en: 'Invoice subject to VAT reverse charge system',
|
|
451
|
-
},
|
|
452
437
|
],
|
|
453
438
|
termsOfPayment: [
|
|
454
439
|
{
|
|
455
|
-
fr:
|
|
440
|
+
fr: TermOfPaymentList[0].label,
|
|
456
441
|
en: 'On delivery',
|
|
457
442
|
},
|
|
458
443
|
{
|
|
459
|
-
fr:
|
|
444
|
+
fr: TermOfPaymentList[1].label,
|
|
460
445
|
en: 'On order',
|
|
461
446
|
},
|
|
462
447
|
{
|
|
463
|
-
fr:
|
|
448
|
+
fr: TermOfPaymentList[2].label,
|
|
464
449
|
en: 'Upon receipt of invoice',
|
|
465
450
|
},
|
|
466
451
|
{
|
|
467
|
-
fr:
|
|
452
|
+
fr: TermOfPaymentList[3].label,
|
|
468
453
|
en: 'Due within 14 days',
|
|
469
454
|
},
|
|
470
455
|
{
|
|
471
|
-
fr:
|
|
456
|
+
fr: TermOfPaymentList[4].label,
|
|
472
457
|
en: 'Due within 30 days',
|
|
473
458
|
},
|
|
474
459
|
{
|
|
475
|
-
fr:
|
|
460
|
+
fr: TermOfPaymentList[5].label,
|
|
476
461
|
en: '30 days upon receipt of invoice',
|
|
477
462
|
},
|
|
478
463
|
{
|
|
479
|
-
fr:
|
|
464
|
+
fr: TermOfPaymentList[6].label,
|
|
480
465
|
en: '45 days upon receipt of invoice',
|
|
481
466
|
},
|
|
482
467
|
{
|
|
483
|
-
fr:
|
|
468
|
+
fr: TermOfPaymentList[7].label,
|
|
484
469
|
en: '60 days upon receipt of invoice',
|
|
485
470
|
},
|
|
486
471
|
],
|
|
487
472
|
accountingCategory: [
|
|
488
473
|
{
|
|
489
|
-
fr:
|
|
474
|
+
fr: AccountingCategoryList[0].label,
|
|
490
475
|
en: 'Supply of goods',
|
|
491
476
|
},
|
|
492
477
|
{
|
|
493
|
-
fr:
|
|
478
|
+
fr: AccountingCategoryList[1].label,
|
|
494
479
|
en: 'Services provision',
|
|
495
480
|
},
|
|
496
481
|
{
|
|
497
|
-
fr:
|
|
482
|
+
fr: AccountingCategoryList[2].label,
|
|
498
483
|
en: 'Services provision and supply of goods',
|
|
499
484
|
},
|
|
500
485
|
],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"choices.js","sourceRoot":"","sources":["../../../../ts/utils/commercialManagement/internationalization/choices.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,6CAA6C,CAAC;AAapG,MAAM,CAAC,MAAM,2BAA2B,GAAoC;IAC1E,EAAE,EAAE;QACF,UAAU,EAAE;YACV,OAAO,EAAE;gBACP,cAAc,EAAE;oBACd,gBAAgB;oBAChB,eAAe;oBACf,2BAA2B;oBAC3B,wBAAwB;oBACxB,wBAAwB;oBACxB,oCAAoC;oBACpC,oCAAoC;oBACpC,oCAAoC;iBACrC;gBACD,oBAAoB,EAAE;oBACpB,EAAE,EAAE,EAAE,oBAAoB,CAAC,gBAAgB,EAAE,KAAK,EAAE,oBAAoB,EAAE;oBAC1E,EAAE,EAAE,EAAE,oBAAoB,CAAC,gBAAgB,EAAE,KAAK,EAAE,wBAAwB,EAAE;oBAC9E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izationChoicesType } from './type.js';\n\ntype InternationalizationConsistencyKey =\n | 'penalties'\n | 'discount'\n | 'vatMention'\n | 'recoveryCost'\n | 'paymentType'\n | 'termsOfPayment'\n | 'accountingCategory'\n | 'unit';\n\nexport const internationalizationChoices: InternationalizationChoicesType = {\n fr: {\n inputLists: {\n headers: {\n termsOfPayment: [\n 'À la livraison',\n 'À la commande',\n 'À réception de la facture',\n 'Exigible sous 14 jours',\n 'Exigible sous 30 jours',\n '30 jours à réception de la facture',\n '45 jours à réception de la facture',\n '60 jours à réception de la facture',\n ],\n accountingCategories: [\n { id: AccountingCategoryId.DELIVERY_OF_GOOD, label: 'Livraison de biens' },\n { id: AccountingCategoryId.SERVICE_DELIVERY, label: 'Prestation de services' },\n { id: AccountingCategoryId.GOOD_AND_SERVICE, label: 'Prestation de services et livraison de biens' },\n ],\n },\n options: {\n penalties: ['Non applicable', '3 fois le taux légal', 'Taux directeur de la BCE + 10 points'],\n discount: ['Non applicable', 'Aucun escompte en cas de paiement anticipé'],\n vatMention: [\n 'TVA: Non concerné',\n 'TVA: Non applicable',\n 'TVA non applicable, art. 293 B du CGI',\n 'TVA non applicable - Exportation hors UE - Art. 259-1 du CGI',\n \"Non soumis à TVA selon l'article 261C du CGI\",\n 'Article 261 D du code général des impôts (CGI)',\n 'Exonération de TVA, article 283-2 du Code général des impôts',\n 'Exonération de la TVA : Article 262 ter I du CGI',\n 'Mention de TVA 261.4.4 1 du CGI',\n \"Régime particulier – Biens d'occasion - article 297 A du CGI et directive communautaire 2006/112/CE\",\n \"Régime particulier – Objets d'art - article 297 A du CGI et directive communautaire 2006/112/CE\",\n \"Régime particulier – Objets de collection ou d'antiquité - article 297 A du CGI et directive communautaire 2006/112/CE\",\n 'Régime particulier – Agences de voyage - article 297 A du CGI et directive communautaire 2006/112/CE',\n 'Facture soumise au régime de l’auto-liquidation de la TVA',\n ],\n recoveryCost: ['Non applicable', '40€'],\n paymentType: ['Carte bancaire', 'Chèque', 'Espèces', 'Prélèvement', 'Virement bancaire'],\n },\n },\n template: {\n common: {\n headers: {\n title: 'Titre',\n emissionDate: \"Date d'émission\",\n accountingCategory: {\n title: \"Catégorie de l'opération\",\n choices: [\n { id: AccountingCategoryId.DELIVERY_OF_GOOD, label: 'Livraison de biens' },\n { id: AccountingCategoryId.SERVICE_DELIVERY, label: 'Prestation de services' },\n { id: AccountingCategoryId.GOOD_AND_SERVICE, label: 'Prestation de services et livraison de biens' },\n ],\n },\n },\n footer: {\n capital: 'au capital de',\n siren: 'immatriculée sous le SIREN',\n vatCode: 'N° TVA',\n marginVat: 'Régime TVA sur marge',\n legalVatMention: 'ART 297-A du CGI ou directive 2006-212 CE',\n shouldPayTaxAfterDebit: \"Option pour le paiement de la taxe d'après les débits\",\n penalties: 'Pénalités en cas de retard',\n discount: 'Escompte',\n recoveryCosts: 'Indemnités forfaitaire en cas de retard',\n generate: 'Généré par',\n },\n options: {\n vatMention: 'Mention TVA',\n paymentType: 'Mode de paiement',\n bank: 'BANQUE',\n approval: 'Bon pour accord',\n comment: 'Commentaire',\n },\n table: {\n headers: {\n product: 'Article',\n quantity: 'Quantité',\n unitPrice: 'P.U HT',\n unitPriceWithoutVat: 'P.U',\n discount: 'Remise',\n vat: 'TVA',\n amount: 'Montant HT',\n amountWithoutVat: 'Montant',\n base: 'Base',\n rate: 'Taux',\n vatAmount: 'Montant TVA',\n recap: 'Récapitulatif',\n },\n lines: {\n totalHt: 'Total HT',\n vat: 'TVA',\n totalTTC: 'Total TTC',\n totalWhitoutVat: 'Total',\n deposit: 'Acompte',\n remainderToPay: 'Reste à payer',\n netToPay: 'Net à payer',\n },\n },\n },\n invoice: {\n headers: {\n title: 'Facture',\n dueDate: \"Date d'échéance\",\n termsOfPayment: 'Date limite de règlement',\n },\n },\n estimate: {\n headers: {\n title: 'Devis',\n dueDate: \"Valide jusqu'au\",\n termsOfPayment: 'Conditions de règlement',\n },\n },\n orderForm: {\n headers: {\n title: 'Bon de commande',\n dueDate: \"Date d'échéance\",\n termsOfPayment: 'Conditions de règlement',\n },\n },\n deposit: {\n headers: {\n title: \"Facture d'acompte\",\n expirationDate: \"Date d'expiration\",\n termsOfPayment: 'Date limite de règlement',\n },\n },\n asset: {\n headers: {\n title: 'Avoir',\n dueDate: \"Date d'échéance\",\n termsOfPayment: 'Date limite de règlement',\n },\n },\n remainder: {\n headers: {\n title: 'Facture de solde',\n dueDate: \"Date d'échéance\",\n termsOfPayment: 'Date limite de règlement',\n },\n },\n draft: {\n headers: {\n title: 'Brouillon',\n dueDate: \"Date d'échéance\",\n termsOfPayment: 'Date limite de règlement',\n },\n },\n },\n mail: {\n common: {\n dueDate: 'Échéance',\n generate: 'Généré par',\n displayDocument: 'Afficher le document',\n totalHt: 'Total HT',\n totalVat: 'Total TVA',\n totalTtc: 'Total TTC',\n send: 'vous adresse',\n },\n invoice: {\n title: 'cette facture',\n subTitle: 'Facture',\n },\n estimate: {\n title: 'ce devis',\n subTitle: 'Devis',\n },\n orderForm: {\n title: 'ce bon de commande',\n subTitle: 'Bon de commande',\n },\n deposit: {\n title: 'cet acompte',\n subTitle: 'Acompte',\n },\n asset: {\n title: 'cet avoir',\n subTitle: 'Avoir',\n },\n remainder: {\n title: 'cette facture',\n subTitle: 'Facture',\n },\n default: {\n title: 'ce document',\n subTitle: 'Document',\n },\n },\n },\n en: {\n inputLists: {\n headers: {\n termsOfPayment: [\n 'On delivery',\n 'On order',\n 'Upon receipt of invoice',\n 'Due within 14 days',\n 'Due within 30 days',\n '30 days upon receipt of invoice',\n '45 days upon receipt of invoice',\n '60 days upon receipt of invoice',\n ],\n accountingCategories: [\n { id: AccountingCategoryId.DELIVERY_OF_GOOD, label: 'Delivery of goods' },\n { id: AccountingCategoryId.SERVICE_DELIVERY, label: 'Services delivery' },\n { id: AccountingCategoryId.GOOD_AND_SERVICE, label: 'Services and goods delivery' },\n ],\n },\n options: {\n penalties: ['Not applicable', '3 times the legal rate', 'ECB key rate + 10 points'],\n discount: ['Not applicable', 'No discount for early payment'],\n vatMention: [\n 'Not affected',\n 'Not applicable',\n 'VAT not applicable, art. 293 B of the French General Tax Code (FGTC)',\n 'VAT not applicable - Exports outside the EU - Art. 259-1 of the French General Tax Code (FGTC)',\n 'Not subject to VAT according to article 261C of the French General Tax Code (FGTC)',\n 'Article 261D of the French General Tax Code (FGTC)',\n 'VAT exemption, article 283-2 of the French General Tax Code (FGTC)',\n 'VAT exemption: Article 262 ter I of the French General Tax Code (FGTC)',\n 'VAT notice 261.4.4 1 of the French General Tax Code (FGTC)',\n 'Specific regime - Second-hand goods - article 297 A of the French General Tax Code (FGTC) and Community Directive 2006/112/EC',\n 'Specific regime - Works of art - article 297 A of the French General Tax Code (FGTC) and Community Directive 2006/112/EC',\n 'Specific regime – Collectibles and antiques - article 297 A of the French General Tax Code (FGTC) and Community Directive 2006/112/EC',\n 'Specific regime - Travel agencies - article 297 A of the French General Tax Code (FGTC) and Community Directive 2006/112/EC',\n 'Invoice subject to VAT reverse charge system',\n ],\n recoveryCost: ['Not applicable', '40€'],\n paymentType: ['Credit card', 'Check', 'Cash', 'Direct debit', 'Bank transfer'],\n },\n },\n template: {\n common: {\n headers: {\n title: 'Title',\n emissionDate: 'Invoice date',\n accountingCategory: {\n title: 'Transaction type',\n choices: [\n { id: AccountingCategoryId.DELIVERY_OF_GOOD, label: 'Supply of goods' },\n { id: AccountingCategoryId.SERVICE_DELIVERY, label: 'Services provision' },\n { id: AccountingCategoryId.GOOD_AND_SERVICE, label: 'Services provision and supply of goods' },\n ],\n },\n },\n footer: {\n capital: 'with capital of',\n siren: 'registered under SIREN',\n vatCode: 'VAT number',\n marginVat: 'VAT margin scheme',\n legalVatMention: 'ART 297-A of the FGTC or directive 2006-212 EC',\n shouldPayTaxAfterDebit: 'Option to pay tax on debits',\n penalties: 'Late fees',\n discount: 'discount',\n recoveryCosts: 'flat-rate delay compensation',\n generate: 'Created by',\n },\n options: {\n vatMention: 'VAT mention',\n paymentType: 'payment type',\n bank: 'BANK',\n approval: 'Agreed and signed',\n comment: 'Comment',\n },\n table: {\n headers: {\n product: 'Product',\n quantity: 'Quantity',\n unitPrice: 'Excl. tax unit price',\n unitPriceWithoutVat: 'Unit price',\n discount: 'Discount',\n vat: 'VAT',\n amount: 'Amount excl. tax',\n amountWithoutVat: 'Amount',\n base: 'Base',\n rate: 'Rate',\n vatAmount: 'VAT amount',\n recap: 'Summary',\n },\n lines: {\n totalHt: 'Amount excl. tax',\n vat: 'VAT',\n totalTTC: 'Amount incl. tax',\n totalWhitoutVat: 'Amount',\n deposit: 'Deposit',\n remainderToPay: 'Remainder to pay',\n netToPay: 'Net to pay',\n },\n },\n },\n invoice: {\n headers: {\n title: 'Invoice',\n dueDate: 'Due date',\n termsOfPayment: 'Deadline for payment',\n },\n },\n estimate: {\n headers: {\n title: 'Quotation',\n dueDate: 'Valid until',\n termsOfPayment: 'Term of payment',\n },\n },\n orderForm: {\n headers: {\n title: 'Order form',\n dueDate: 'Valid until',\n termsOfPayment: 'Term of payment',\n },\n },\n deposit: {\n headers: {\n title: 'Deposit invoice',\n expirationDate: 'expiry date',\n termsOfPayment: 'Deadline for payment',\n },\n },\n asset: {\n headers: {\n title: 'Credit note',\n dueDate: 'Due date',\n termsOfPayment: 'Deadline for payment',\n },\n },\n remainder: {\n headers: {\n title: 'Balance invoice',\n dueDate: 'Due date',\n termsOfPayment: 'Deadline for payment',\n },\n },\n draft: {\n headers: {\n title: 'Draft',\n dueDate: 'Due date',\n termsOfPayment: 'Deadline for payment',\n },\n },\n },\n mail: {\n common: {\n dueDate: 'Due date',\n generate: 'Created by',\n displayDocument: 'Display document',\n totalHt: 'Total excl. tax',\n totalVat: 'Total VAT',\n totalTtc: 'Total incl. tax',\n send: 'send you',\n },\n invoice: {\n title: 'this invoice',\n subTitle: 'Invoice',\n },\n estimate: {\n title: 'this estimate',\n subTitle: 'Estimate',\n },\n orderForm: {\n title: 'this order form',\n subTitle: 'Order form',\n },\n deposit: {\n title: 'this deposit',\n subTitle: 'Deposit',\n },\n asset: {\n title: 'this asset',\n subTitle: 'Asset',\n },\n remainder: {\n title: 'this invoice',\n subTitle: 'Invoice',\n },\n default: {\n title: 'this document',\n subTitle: 'Document',\n },\n },\n },\n};\n\nconst internationalizationMatching: { [key: string]: { fr: string; en: string }[] } = {\n penalties: [\n { fr: 'Non applicable', en: 'Not applicable' },\n { fr: '3 fois le taux légal', en: '3 times the legal rate' },\n { fr: 'Taux directeur de la BCE + 10 points', en: 'ECB key rate + 10 points' },\n ],\n discount: [\n { fr: 'Non applicable', en: 'Not applicable' },\n { fr: 'Aucun escompte en cas de paiement anticipé', en: 'No discount for early payment' },\n ],\n recoveryCost: [\n { fr: 'Non applicable', en: 'Not applicable' },\n { fr: '40€', en: '40€' },\n ],\n paymentType: [\n { fr: 'Carte bancaire', en: 'Credit card' },\n { fr: 'Chèque', en: 'Check' },\n { fr: 'Espèces', en: 'Cash' },\n { fr: 'Prélèvement', en: 'Direct debit' },\n { fr: 'Virement bancaire', en: 'Bank transfer' },\n ],\n vatMention: [\n { fr: 'TVA: Non concerné', en: 'VAT: Not affected' },\n { fr: 'TVA: Non applicable', en: 'VAT: Not applicable' },\n {\n fr: 'TVA non applicable, art. 293 B du CGI',\n en: 'VAT not applicable, art. 293 B of the French General Tax Code (FGTC)',\n },\n {\n fr: 'TVA non applicable - Exportation hors UE - Art. 259-1 du CGI',\n en: 'VAT not applicable - Exports outside the EU - Art. 259-1 of the French General Tax Code (FGTC)',\n },\n {\n fr: \"Non soumis à TVA selon l'article 261C du CGI\",\n en: 'Not subject to VAT according to article 261C of the French General Tax Code (FGTC)',\n },\n { fr: 'Article 261 D du code général des impôts (CGI)', en: 'Article 261D of the French General Tax Code (FGTC)' },\n {\n fr: 'Exonération de TVA, article 283-2 du Code général des impôts',\n en: 'VAT exemption, article 283-2 of the French General Tax Code (FGTC)',\n },\n {\n fr: 'Exonération de la TVA : Article 262 ter I du CGI',\n en: 'VAT exemption: Article 262 ter I of the French General Tax Code (FGTC)',\n },\n { fr: 'Mention de TVA 261.4.4 1 du CGI', en: 'VAT notice 261.4.4 1 of the French General Tax Code (FGTC)' },\n {\n fr: \"Régime particulier – Biens d'occasion - article 297 A du CGI et directive communautaire 2006/112/CE\",\n en: 'Specific regime - Second-hand goods - article 297 A of the French General Tax Code (FGTC) and Community Directive 2006/112/EC',\n },\n {\n fr: \"Régime particulier – Objets d'art - article 297 A du CGI et directive communautaire 2006/112/CE\",\n en: 'Specific regime - Works of art - article 297 A of the French General Tax Code (FGTC) and Community Directive 2006/112/EC',\n },\n {\n fr: \"Régime particulier – Objets de collection ou d'antiquité - article 297 A du CGI et directive communautaire 2006/112/CE\",\n en: 'Specific regime – Collectibles and antiques - article 297 A of the French General Tax Code (FGTC) and Community Directive 2006/112/EC',\n },\n {\n fr: 'Régime particulier – Agences de voyage - article 297 A du CGI et directive communautaire 2006/112/CE',\n en: 'Specific regime - Travel agencies - article 297 A of the French General Tax Code (FGTC) and Community Directive 2006/112/EC',\n },\n {\n fr: 'Facture soumise au régime de l’auto-liquidation de la TVA',\n en: 'Invoice subject to VAT reverse charge system',\n },\n ],\n termsOfPayment: [\n {\n fr: 'À la livraison',\n en: 'On delivery',\n },\n {\n fr: 'À la command',\n en: 'On order',\n },\n {\n fr: 'À réception de la facture',\n en: 'Upon receipt of invoice',\n },\n {\n fr: 'Exigible sous 14 jours',\n en: 'Due within 14 days',\n },\n {\n fr: 'Exigible sous 30 jours',\n en: 'Due within 30 days',\n },\n {\n fr: '30 jours à réception de la facture',\n en: '30 days upon receipt of invoice',\n },\n {\n fr: '45 jours à réception de la facture',\n en: '45 days upon receipt of invoice',\n },\n {\n fr: '60 jours à réception de la facture',\n en: '60 days upon receipt of invoice',\n },\n ],\n accountingCategory: [\n {\n fr: 'Livraison de biens',\n en: 'Supply of goods',\n },\n {\n fr: 'Prestation de services',\n en: 'Services provision',\n },\n {\n fr: 'Prestation de services et livraison de biens',\n en: 'Services provision and supply of goods',\n },\n ],\n unit: [\n { fr: 'art', en: 'art' },\n { fr: 'h', en: 'h' },\n { fr: 'j', en: 'd' },\n { fr: 'Kg', en: 'kg' },\n { fr: 'l', en: 'l' },\n { fr: 'km', en: 'km' },\n { fr: 'demi j', en: 'half d' },\n { fr: 'an', en: 'year' },\n { fr: 'sem', en: 'week' },\n { fr: 'mois', en: 'month' },\n { fr: 'trim', en: 'quart' },\n { fr: 'p', en: 'p' },\n { fr: 'f', en: 'f' },\n { fr: 'm2', en: 'm2' },\n { fr: 'm3', en: 'm3' },\n { fr: 'm', en: 'm' },\n { fr: 'abo', en: 'sub' },\n { fr: 'nuit', en: 'night' },\n { fr: 't', en: 't' },\n { fr: 'ha', en: 'ha' },\n { fr: 'min', en: 'min' },\n { fr: 'g', en: 'g' },\n ],\n};\n\nexport const internationalizationConsistency = (\n language: InvoiceLanguage,\n value: string,\n key: InternationalizationConsistencyKey,\n): string | undefined => {\n const keyObjectToMacht = internationalizationMatching[key];\n return language === InvoiceLanguage.FR\n ? keyObjectToMacht.find((obj) => obj.fr === value)?.fr\n : keyObjectToMacht.find((obj) => obj.fr === value)?.en;\n};\n"]}
|
|
1
|
+
{"version":3,"file":"choices.js","sourceRoot":"","sources":["../../../../ts/utils/commercialManagement/internationalization/choices.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EACL,oBAAoB,EACpB,sBAAsB,EACtB,uBAAuB,EACvB,uBAAuB,EACvB,0BAA0B,EAC1B,wBAAwB,EACxB,eAAe,GAChB,MAAM,6CAA6C,CAAC;AAarD,MAAM,CAAC,MAAM,2BAA2B,GAAoC;IAC1E,EAAE,EAAE;QACF,UAAU,EAAE;YACV,OAAO,EAAE;gBACP,cAAc,EAAE;oBACd,gBAAgB;oBAChB,eAAe;oBACf,2BAA2B;oBAC3B,wBAAwB;oBACxB,wBAAwB;oBACxB,oCAAoC;oBACpC,oCAAoC;oBACpC,oCAAoC;iBACrC;gBACD,oBAAoB,EAAE;oBACpB,EAAE,EAAE,EAAE,o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AAI,EAAE;QACtB,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE;QACxB,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE;KACrB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAC7C,QAAyB,EACzB,KAAa,EACb,GAAuC,EACnB,EAAE;IACtB,MAAM,gBAAgB,GAAG,4BAA4B,CAAC,GAAG,CAAC,CAAC;IAC3D,OAAO,QAAQ,KAAK,eAAe,CAAC,EAAE;QACpC,CAAC,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,EAAE,KAAK,KAAK,CAAC,EAAE,EAAE;QACtD,CAAC,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,EAAE,KAAK,KAAK,CAAC,EAAE,EAAE,CAAC;AAC3D,CAAC,CAAC","sourcesContent":["import { TermOfPaymentList } from '#types/Enum/EstimateInvoice.js';\nimport {\n AccountingCategoryId,\n AccountingCategoryList,\n CommercialDiscountsList,\n CommercialPenaltiesList,\n CommercialRecoveryCostList,\n CommercialVatMentionList,\n InvoiceLanguage,\n} from '../../../types/Enum/CommercialManagement.js';\nimport { InternationalizationChoicesType } from './type.js';\n\ntype InternationalizationConsistencyKey =\n | 'penalties'\n | 'discount'\n | 'vatMention'\n | 'recoveryCost'\n | 'paymentType'\n | 'termsOfPayment'\n | 'accountingCategory'\n | 'unit';\n\nexport const internationalizationChoices: InternationalizationChoicesType = {\n fr: {\n inputLists: {\n headers: {\n termsOfPayment: [\n 'À la livraison',\n 'À la commande',\n 'À réception de la facture',\n 'Exigible sous 14 jours',\n 'Exigible sous 30 jours',\n '30 jours à réception de la facture',\n '45 jours à réception de la facture',\n '60 jours à réception de la facture',\n ],\n accountingCategories: [\n { id: AccountingCategoryId.DELIVERY_OF_GOOD, label: 'Livraison de biens' },\n { id: AccountingCategoryId.SERVICE_DELIVERY, label: 'Prestation de services' },\n { id: AccountingCategoryId.GOOD_AND_SERVICE, label: 'Prestation de services et livraison de biens' },\n ],\n },\n options: {\n penalties: CommercialPenaltiesList,\n discount: CommercialDiscountsList,\n vatMention: CommercialVatMentionList.map((mention) => mention.value),\n recoveryCost: CommercialRecoveryCostList,\n paymentType: ['Carte bancaire', 'Chèque', 'Espèces', 'Prélèvement', 'Virement bancaire'],\n },\n },\n template: {\n common: {\n headers: {\n title: 'Titre',\n emissionDate: \"Date d'émission\",\n accountingCategory: {\n title: \"Catégorie de l'opération\",\n choices: [\n { id: AccountingCategoryId.DELIVERY_OF_GOOD, label: 'Livraison de biens' },\n { id: AccountingCategoryId.SERVICE_DELIVERY, label: 'Prestation de services' },\n { id: AccountingCategoryId.GOOD_AND_SERVICE, label: 'Prestation de services et livraison de biens' },\n ],\n },\n },\n footer: {\n capital: 'au capital de',\n siren: 'immatriculée sous le SIREN',\n vatCode: 'N° TVA',\n marginVat: 'Régime TVA sur marge',\n legalVatMention: 'ART 297-A du CGI ou directive 2006-212 CE',\n shouldPayTaxAfterDebit: \"Option pour le paiement de la taxe d'après les débits\",\n penalties: 'Pénalités en cas de retard',\n discount: 'Escompte',\n recoveryCosts: 'Indemnités forfaitaire en cas de retard',\n generate: 'Généré par',\n },\n options: {\n vatMention: 'Mention TVA',\n paymentType: 'Mode de paiement',\n bank: 'BANQUE',\n approval: 'Bon pour accord',\n comment: 'Commentaire',\n },\n table: {\n headers: {\n product: 'Article',\n quantity: 'Quantité',\n unitPrice: 'P.U HT',\n unitPriceWithoutVat: 'P.U',\n discount: 'Remise',\n vat: 'TVA',\n amount: 'Montant HT',\n amountWithoutVat: 'Montant',\n base: 'Base',\n rate: 'Taux',\n vatAmount: 'Montant TVA',\n recap: 'Récapitulatif',\n },\n lines: {\n totalHt: 'Total HT',\n vat: 'TVA',\n totalTTC: 'Total TTC',\n totalWhitoutVat: 'Total',\n deposit: 'Acompte',\n remainderToPay: 'Reste à payer',\n netToPay: 'Net à payer',\n },\n },\n },\n invoice: {\n headers: {\n title: 'Facture',\n dueDate: \"Date d'échéance\",\n termsOfPayment: 'Date limite de règlement',\n },\n },\n estimate: {\n headers: {\n title: 'Devis',\n dueDate: \"Valide jusqu'au\",\n termsOfPayment: 'Conditions de règlement',\n },\n },\n orderForm: {\n headers: {\n title: 'Bon de commande',\n dueDate: \"Date d'échéance\",\n termsOfPayment: 'Conditions de règlement',\n },\n },\n deposit: {\n headers: {\n title: \"Facture d'acompte\",\n expirationDate: \"Date d'expiration\",\n termsOfPayment: 'Date limite de règlement',\n },\n },\n asset: {\n headers: {\n title: 'Avoir',\n dueDate: \"Date d'échéance\",\n termsOfPayment: 'Date limite de règlement',\n },\n },\n remainder: {\n headers: {\n title: 'Facture de solde',\n dueDate: \"Date d'échéance\",\n termsOfPayment: 'Date limite de règlement',\n },\n },\n draft: {\n headers: {\n title: 'Brouillon',\n dueDate: \"Date d'échéance\",\n termsOfPayment: 'Date limite de règlement',\n },\n },\n },\n mail: {\n common: {\n dueDate: 'Échéance',\n generate: 'Généré par',\n displayDocument: 'Afficher le document',\n totalHt: 'Total HT',\n totalVat: 'Total TVA',\n totalTtc: 'Total TTC',\n send: 'vous adresse',\n },\n invoice: {\n title: 'cette facture',\n subTitle: 'Facture',\n },\n estimate: {\n title: 'ce devis',\n subTitle: 'Devis',\n },\n orderForm: {\n title: 'ce bon de commande',\n subTitle: 'Bon de commande',\n },\n deposit: {\n title: 'cet acompte',\n subTitle: 'Acompte',\n },\n asset: {\n title: 'cet avoir',\n subTitle: 'Avoir',\n },\n remainder: {\n title: 'cette facture',\n subTitle: 'Facture',\n },\n default: {\n title: 'ce document',\n subTitle: 'Document',\n },\n },\n },\n en: {\n inputLists: {\n headers: {\n termsOfPayment: [\n 'On delivery',\n 'On order',\n 'Upon receipt of invoice',\n 'Due within 14 days',\n 'Due within 30 days',\n '30 days upon receipt of invoice',\n '45 days upon receipt of invoice',\n '60 days upon receipt of invoice',\n ],\n accountingCategories: [\n { id: AccountingCategoryId.DELIVERY_OF_GOOD, label: 'Delivery of goods' },\n { id: AccountingCategoryId.SERVICE_DELIVERY, label: 'Services delivery' },\n { id: AccountingCategoryId.GOOD_AND_SERVICE, label: 'Services and goods delivery' },\n ],\n },\n options: {\n penalties: ['Not applicable', '3 times the legal rate', 'ECB key rate + 10 points'],\n discount: ['Not applicable', 'No discount for early payment'],\n vatMention: [\n 'Not affected',\n 'Not applicable',\n 'VAT not applicable, art. 293 B of the French General Tax Code (FGTC)',\n 'VAT not applicable - Exports outside the EU - Art. 259-1 of the French General Tax Code (FGTC)',\n 'Not subject to VAT according to article 261C of the French General Tax Code (FGTC)',\n 'Article 261D of the French General Tax Code (FGTC)',\n 'VAT exemption, article 283-2 of the French General Tax Code (FGTC)',\n 'VAT exemption: Article 262 ter I of the French General Tax Code (FGTC)',\n 'VAT notice 261.4.4 1 of the French General Tax Code (FGTC)',\n 'Specific regime - Second-hand goods - article 297 A of the French General Tax Code (FGTC) and Community Directive 2006/112/EC',\n 'Specific regime - Works of art - article 297 A of the French General Tax Code (FGTC) and Community Directive 2006/112/EC',\n 'Specific regime – Collectibles and antiques - article 297 A of the French General Tax Code (FGTC) and Community Directive 2006/112/EC',\n 'Specific regime - Travel agencies - article 297 A of the French General Tax Code (FGTC) and Community Directive 2006/112/EC',\n 'Invoice subject to VAT reverse charge system',\n ],\n recoveryCost: ['Not applicable', '40€'],\n paymentType: ['Credit card', 'Check', 'Cash', 'Direct debit', 'Bank transfer'],\n },\n },\n template: {\n common: {\n headers: {\n title: 'Title',\n emissionDate: 'Invoice date',\n accountingCategory: {\n title: 'Transaction type',\n choices: [\n { id: AccountingCategoryId.DELIVERY_OF_GOOD, label: 'Supply of goods' },\n { id: AccountingCategoryId.SERVICE_DELIVERY, label: 'Services provision' },\n { id: AccountingCategoryId.GOOD_AND_SERVICE, label: 'Services provision and supply of goods' },\n ],\n },\n },\n footer: {\n capital: 'with capital of',\n siren: 'registered under SIREN',\n vatCode: 'VAT number',\n marginVat: 'VAT margin scheme',\n legalVatMention: 'ART 297-A of the FGTC or directive 2006-212 EC',\n shouldPayTaxAfterDebit: 'Option to pay tax on debits',\n penalties: 'Late fees',\n discount: 'discount',\n recoveryCosts: 'flat-rate delay compensation',\n generate: 'Created by',\n },\n options: {\n vatMention: 'VAT mention',\n paymentType: 'payment type',\n bank: 'BANK',\n approval: 'Agreed and signed',\n comment: 'Comment',\n },\n table: {\n headers: {\n product: 'Product',\n quantity: 'Quantity',\n unitPrice: 'Excl. tax unit price',\n unitPriceWithoutVat: 'Unit price',\n discount: 'Discount',\n vat: 'VAT',\n amount: 'Amount excl. tax',\n amountWithoutVat: 'Amount',\n base: 'Base',\n rate: 'Rate',\n vatAmount: 'VAT amount',\n recap: 'Summary',\n },\n lines: {\n totalHt: 'Amount excl. tax',\n vat: 'VAT',\n totalTTC: 'Amount incl. tax',\n totalWhitoutVat: 'Amount',\n deposit: 'Deposit',\n remainderToPay: 'Remainder to pay',\n netToPay: 'Net to pay',\n },\n },\n },\n invoice: {\n headers: {\n title: 'Invoice',\n dueDate: 'Due date',\n termsOfPayment: 'Deadline for payment',\n },\n },\n estimate: {\n headers: {\n title: 'Quotation',\n dueDate: 'Valid until',\n termsOfPayment: 'Term of payment',\n },\n },\n orderForm: {\n headers: {\n title: 'Order form',\n dueDate: 'Valid until',\n termsOfPayment: 'Term of payment',\n },\n },\n deposit: {\n headers: {\n title: 'Deposit invoice',\n expirationDate: 'expiry date',\n termsOfPayment: 'Deadline for payment',\n },\n },\n asset: {\n headers: {\n title: 'Credit note',\n dueDate: 'Due date',\n termsOfPayment: 'Deadline for payment',\n },\n },\n remainder: {\n headers: {\n title: 'Balance invoice',\n dueDate: 'Due date',\n termsOfPayment: 'Deadline for payment',\n },\n },\n draft: {\n headers: {\n title: 'Draft',\n dueDate: 'Due date',\n termsOfPayment: 'Deadline for payment',\n },\n },\n },\n mail: {\n common: {\n dueDate: 'Due date',\n generate: 'Created by',\n displayDocument: 'Display document',\n totalHt: 'Total excl. tax',\n totalVat: 'Total VAT',\n totalTtc: 'Total incl. tax',\n send: 'send you',\n },\n invoice: {\n title: 'this invoice',\n subTitle: 'Invoice',\n },\n estimate: {\n title: 'this estimate',\n subTitle: 'Estimate',\n },\n orderForm: {\n title: 'this order form',\n subTitle: 'Order form',\n },\n deposit: {\n title: 'this deposit',\n subTitle: 'Deposit',\n },\n asset: {\n title: 'this asset',\n subTitle: 'Asset',\n },\n remainder: {\n title: 'this invoice',\n subTitle: 'Invoice',\n },\n default: {\n title: 'this document',\n subTitle: 'Document',\n },\n },\n },\n};\n\nconst internationalizationMatching: { [key: string]: { fr: string; en: string }[] } = {\n penalties: [\n { fr: CommercialPenaltiesList[0], en: '3 times the legal rate' },\n { fr: CommercialPenaltiesList[1], en: 'Not applicable' },\n { fr: CommercialPenaltiesList[2], en: 'ECB key rate + 10 points' },\n ],\n discount: [\n { fr: CommercialDiscountsList[0], en: 'No discount for early payment' },\n { fr: CommercialDiscountsList[1], en: 'Not applicable' },\n ],\n recoveryCost: [\n { fr: CommercialRecoveryCostList[0], en: '40€' },\n { fr: CommercialRecoveryCostList[1], en: 'Not applicable' },\n ],\n paymentType: [\n { fr: 'Carte bancaire', en: 'Credit card' },\n { fr: 'Chèque', en: 'Check' },\n { fr: 'Espèces', en: 'Cash' },\n { fr: 'Prélèvement', en: 'Direct debit' },\n { fr: 'Virement bancaire', en: 'Bank transfer' },\n ],\n vatMention: [\n { fr: CommercialVatMentionList[0].value, en: 'VAT: Not affected' },\n {\n fr: CommercialVatMentionList[1].value,\n en: 'VAT not applicable, art. 293 B of the French General Tax Code (FGTC)',\n },\n {\n fr: CommercialVatMentionList[2].value,\n en: 'VAT not applicable - Exports outside the EU - Art. 259-1 of the French General Tax Code (FGTC)',\n },\n {\n fr: CommercialVatMentionList[3].value,\n en: 'Invoice subject to VAT reverse charge system',\n },\n {\n fr: CommercialVatMentionList[4].value,\n en: 'Not subject to VAT according to article 261C of the French General Tax Code (FGTC)',\n },\n { fr: CommercialVatMentionList[5].value, en: 'Article 261D of the French General Tax Code (FGTC)' },\n {\n fr: CommercialVatMentionList[6].value,\n en: 'VAT exemption, article 283-2 of the French General Tax Code (FGTC)',\n },\n {\n fr: CommercialVatMentionList[7].value,\n en: 'VAT exemption: Article 262 ter I of the French General Tax Code (FGTC)',\n },\n { fr: CommercialVatMentionList[8].value, en: 'VAT notice 261.4.4 1 of the French General Tax Code (FGTC)' },\n {\n fr: CommercialVatMentionList[9].value,\n en: 'Specific regime - Second-hand goods - article 297 A of the French General Tax Code (FGTC) and Community Directive 2006/112/EC',\n },\n {\n fr: CommercialVatMentionList[10].value,\n en: 'Specific regime - Works of art - article 297 A of the French General Tax Code (FGTC) and Community Directive 2006/112/EC',\n },\n {\n fr: CommercialVatMentionList[11].value,\n en: 'Specific regime – Collectibles and antiques - article 297 A of the French General Tax Code (FGTC) and Community Directive 2006/112/EC',\n },\n {\n fr: CommercialVatMentionList[12].value,\n en: 'Specific regime - Travel agencies - article 297 A of the French General Tax Code (FGTC) and Community Directive 2006/112/EC',\n },\n ],\n termsOfPayment: [\n {\n fr: TermOfPaymentList[0].label,\n en: 'On delivery',\n },\n {\n fr: TermOfPaymentList[1].label,\n en: 'On order',\n },\n {\n fr: TermOfPaymentList[2].label,\n en: 'Upon receipt of invoice',\n },\n {\n fr: TermOfPaymentList[3].label,\n en: 'Due within 14 days',\n },\n {\n fr: TermOfPaymentList[4].label,\n en: 'Due within 30 days',\n },\n {\n fr: TermOfPaymentList[5].label,\n en: '30 days upon receipt of invoice',\n },\n {\n fr: TermOfPaymentList[6].label,\n en: '45 days upon receipt of invoice',\n },\n {\n fr: TermOfPaymentList[7].label,\n en: '60 days upon receipt of invoice',\n },\n ],\n accountingCategory: [\n {\n fr: AccountingCategoryList[0].label,\n en: 'Supply of goods',\n },\n {\n fr: AccountingCategoryList[1].label,\n en: 'Services provision',\n },\n {\n fr: AccountingCategoryList[2].label,\n en: 'Services provision and supply of goods',\n },\n ],\n unit: [\n { fr: 'art', en: 'art' },\n { fr: 'h', en: 'h' },\n { fr: 'j', en: 'd' },\n { fr: 'Kg', en: 'kg' },\n { fr: 'l', en: 'l' },\n { fr: 'km', en: 'km' },\n { fr: 'demi j', en: 'half d' },\n { fr: 'an', en: 'year' },\n { fr: 'sem', en: 'week' },\n { fr: 'mois', en: 'month' },\n { fr: 'trim', en: 'quart' },\n { fr: 'p', en: 'p' },\n { fr: 'f', en: 'f' },\n { fr: 'm2', en: 'm2' },\n { fr: 'm3', en: 'm3' },\n { fr: 'm', en: 'm' },\n { fr: 'abo', en: 'sub' },\n { fr: 'nuit', en: 'night' },\n { fr: 't', en: 't' },\n { fr: 'ha', en: 'ha' },\n { fr: 'min', en: 'min' },\n { fr: 'g', en: 'g' },\n ],\n};\n\nexport const internationalizationConsistency = (\n language: InvoiceLanguage,\n value: string,\n key: InternationalizationConsistencyKey,\n): string | undefined => {\n const keyObjectToMacht = internationalizationMatching[key];\n return language === InvoiceLanguage.FR\n ? keyObjectToMacht.find((obj) => obj.fr === value)?.fr\n : keyObjectToMacht.find((obj) => obj.fr === value)?.en;\n};\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silexpert/core",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.34",
|
|
4
4
|
"description": "Silex Core perform HTTP Request and object binding. Silex core helps developers to retrieve and return formatted object",
|
|
5
5
|
"homepage": "https://gitlab.compta-clementine.fr/dev/silex-api",
|
|
6
6
|
"type": "module",
|
|
@@ -75,6 +75,7 @@ export enum AccountingCategoryId {
|
|
|
75
75
|
GOOD_AND_SERVICE = 3,
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
+
// WARN: L'ordre des éléments de la liste TermOfPaymentList a son importance (pour la gestion de l'internationnalisation)
|
|
78
79
|
export const AccountingCategoryList: Array<{ label: string; id: AccountingCategoryId }> = [
|
|
79
80
|
{
|
|
80
81
|
label: 'Livraison de biens',
|
|
@@ -227,29 +228,44 @@ export const DefaultEmailTemplateList: Array<Omit<ISaleEmail, 'idSociety'>> = [
|
|
|
227
228
|
},
|
|
228
229
|
];
|
|
229
230
|
|
|
230
|
-
|
|
231
|
+
/**
|
|
232
|
+
* WARN: L'ordre de ces listes est important car il correspond à l'ordre d'affichage dans l'interface et est utilisé pour faire le lien avec les options d'internationalisationChoices dans la génération des documents commerciaux
|
|
233
|
+
*/
|
|
234
|
+
export const CommercialDiscountsList: string[] = ['Aucun escompte en cas de paiement anticipé', 'Non applicable'];
|
|
231
235
|
|
|
232
236
|
export const CommercialPenaltiesList: string[] = [
|
|
233
|
-
'Non applicable',
|
|
234
237
|
'3 fois le taux légal',
|
|
238
|
+
'Non applicable',
|
|
235
239
|
'Taux directeur de la BCE + 10 points',
|
|
236
240
|
];
|
|
237
241
|
|
|
238
|
-
export const CommercialVatMentionList: string
|
|
239
|
-
'TVA: Non concerné',
|
|
240
|
-
'TVA:
|
|
241
|
-
'TVA non applicable
|
|
242
|
-
'TVA
|
|
243
|
-
|
|
244
|
-
'
|
|
245
|
-
'Exonération de TVA
|
|
246
|
-
'
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
242
|
+
export const CommercialVatMentionList: Array<{ text: string; value: string }> = [
|
|
243
|
+
{ text: 'Soumis à TVA', value: 'TVA: Non concerné' },
|
|
244
|
+
{ text: 'Pas de TVA', value: 'TVA non applicable, art. 293 B du CGI' },
|
|
245
|
+
{ text: 'Exports hors UE', value: 'TVA non applicable - Exportation hors UE - Art. 259-1 du CGI' },
|
|
246
|
+
{ text: 'TVA exonérée (intérêt général)', value: "Non soumis à TVA selon l'article 261C du CGI" },
|
|
247
|
+
{ text: 'TVA exonérée (location)', value: 'Article 261 D du CGI' },
|
|
248
|
+
{ text: 'TVA autoliquidée (prestataire étranger)', value: 'Exonération de TVA, article 283-2 du CGI' },
|
|
249
|
+
{ text: 'Vente UE sans TVA', value: 'Exonération de la TVA : Article 262 ter I du CGI' },
|
|
250
|
+
{ text: 'TVA exonérée (formation)', value: 'Mention de TVA 261.4.4 1 du CGI' },
|
|
251
|
+
{
|
|
252
|
+
text: 'TVA sur marge (occasion)',
|
|
253
|
+
value: "Régime particulier – Biens d'occasion - article 297 A du CGI et directive communautaire 2006/112/CE",
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
text: 'TVA sur marge (art)',
|
|
257
|
+
value: "Régime particulier – Objets d'art - article 297 A du CGI et directive communautaire 2006/112/CE",
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
text: 'TVA sur marge (collection)',
|
|
261
|
+
value:
|
|
262
|
+
"Régime particulier – Objets de collection ou d'antiquité - article 297 A du CGI et directive communautaire 2006/112/CE",
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
text: 'TVA - Forfait voyage',
|
|
266
|
+
value: 'Régime particulier – Agences de voyage - article 297 A du CGI et directive communautaire 2006/112/CE',
|
|
267
|
+
},
|
|
268
|
+
{ text: 'TVA autoliquidée (sous-traitant)', value: 'Facture soumise au régime de l’auto-liquidation de la TVA' },
|
|
253
269
|
];
|
|
254
270
|
|
|
255
|
-
export const CommercialRecoveryCostList = ['
|
|
271
|
+
export const CommercialRecoveryCostList = ['40€', 'Non applicable'];
|
|
@@ -30,7 +30,7 @@ export const EstimateInvoiceTypeList: Array<{ id: EstimateInvoiceType; label: st
|
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
32
|
id: EstimateInvoiceType.ACOMPTE,
|
|
33
|
-
label:
|
|
33
|
+
label: "Facture d'acompte",
|
|
34
34
|
},
|
|
35
35
|
];
|
|
36
36
|
|
|
@@ -45,6 +45,7 @@ export enum TermOfPayment {
|
|
|
45
45
|
DUE_60_DAYS_AFTER_INVOICE = 8,
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
+
// WARN: L'ordre des éléments de la liste TermOfPaymentList a son importance (pour la gestion de l'internationnalisation)
|
|
48
49
|
export const TermOfPaymentList: Array<{ id: TermOfPayment; label: string }> = [
|
|
49
50
|
{ id: TermOfPayment.ON_DELIVERY, label: 'À la livraison' },
|
|
50
51
|
{ id: TermOfPayment.ON_ORDER, label: 'À la commande' },
|
|
@@ -739,4 +739,123 @@ export const KilometricAllowanceScale: KilometricAllowanceScaleType = {
|
|
|
739
739
|
},
|
|
740
740
|
},
|
|
741
741
|
},
|
|
742
|
+
2027: {
|
|
743
|
+
1: {
|
|
744
|
+
power: {
|
|
745
|
+
1: {
|
|
746
|
+
km: [
|
|
747
|
+
{ maxDistance: 5000, ratio: 0.529, fixAmount: 0 },
|
|
748
|
+
{ maxDistance: 20000, ratio: 0.316, fixAmount: 1065 },
|
|
749
|
+
{ maxDistance: 0, ratio: 0.37, fixAmount: 0 },
|
|
750
|
+
],
|
|
751
|
+
},
|
|
752
|
+
2: {
|
|
753
|
+
km: [
|
|
754
|
+
{ maxDistance: 5000, ratio: 0.529, fixAmount: 0 },
|
|
755
|
+
{ maxDistance: 20000, ratio: 0.316, fixAmount: 1065 },
|
|
756
|
+
{ maxDistance: 0, ratio: 0.37, fixAmount: 0 },
|
|
757
|
+
],
|
|
758
|
+
},
|
|
759
|
+
3: {
|
|
760
|
+
km: [
|
|
761
|
+
{ maxDistance: 5000, ratio: 0.529, fixAmount: 0 },
|
|
762
|
+
{ maxDistance: 20000, ratio: 0.316, fixAmount: 1065 },
|
|
763
|
+
{ maxDistance: 0, ratio: 0.37, fixAmount: 0 },
|
|
764
|
+
],
|
|
765
|
+
},
|
|
766
|
+
4: {
|
|
767
|
+
km: [
|
|
768
|
+
{ maxDistance: 5000, ratio: 0.606, fixAmount: 0 },
|
|
769
|
+
{ maxDistance: 20000, ratio: 0.34, fixAmount: 1330 },
|
|
770
|
+
{ maxDistance: 0, ratio: 0.407, fixAmount: 0 },
|
|
771
|
+
],
|
|
772
|
+
},
|
|
773
|
+
5: {
|
|
774
|
+
km: [
|
|
775
|
+
{ maxDistance: 5000, ratio: 0.636, fixAmount: 0 },
|
|
776
|
+
{ maxDistance: 20000, ratio: 0.357, fixAmount: 1395 },
|
|
777
|
+
{ maxDistance: 0, ratio: 0.427, fixAmount: 0 },
|
|
778
|
+
],
|
|
779
|
+
},
|
|
780
|
+
6: {
|
|
781
|
+
km: [
|
|
782
|
+
{ maxDistance: 5000, ratio: 0.665, fixAmount: 0 },
|
|
783
|
+
{ maxDistance: 20000, ratio: 0.374, fixAmount: 1457 },
|
|
784
|
+
{ maxDistance: 0, ratio: 0.447, fixAmount: 0 },
|
|
785
|
+
],
|
|
786
|
+
},
|
|
787
|
+
7: {
|
|
788
|
+
km: [
|
|
789
|
+
{ maxDistance: 5000, ratio: 0.697, fixAmount: 0 },
|
|
790
|
+
{ maxDistance: 20000, ratio: 0.394, fixAmount: 1515 },
|
|
791
|
+
{ maxDistance: 0, ratio: 0.47, fixAmount: 0 },
|
|
792
|
+
],
|
|
793
|
+
},
|
|
794
|
+
},
|
|
795
|
+
},
|
|
796
|
+
2: {
|
|
797
|
+
power: {
|
|
798
|
+
1: {
|
|
799
|
+
km: [
|
|
800
|
+
{ maxDistance: 3000, ratio: 0.395, fixAmount: 0 },
|
|
801
|
+
{ maxDistance: 6000, ratio: 0.099, fixAmount: 891 },
|
|
802
|
+
{ maxDistance: 0, ratio: 0.248, fixAmount: 0 },
|
|
803
|
+
],
|
|
804
|
+
},
|
|
805
|
+
2: {
|
|
806
|
+
km: [
|
|
807
|
+
{ maxDistance: 3000, ratio: 0.395, fixAmount: 0 },
|
|
808
|
+
{ maxDistance: 6000, ratio: 0.099, fixAmount: 891 },
|
|
809
|
+
{ maxDistance: 0, ratio: 0.248, fixAmount: 0 },
|
|
810
|
+
],
|
|
811
|
+
},
|
|
812
|
+
3: {
|
|
813
|
+
km: [
|
|
814
|
+
{ maxDistance: 3000, ratio: 0.468, fixAmount: 0 },
|
|
815
|
+
{ maxDistance: 6000, ratio: 0.082, fixAmount: 1158 },
|
|
816
|
+
{ maxDistance: 0, ratio: 0.275, fixAmount: 0 },
|
|
817
|
+
],
|
|
818
|
+
},
|
|
819
|
+
4: {
|
|
820
|
+
km: [
|
|
821
|
+
{ maxDistance: 3000, ratio: 0.468, fixAmount: 0 },
|
|
822
|
+
{ maxDistance: 6000, ratio: 0.082, fixAmount: 1158 },
|
|
823
|
+
{ maxDistance: 0, ratio: 0.275, fixAmount: 0 },
|
|
824
|
+
],
|
|
825
|
+
},
|
|
826
|
+
5: {
|
|
827
|
+
km: [
|
|
828
|
+
{ maxDistance: 3000, ratio: 0.468, fixAmount: 0 },
|
|
829
|
+
{ maxDistance: 6000, ratio: 0.082, fixAmount: 1158 },
|
|
830
|
+
{ maxDistance: 0, ratio: 0.275, fixAmount: 0 },
|
|
831
|
+
],
|
|
832
|
+
},
|
|
833
|
+
6: {
|
|
834
|
+
km: [
|
|
835
|
+
{ maxDistance: 3000, ratio: 0.606, fixAmount: 0 },
|
|
836
|
+
{ maxDistance: 6000, ratio: 0.079, fixAmount: 1583 },
|
|
837
|
+
{ maxDistance: 0, ratio: 0.343, fixAmount: 0 },
|
|
838
|
+
],
|
|
839
|
+
},
|
|
840
|
+
7: {
|
|
841
|
+
km: [
|
|
842
|
+
{ maxDistance: 3000, ratio: 0.606, fixAmount: 0 },
|
|
843
|
+
{ maxDistance: 6000, ratio: 0.079, fixAmount: 1583 },
|
|
844
|
+
{ maxDistance: 0, ratio: 0.343, fixAmount: 0 },
|
|
845
|
+
],
|
|
846
|
+
},
|
|
847
|
+
},
|
|
848
|
+
},
|
|
849
|
+
3: {
|
|
850
|
+
power: {
|
|
851
|
+
1: {
|
|
852
|
+
km: [
|
|
853
|
+
{ maxDistance: 2000, ratio: 0.315, fixAmount: 0 },
|
|
854
|
+
{ maxDistance: 5000, ratio: 0.079, fixAmount: 711 },
|
|
855
|
+
{ maxDistance: 0, ratio: 0.198, fixAmount: 0 },
|
|
856
|
+
],
|
|
857
|
+
},
|
|
858
|
+
},
|
|
859
|
+
},
|
|
860
|
+
},
|
|
742
861
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IsBoolean, IsEmail, IsOptional, IsString } from 'class-validator';
|
|
2
2
|
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
|
3
|
-
import { Permissions } from '../user/Permissions.js';
|
|
4
3
|
import { ToBoolean } from '../../../../utils/transforms/boolean.transform.js';
|
|
4
|
+
import { IPermission } from '#types/Interface/models/IPermission.js';
|
|
5
5
|
|
|
6
6
|
export class CreateUserToSocietyWithPermission {
|
|
7
7
|
@ApiProperty()
|
|
@@ -23,7 +23,8 @@ export class CreateUserToSocietyWithPermission {
|
|
|
23
23
|
acceptCgv?: boolean; // not sure if needed (maybe more a front notion)
|
|
24
24
|
|
|
25
25
|
@ApiPropertyOptional()
|
|
26
|
-
permissions?: Partial<
|
|
26
|
+
permissions?: Partial<IPermission>;
|
|
27
|
+
|
|
27
28
|
@ApiPropertyOptional()
|
|
28
29
|
@IsBoolean()
|
|
29
30
|
@ToBoolean()
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { Overwrite } from '../../../../utils/index.js';
|
|
2
|
-
import { IUser } from '../../../index.js';
|
|
3
|
-
import { Permissions } from '../user/Permissions.js';
|
|
2
|
+
import { IPermission, IUser } from '../../../index.js';
|
|
4
3
|
|
|
5
4
|
export type ReadSocietyUsers = ReadSocietyUser[];
|
|
6
5
|
|
|
7
6
|
export type ReadSocietyUser = Overwrite<
|
|
8
7
|
IUser,
|
|
9
8
|
{
|
|
10
|
-
userPermissions:
|
|
9
|
+
userPermissions: IPermission;
|
|
11
10
|
isOwner?: boolean;
|
|
12
11
|
}
|
|
13
12
|
>;
|
package/ts/types/index.ts
CHANGED
|
@@ -582,7 +582,6 @@ export * from './Interface/api/user/ParamsGetAllUserWithRoles.js';
|
|
|
582
582
|
export * from './Interface/api/user/ParamsGetAllCollaborators.js';
|
|
583
583
|
export * from './Interface/api/user/CreateCoworker.js';
|
|
584
584
|
export * from './Interface/api/user/UpdateCoworker.js';
|
|
585
|
-
export * from './Interface/api/user/Permissions.js';
|
|
586
585
|
export * from './Interface/api/user/CollaboratorsByRoles.js';
|
|
587
586
|
export * from './Interface/api/account/Read.js';
|
|
588
587
|
export * from './Interface/api/balanceSheet/ReadFreelanceTurnover.js';
|