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