@silexpert/core 2.0.32 → 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/documentRequest/Query.d.ts +1 -0
- package/dist/types/Interface/api/documentRequest/Query.d.ts.map +1 -1
- package/dist/types/Interface/api/documentRequest/Query.js +8 -0
- package/dist/types/Interface/api/documentRequest/Query.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/dist/utils/vat/3517/century25.d.ts +0 -1
- package/dist/utils/vat/3517/century25.d.ts.map +1 -1
- package/dist/utils/vat/3517/century25.js +1 -154
- package/dist/utils/vat/3517/century25.js.map +1 -1
- package/dist/utils/vat/3517/century26.d.ts +2 -2
- package/dist/utils/vat/3517/century26.d.ts.map +1 -1
- package/dist/utils/vat/3517/century26.js +1 -1
- package/dist/utils/vat/3517/century26.js.map +1 -1
- package/dist/utils/vat/centuries.d.ts.map +1 -1
- package/dist/utils/vat/centuries.js +2 -2
- package/dist/utils/vat/centuries.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/documentRequest/Query.ts +6 -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/ts/utils/vat/3517/century25.ts +1 -159
- package/ts/utils/vat/3517/century26.ts +3 -3
- package/ts/utils/vat/centuries.ts +1 -2
- 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,EAAE,EAAE,EAAE,oBAAoB,CAAC,gBAAgB,EAAE,KAAK,EAAE,8CAA8C,EAAE;iBACrG;aACF;YACD,OAAO,EAAE;gBACP,SAAS,EAAE,CAAC,gBAAgB,EAAE,sBAAsB,EAAE,sCAAsC,CAAC;gBAC7F,QAAQ,EAAE,CAAC,gBAAgB,EAAE,4CAA4C,CAAC;gBAC1E,UAAU,EAAE;oBACV,mBAAmB;oBACnB,qBAAqB;oBACrB,uCAAuC;oBACvC,8DAA8D;oBAC9D,8CAA8C;oBAC9C,gDAAgD;oBAChD,8DAA8D;oBAC9D,kDAAkD;oBAClD,iCAAiC;oBACjC,qGAAqG;oBACrG,iGAAiG;oBACjG,wHAAwH;oBACxH,sGAAsG;oBACtG,2DAA2D;iBAC5D;gBACD,YAAY,EAAE,CAAC,gBAAgB,EAAE,KAAK,CAAC;gBACvC,WAAW,EAAE,CAAC,gBAAgB,EAAE,QAAQ,EAAE,SAAS,EAA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AAE,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 { AccountingCategoryId, InvoiceLanguage } 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: ['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,oBAAoB,CAAC,gBAAgB,EAAE,KAAK,EAAE,oBAAoB,EAAE;oBAC1E,EAAE,EAAE,EAAE,oBAAoB,CAAC,gBAAgB,EAAE,KAAK,EAAE,wBAAwB,EAAE;oBAC9E,EAAE,EAAE,EAAE,oBAAoB,CAAC,gBAAgB,EAAE,KAAK,EAAE,8CAA8C,EAAE;iBACrG;aACF;YACD,OAAO,EAAE;gBACP,SAAS,EAAE,uBAAuB;gBAClC,QAAQ,EAAE,uBAAuB;gBACjC,UAAU,EAAE,wBAAwB,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;gBACpE,YAAY,EAAE,0BAA0B;gBACxC,WAAW,EAAE,CAAC,gBAAgB,EAAE,QAAQ,EAAE,SAAS,EAAE,aAAa,EAAE,mBAAmB,CAAC;aACzF;SACF;QACD,QAAQ,EAAE;YACR,MAAM,EAAE;gBACN,OAAO,EAAE;oBACP,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;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"]}
|
|
@@ -3,6 +3,5 @@ import { IAccountingEntry } from '../../../types/Interface/models/IAccountingEnt
|
|
|
3
3
|
import { AsponeFormFields, CerfaPayloadForm } from '../../../types/index.js';
|
|
4
4
|
export declare function getCerfa3517Century25Payload(accountingEntries: IAccountingEntry[], payload: PayloadCerfa3517_2025): Cerfa3517_2025;
|
|
5
5
|
export declare function getCerfa3517Century25RegistrationField(data: Cerfa3517_2025): AsponeFormFields;
|
|
6
|
-
export declare function getCerfa3517DDRCentury25egistrationField(data: Cerfa3517_2025): AsponeFormFields;
|
|
7
6
|
export declare const cerfa3517Century25Fields: CerfaPayloadForm[];
|
|
8
7
|
//# sourceMappingURL=century25.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"century25.d.ts","sourceRoot":"","sources":["../../../../ts/utils/vat/3517/century25.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,4CAA4C,CAAC;AACnG,OAAO,EAAE,gBAAgB,EAAE,MAAM,qDAAqD,CAAC;AAQvF,OAAO,EAAE,gBAAgB,EAAkB,gBAAgB,EAAiB,MAAM,yBAAyB,CAAC;AAE5G,wBAAgB,4BAA4B,CAC1C,iBAAiB,EAAE,gBAAgB,EAAE,EACrC,OAAO,EAAE,qBAAqB,GAC7B,cAAc,CAqiBhB;AAED,wBAAgB,sCAAsC,CAAC,IAAI,EAAE,cAAc,GAAG,gBAAgB,CA4tC7F;AAED,
|
|
1
|
+
{"version":3,"file":"century25.d.ts","sourceRoot":"","sources":["../../../../ts/utils/vat/3517/century25.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,4CAA4C,CAAC;AACnG,OAAO,EAAE,gBAAgB,EAAE,MAAM,qDAAqD,CAAC;AAQvF,OAAO,EAAE,gBAAgB,EAAkB,gBAAgB,EAAiB,MAAM,yBAAyB,CAAC;AAE5G,wBAAgB,4BAA4B,CAC1C,iBAAiB,EAAE,gBAAgB,EAAE,EACrC,OAAO,EAAE,qBAAqB,GAC7B,cAAc,CAqiBhB;AAED,wBAAgB,sCAAsC,CAAC,IAAI,EAAE,cAAc,GAAG,gBAAgB,CA4tC7F;AAED,eAAO,MAAM,wBAAwB,EAAE,gBAAgB,EAobtD,CAAC"}
|
|
@@ -163,7 +163,7 @@ export function getCerfa3517Century25Payload(accountingEntries, payload) {
|
|
|
163
163
|
onInvoice: isNil ? 0 : round(onInvoiceDeductible),
|
|
164
164
|
onFlatRate: isNil ? 0 : round(payload.deductible?.onFlatRate ?? 0),
|
|
165
165
|
total1: 0, // Calculé plus bas
|
|
166
|
-
rate: isNil ?
|
|
166
|
+
rate: isNil ? 100 : round(payload.deductible?.rate ?? 100, 2),
|
|
167
167
|
onImmobilization: isNil ? 0 : round(onImmobilizationDeductible),
|
|
168
168
|
previousCredit: isNil ? 0 : round(payload.deductible?.previousCredit ?? 0),
|
|
169
169
|
forget: isNil ? 0 : round(payload.deductible?.forget ?? 0),
|
|
@@ -1625,159 +1625,6 @@ export function getCerfa3517Century25RegistrationField(data) {
|
|
|
1625
1625
|
},
|
|
1626
1626
|
];
|
|
1627
1627
|
}
|
|
1628
|
-
export function getCerfa3517DDRCentury25egistrationField(data) {
|
|
1629
|
-
if (data.refund.asked > 0) {
|
|
1630
|
-
return [
|
|
1631
|
-
{
|
|
1632
|
-
name: '3517DDR',
|
|
1633
|
-
fields: [
|
|
1634
|
-
{
|
|
1635
|
-
key: 'AA',
|
|
1636
|
-
tag: 'Valeur',
|
|
1637
|
-
isMultiple: false,
|
|
1638
|
-
description: 'MOA Crédit remboursable dégagé à la clôture de lannée ou de lexercice si celui-ci est supérieur ou égal à 150 euros 100173 a',
|
|
1639
|
-
value: data.refund.creditRefundable,
|
|
1640
|
-
},
|
|
1641
|
-
{
|
|
1642
|
-
key: 'AB',
|
|
1643
|
-
tag: 'Valeur',
|
|
1644
|
-
isMultiple: false,
|
|
1645
|
-
description: 'MOA Excédent de versement de TVA dégagé 100174 b',
|
|
1646
|
-
value: data.refund.surplus,
|
|
1647
|
-
},
|
|
1648
|
-
{
|
|
1649
|
-
key: 'AC',
|
|
1650
|
-
tag: 'Valeur',
|
|
1651
|
-
isMultiple: false,
|
|
1652
|
-
description: 'MOA Maximum remboursable 100175 c',
|
|
1653
|
-
value: data.refund.maximum,
|
|
1654
|
-
},
|
|
1655
|
-
{
|
|
1656
|
-
key: 'AD',
|
|
1657
|
-
tag: 'Valeur',
|
|
1658
|
-
isMultiple: false,
|
|
1659
|
-
description: 'MOA Remboursement demandé 100176 d',
|
|
1660
|
-
value: data.refund.asked,
|
|
1661
|
-
},
|
|
1662
|
-
{
|
|
1663
|
-
key: 'AE',
|
|
1664
|
-
tag: 'Valeur',
|
|
1665
|
-
isMultiple: false,
|
|
1666
|
-
description: 'MOA Crédit reportable si le crédit dégagé est inférieur à 150 euros 100177 e',
|
|
1667
|
-
value: data.refund.reportable,
|
|
1668
|
-
},
|
|
1669
|
-
{
|
|
1670
|
-
key: 'AF',
|
|
1671
|
-
value: null,
|
|
1672
|
-
isMultiple: false,
|
|
1673
|
-
tags: [
|
|
1674
|
-
{
|
|
1675
|
-
tag: 'Designation',
|
|
1676
|
-
description: 'NAD Nom et prénom du demandeur 100178 ',
|
|
1677
|
-
value: textFormatting(data.refund.name, 35),
|
|
1678
|
-
},
|
|
1679
|
-
{
|
|
1680
|
-
tag: 'AdresseVille',
|
|
1681
|
-
description: 'NAD Lieu de dépôt de la demande 100184 ',
|
|
1682
|
-
value: data.refund.place,
|
|
1683
|
-
},
|
|
1684
|
-
],
|
|
1685
|
-
},
|
|
1686
|
-
{
|
|
1687
|
-
key: 'AG',
|
|
1688
|
-
tag: 'Valeur',
|
|
1689
|
-
isMultiple: false,
|
|
1690
|
-
description: 'MOA Montant dont le remboursement est demandé 100180 ',
|
|
1691
|
-
value: data.refund.asked,
|
|
1692
|
-
},
|
|
1693
|
-
{
|
|
1694
|
-
key: 'AH',
|
|
1695
|
-
tag: 'Valeur',
|
|
1696
|
-
isMultiple: false,
|
|
1697
|
-
description: 'CCI Demande de remboursement à créditer au compte désigné Table TBX avec X pour sélectionné, CCI/7037 = CAV/1131 = TBX 100189 ',
|
|
1698
|
-
value: data.refund.shouldCredit ? 'X' : null,
|
|
1699
|
-
},
|
|
1700
|
-
{
|
|
1701
|
-
key: 'AJ',
|
|
1702
|
-
tag: 'Valeur',
|
|
1703
|
-
isMultiple: false,
|
|
1704
|
-
description: 'CCI Demande de remboursement à imputer sur échéance future Table TBX avec X pour sélectionné, CCI/7037 = CAV/1131 = TBX 100186 ',
|
|
1705
|
-
value: data.refund.shouldImpute ? 'X' : null,
|
|
1706
|
-
},
|
|
1707
|
-
{
|
|
1708
|
-
key: 'AK',
|
|
1709
|
-
value: null,
|
|
1710
|
-
isMultiple: false,
|
|
1711
|
-
tags: [
|
|
1712
|
-
{
|
|
1713
|
-
tag: 'Iban',
|
|
1714
|
-
description: 'FII IBAN IBAN: 34 caractères alphanumériques (INTERNATIONAL BANK ACCOUNT NUMBER) 902429 ',
|
|
1715
|
-
value: 'DYNAMIC_IBAN',
|
|
1716
|
-
},
|
|
1717
|
-
{
|
|
1718
|
-
tag: 'Bic',
|
|
1719
|
-
description: 'FII BIC BIC : 8 ou 11 caractères alphanumériques (BANK IDENTIFIER CODE) 902409 ',
|
|
1720
|
-
value: 'DYNAMIC_BIC',
|
|
1721
|
-
},
|
|
1722
|
-
{
|
|
1723
|
-
tag: 'TitulaireDesignation',
|
|
1724
|
-
description: 'FII Nom du titulaire du compte 100187 ',
|
|
1725
|
-
value: textFormatting(data.refund.name, 35),
|
|
1726
|
-
},
|
|
1727
|
-
],
|
|
1728
|
-
},
|
|
1729
|
-
{
|
|
1730
|
-
key: 'AL',
|
|
1731
|
-
value: null,
|
|
1732
|
-
isMultiple: false,
|
|
1733
|
-
tags: [
|
|
1734
|
-
{
|
|
1735
|
-
tag: 'TexteLibre1',
|
|
1736
|
-
description: 'FTX Commentaires type 1, ligne 1 1° zone de 512 c 100447 ',
|
|
1737
|
-
value: null,
|
|
1738
|
-
},
|
|
1739
|
-
{
|
|
1740
|
-
tag: 'TexteLibre2',
|
|
1741
|
-
description: 'FTX Commentaires type 1, ligne 2 2° zone de 512 c 100547 ',
|
|
1742
|
-
value: null,
|
|
1743
|
-
},
|
|
1744
|
-
{
|
|
1745
|
-
tag: 'TexteLibre3',
|
|
1746
|
-
description: 'FTX Commentaires type 1, ligne 3 3° zone de 512 c 100548 ',
|
|
1747
|
-
value: null,
|
|
1748
|
-
},
|
|
1749
|
-
{
|
|
1750
|
-
tag: 'TexteLibre4',
|
|
1751
|
-
description: 'FTX Commentaires type 1, ligne 4 4° zone de 512 c 100549 ',
|
|
1752
|
-
value: null,
|
|
1753
|
-
},
|
|
1754
|
-
{
|
|
1755
|
-
tag: 'TexteLibre5',
|
|
1756
|
-
description: 'FTX Commentaires type 1, ligne 5 5° zone de 512 c 100550 ',
|
|
1757
|
-
value: null,
|
|
1758
|
-
},
|
|
1759
|
-
],
|
|
1760
|
-
},
|
|
1761
|
-
{
|
|
1762
|
-
key: 'BA',
|
|
1763
|
-
tag: 'Valeur',
|
|
1764
|
-
isMultiple: false,
|
|
1765
|
-
description: 'DTM Cession ou cessation ou décès ou entrée dans un groupe TVA, date de lévènement Format attendu : yyyyMMdd 905929 ',
|
|
1766
|
-
value: null,
|
|
1767
|
-
},
|
|
1768
|
-
{
|
|
1769
|
-
key: 'BB',
|
|
1770
|
-
tag: 'Valeur',
|
|
1771
|
-
isMultiple: false,
|
|
1772
|
-
description: 'CCI Cession ou cessation ou décès ou entrée dans un groupe TVA 905930 ',
|
|
1773
|
-
value: null,
|
|
1774
|
-
},
|
|
1775
|
-
],
|
|
1776
|
-
},
|
|
1777
|
-
];
|
|
1778
|
-
}
|
|
1779
|
-
return [];
|
|
1780
|
-
}
|
|
1781
1628
|
export const cerfa3517Century25Fields = [
|
|
1782
1629
|
{
|
|
1783
1630
|
sectionName: 'Général',
|