@silexpert/core 2.0.33 → 2.0.35
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/api/resources/Exercice.d.ts +3 -3
- package/dist/api/resources/Exercice.d.ts.map +1 -1
- package/dist/api/resources/Exercice.js +3 -3
- package/dist/api/resources/Exercice.js.map +1 -1
- package/dist/api/resources/Formalism.d.ts +12 -0
- package/dist/api/resources/Formalism.d.ts.map +1 -0
- package/dist/api/resources/Formalism.js +15 -0
- package/dist/api/resources/Formalism.js.map +1 -0
- package/dist/api/resources/HumanResourceLibrary.d.ts.map +1 -1
- package/dist/api/resources/HumanResourceLibrary.js.map +1 -1
- package/dist/api/resources/Society.d.ts.map +1 -1
- package/dist/api/resources/Society.js.map +1 -1
- package/dist/api/resources/User.d.ts.map +1 -1
- package/dist/api/resources/User.js +1 -1
- package/dist/api/resources/User.js.map +1 -1
- package/dist/api/resources/UsersHistory.d.ts.map +1 -1
- package/dist/api/resources/UsersHistory.js +3 -3
- package/dist/api/resources/UsersHistory.js.map +1 -1
- package/dist/api/resources.d.ts +2 -0
- package/dist/api/resources.d.ts.map +1 -1
- package/dist/api/resources.js +2 -0
- package/dist/api/resources.js.map +1 -1
- package/dist/types/Enum/AdminAcceptance.js +1 -1
- package/dist/types/Enum/AdminAcceptance.js.map +1 -1
- package/dist/types/Enum/AppointmentState.js +2 -2
- package/dist/types/Enum/AppointmentState.js.map +1 -1
- package/dist/types/Enum/Aspone.js.map +1 -1
- package/dist/types/Enum/BalanceSheet.d.ts.map +1 -1
- package/dist/types/Enum/BalanceSheet.js +3 -3
- package/dist/types/Enum/BalanceSheet.js.map +1 -1
- package/dist/types/Enum/BalanceSheetQuestion.d.ts.map +1 -1
- package/dist/types/Enum/BalanceSheetQuestion.js +2 -0
- package/dist/types/Enum/BalanceSheetQuestion.js.map +1 -1
- package/dist/types/Enum/BalanceSheetQuestionWording.d.ts.map +1 -1
- package/dist/types/Enum/BalanceSheetQuestionWording.js.map +1 -1
- package/dist/types/Enum/BankAccountType.js.map +1 -1
- package/dist/types/Enum/Brevo.d.ts +3 -1
- package/dist/types/Enum/Brevo.d.ts.map +1 -1
- package/dist/types/Enum/Brevo.js +2 -0
- package/dist/types/Enum/Brevo.js.map +1 -1
- package/dist/types/Enum/CityOfGreffe.js +1 -1
- package/dist/types/Enum/CityOfGreffe.js.map +1 -1
- 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 +46 -18
- package/dist/types/Enum/CommercialManagement.js.map +1 -1
- package/dist/types/Enum/ConnectionError.js +4 -4
- package/dist/types/Enum/ConnectionError.js.map +1 -1
- package/dist/types/Enum/ConstitutionState.js +1 -1
- package/dist/types/Enum/ConstitutionState.js.map +1 -1
- package/dist/types/Enum/Contract.js +1 -1
- package/dist/types/Enum/Contract.js.map +1 -1
- package/dist/types/Enum/Country.js +6 -6
- package/dist/types/Enum/Country.js.map +1 -1
- package/dist/types/Enum/Das.js +2 -2
- package/dist/types/Enum/Das.js.map +1 -1
- package/dist/types/Enum/DocumentForHumanResourceType.js +1 -1
- package/dist/types/Enum/DocumentForHumanResourceType.js.map +1 -1
- package/dist/types/Enum/EbookIntention.d.ts +5 -1
- package/dist/types/Enum/EbookIntention.d.ts.map +1 -1
- package/dist/types/Enum/EbookIntention.js +8 -0
- package/dist/types/Enum/EbookIntention.js.map +1 -1
- package/dist/types/Enum/EnglishLevel.js +1 -1
- package/dist/types/Enum/EnglishLevel.js.map +1 -1
- package/dist/types/Enum/EquipmentAvailability.js +1 -1
- package/dist/types/Enum/EquipmentAvailability.js.map +1 -1
- package/dist/types/Enum/EquipmentType.js +15 -15
- package/dist/types/Enum/EquipmentType.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/FiscalRegime.js +2 -2
- package/dist/types/Enum/FiscalRegime.js.map +1 -1
- package/dist/types/Enum/Formalism.d.ts +30 -0
- package/dist/types/Enum/Formalism.d.ts.map +1 -0
- package/dist/types/Enum/Formalism.js +332 -0
- package/dist/types/Enum/Formalism.js.map +1 -0
- package/dist/types/Enum/Ged.js +1 -1
- package/dist/types/Enum/Ged.js.map +1 -1
- package/dist/types/Enum/ImmobilizationType.js +4 -4
- package/dist/types/Enum/ImmobilizationType.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/Enum/Log.js +15 -15
- package/dist/types/Enum/Log.js.map +1 -1
- package/dist/types/Enum/MaritalStatus.js +1 -1
- package/dist/types/Enum/MaritalStatus.js.map +1 -1
- package/dist/types/Enum/Notification.js +1 -1
- package/dist/types/Enum/Notification.js.map +1 -1
- package/dist/types/Enum/PaymentRecovery.js +6 -6
- package/dist/types/Enum/PaymentRecovery.js.map +1 -1
- package/dist/types/Enum/RegistrationSource.js.map +1 -1
- package/dist/types/Enum/RevisionGuide.d.ts.map +1 -1
- package/dist/types/Enum/RevisionGuide.js +2 -1
- package/dist/types/Enum/RevisionGuide.js.map +1 -1
- package/dist/types/Enum/Sepa.d.ts.map +1 -1
- package/dist/types/Enum/Sepa.js +49 -13
- package/dist/types/Enum/Sepa.js.map +1 -1
- package/dist/types/Enum/Stripe.js.map +1 -1
- package/dist/types/Enum/Supervision.js +2 -2
- package/dist/types/Enum/Supervision.js.map +1 -1
- package/dist/types/Enum/TerminationList.js +1 -1
- package/dist/types/Enum/TerminationList.js.map +1 -1
- package/dist/types/Enum/ToRecallRating.js +1 -1
- package/dist/types/Enum/ToRecallRating.js.map +1 -1
- package/dist/types/Enum/TypePayment.d.ts.map +1 -1
- package/dist/types/Enum/TypePayment.js +1 -0
- package/dist/types/Enum/TypePayment.js.map +1 -1
- package/dist/types/Enum/UsersHistory.js +1 -1
- package/dist/types/Enum/UsersHistory.js.map +1 -1
- package/dist/types/Enum/Vehicle.js +2 -2
- package/dist/types/Enum/Vehicle.js.map +1 -1
- package/dist/types/Enum/ZoneCode.js +3 -3
- package/dist/types/Enum/ZoneCode.js.map +1 -1
- package/dist/types/Interface/api/calendarEvent/calendarEventIcs.d.ts.map +1 -1
- package/dist/types/Interface/api/calendarEvent/calendarEventIcs.js.map +1 -1
- package/dist/types/Interface/api/crisp/GetCrisp.d.ts.map +1 -1
- package/dist/types/Interface/api/crisp/GetCrisp.js.map +1 -1
- package/dist/types/Interface/api/docoon/Read.d.ts +1 -0
- package/dist/types/Interface/api/docoon/Read.d.ts.map +1 -1
- package/dist/types/Interface/api/docoon/Read.js.map +1 -1
- package/dist/types/Interface/api/echo/Estimate.js.map +1 -1
- package/dist/types/Interface/api/echo/EstimatePayload.js.map +1 -1
- package/dist/types/Interface/api/exercice/Create.d.ts +3 -0
- package/dist/types/Interface/api/exercice/Create.d.ts.map +1 -1
- package/dist/types/Interface/api/exercice/Create.js +9 -0
- package/dist/types/Interface/api/exercice/Create.js.map +1 -1
- package/dist/types/Interface/api/formalism/Create.d.ts +15 -0
- package/dist/types/Interface/api/formalism/Create.d.ts.map +1 -0
- package/dist/types/Interface/api/formalism/Create.js +36 -0
- package/dist/types/Interface/api/formalism/Create.js.map +1 -0
- package/dist/types/Interface/api/humanResourceLibrary/QueryHumanResourceLibrary.d.ts.map +1 -1
- package/dist/types/Interface/api/humanResourceLibrary/QueryHumanResourceLibrary.js.map +1 -1
- package/dist/types/Interface/api/log/CreateLog.d.ts +2 -0
- package/dist/types/Interface/api/log/CreateLog.d.ts.map +1 -1
- package/dist/types/Interface/api/log/CreateLog.js.map +1 -1
- package/dist/types/Interface/api/society/CleanupResult.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/Interface/api/team/UpdateTeamsForUser.d.ts.map +1 -1
- package/dist/types/Interface/api/team/UpdateTeamsForUser.js.map +1 -1
- package/dist/types/Interface/api/user/CreateCoworker.d.ts.map +1 -1
- package/dist/types/Interface/api/user/CreateCoworker.js.map +1 -1
- package/dist/types/Interface/api/usersHistory/Create.d.ts.map +1 -1
- package/dist/types/Interface/api/usersHistory/Create.js.map +1 -1
- package/dist/types/Interface/api/usersHistory/Update.d.ts.map +1 -1
- package/dist/types/Interface/api/usersHistory/Update.js.map +1 -1
- package/dist/types/Interface/models/IUsersHistory.d.ts.map +1 -1
- package/dist/types/Interface/models/IUsersHistory.js.map +1 -1
- package/dist/types/index.d.ts +2 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +2 -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/objectUtils/unflattenObject.d.ts.map +1 -1
- package/dist/utils/objectUtils/unflattenObject.js +3 -1
- package/dist/utils/objectUtils/unflattenObject.js.map +1 -1
- package/package.json +57 -57
- package/ts/api/resources/Exercice.ts +13 -4
- package/ts/api/resources/Formalism.ts +17 -0
- package/ts/api/resources/HumanResourceLibrary.ts +0 -1
- package/ts/api/resources/Society.ts +1 -4
- package/ts/api/resources/User.ts +4 -5
- package/ts/api/resources/UsersHistory.ts +4 -5
- package/ts/api/resources.ts +2 -0
- package/ts/types/Enum/AdminAcceptance.ts +1 -1
- package/ts/types/Enum/AppointmentState.ts +2 -2
- package/ts/types/Enum/Aspone.ts +1 -1
- package/ts/types/Enum/BalanceSheet.ts +11 -11
- package/ts/types/Enum/BalanceSheetQuestion.ts +2 -0
- package/ts/types/Enum/BalanceSheetQuestionWording.ts +0 -1
- package/ts/types/Enum/BankAccountType.ts +1 -1
- package/ts/types/Enum/Brevo.ts +2 -0
- package/ts/types/Enum/CityOfGreffe.ts +1 -1
- package/ts/types/Enum/CommercialManagement.ts +48 -19
- package/ts/types/Enum/ConnectionError.ts +4 -4
- package/ts/types/Enum/ConstitutionState.ts +1 -1
- package/ts/types/Enum/Contract.ts +1 -1
- package/ts/types/Enum/Country.ts +6 -6
- package/ts/types/Enum/Das.ts +2 -2
- package/ts/types/Enum/DocumentForHumanResourceType.ts +1 -1
- package/ts/types/Enum/EbookIntention.ts +8 -0
- package/ts/types/Enum/EnglishLevel.ts +2 -2
- package/ts/types/Enum/EquipmentAvailability.ts +1 -1
- package/ts/types/Enum/EquipmentType.ts +15 -15
- package/ts/types/Enum/EstimateInvoice.ts +2 -1
- package/ts/types/Enum/FiscalRegime.ts +2 -2
- package/ts/types/Enum/Formalism.ts +365 -0
- package/ts/types/Enum/Ged.ts +1 -1
- package/ts/types/Enum/ImmobilizationType.ts +4 -4
- package/ts/types/Enum/KilometricAllowanceScale.ts +119 -0
- package/ts/types/Enum/Log.ts +15 -15
- package/ts/types/Enum/MaritalStatus.ts +1 -1
- package/ts/types/Enum/Notification.ts +1 -1
- package/ts/types/Enum/PaymentRecovery.ts +6 -6
- package/ts/types/Enum/RegistrationSource.ts +1 -1
- package/ts/types/Enum/RevisionGuide.ts +14 -13
- package/ts/types/Enum/Sepa.ts +53 -17
- package/ts/types/Enum/Stripe.ts +2 -2
- package/ts/types/Enum/Supervision.ts +2 -2
- package/ts/types/Enum/TerminationList.ts +1 -1
- package/ts/types/Enum/ToRecallRating.ts +1 -1
- package/ts/types/Enum/TypePayment.ts +1 -0
- package/ts/types/Enum/UsersHistory.ts +1 -1
- package/ts/types/Enum/Vehicle.ts +2 -2
- package/ts/types/Enum/ZoneCode.ts +3 -3
- package/ts/types/Interface/api/calendarEvent/calendarEventIcs.ts +10 -10
- package/ts/types/Interface/api/crisp/GetCrisp.ts +0 -1
- package/ts/types/Interface/api/docoon/Read.ts +1 -0
- package/ts/types/Interface/api/echo/Estimate.ts +1 -1
- package/ts/types/Interface/api/echo/EstimatePayload.ts +1 -1
- package/ts/types/Interface/api/exercice/Create.ts +7 -1
- package/ts/types/Interface/api/formalism/Create.ts +30 -0
- package/ts/types/Interface/api/humanResourceLibrary/QueryHumanResourceLibrary.ts +0 -4
- package/ts/types/Interface/api/log/CreateLog.ts +2 -0
- package/ts/types/Interface/api/society/CleanupResult.ts +1 -1
- package/ts/types/Interface/api/society/CreateUserToSocietyWithPermission.ts +3 -2
- package/ts/types/Interface/api/society/ReadSocietyUsers.ts +2 -3
- package/ts/types/Interface/api/team/UpdateTeamsForUser.ts +0 -1
- package/ts/types/Interface/api/user/CreateCoworker.ts +0 -1
- package/ts/types/Interface/api/usersHistory/Create.ts +1 -3
- package/ts/types/Interface/api/usersHistory/Update.ts +1 -2
- package/ts/types/Interface/models/IUsersHistory.ts +0 -1
- package/ts/types/index.ts +2 -1
- package/ts/utils/commercialManagement/internationalization/choices.ts +48 -55
- package/ts/utils/objectUtils/unflattenObject.ts +1 -0
- package/tsconfig-base.json +1 -1
- 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/eslint.config.mjs +0 -47
- 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;o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EAAE,EAAE,EAAE,OAAO,EAAE;QAC3B,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE;QACpB,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,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 { 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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,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"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unflattenObject.d.ts","sourceRoot":"","sources":["../../../ts/utils/objectUtils/unflattenObject.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,EAAE,SAAS,SAAM,GAAG,GAAG,
|
|
1
|
+
{"version":3,"file":"unflattenObject.d.ts","sourceRoot":"","sources":["../../../ts/utils/objectUtils/unflattenObject.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,EAAE,SAAS,SAAM,GAAG,GAAG,CAapF"}
|
|
@@ -7,7 +7,9 @@ export function unflattenObject(object, separator = '.') {
|
|
|
7
7
|
const result = {};
|
|
8
8
|
for (const i in object) {
|
|
9
9
|
const keys = i.split(separator);
|
|
10
|
-
keys.reduce((r, e, j) =>
|
|
10
|
+
keys.reduce((r, e, j) =>
|
|
11
|
+
// oxlint-disable-next-line typescript/no-unsafe-return
|
|
12
|
+
r[e] || (r[e] = isNaN(Number(keys[j + 1])) ? (keys.length - 1 == j ? object[i] : {}) : []), result);
|
|
11
13
|
}
|
|
12
14
|
return result;
|
|
13
15
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unflattenObject.js","sourceRoot":"","sources":["../../../ts/utils/objectUtils/unflattenObject.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,UAAU,eAAe,CAAC,MAA8B,EAAE,SAAS,GAAG,GAAG;IAC7E,MAAM,MAAM,GAAG,EAAE,CAAC;IAClB,KAAK,MAAM,CAAC,IAAI,MAAM,EAAE,CAAC;QACvB,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;QAChC,IAAI,CAAC,MAAM,CACT,CAAC,CAAyB,EAAE,CAAS,EAAE,CAAS,EAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"unflattenObject.js","sourceRoot":"","sources":["../../../ts/utils/objectUtils/unflattenObject.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,UAAU,eAAe,CAAC,MAA8B,EAAE,SAAS,GAAG,GAAG;IAC7E,MAAM,MAAM,GAAG,EAAE,CAAC;IAClB,KAAK,MAAM,CAAC,IAAI,MAAM,EAAE,CAAC;QACvB,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;QAChC,IAAI,CAAC,MAAM,CACT,CAAC,CAAyB,EAAE,CAAS,EAAE,CAAS,EAAO,EAAE;QACvD,uDAAuD;QACvD,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,EAC5F,MAAM,CACP,CAAC;IACJ,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["/**\n * Unflattens a flattened `object`.\n * @param object the flattened object with \"pathed\" keys.\n * @param separator the string on which to separate paths in keys\n */\nexport function unflattenObject(object: { [key: string]: any }, separator = '.'): any {\n const result = {};\n for (const i in object) {\n const keys = i.split(separator);\n keys.reduce(\n (r: { [key: string]: any }, e: string, j: number): any =>\n // oxlint-disable-next-line typescript/no-unsafe-return\n r[e] || (r[e] = isNaN(Number(keys[j + 1])) ? (keys.length - 1 == j ? object[i] : {}) : []),\n result,\n );\n }\n\n return result;\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,12 +1,40 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silexpert/core",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.35",
|
|
4
4
|
"description": "Silex Core perform HTTP Request and object binding. Silex core helps developers to retrieve and return formatted object",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"accounting",
|
|
7
|
+
"api-client",
|
|
8
|
+
"esm",
|
|
9
|
+
"nuxt",
|
|
10
|
+
"silex",
|
|
11
|
+
"typescript",
|
|
12
|
+
"vue"
|
|
13
|
+
],
|
|
5
14
|
"homepage": "https://gitlab.compta-clementine.fr/dev/silex-api",
|
|
15
|
+
"bugs": {
|
|
16
|
+
"url": "https://gitlab.compta-clementine.fr/dev/silex-api/-/issues"
|
|
17
|
+
},
|
|
18
|
+
"license": "ISC",
|
|
19
|
+
"author": "Silex",
|
|
20
|
+
"repository": {
|
|
21
|
+
"type": "git",
|
|
22
|
+
"url": "git@gitlab.compta-clementine.fr:dev/next-core-clementine.git"
|
|
23
|
+
},
|
|
6
24
|
"type": "module",
|
|
25
|
+
"sideEffects": false,
|
|
7
26
|
"main": "./dist/index.js",
|
|
8
27
|
"module": "./dist/index.js",
|
|
28
|
+
"browser": {
|
|
29
|
+
"debug": false
|
|
30
|
+
},
|
|
9
31
|
"types": "./dist/index.d.ts",
|
|
32
|
+
"imports": {
|
|
33
|
+
"#utils/*": "./dist/utils/*",
|
|
34
|
+
"#types/*": "./dist/types/*",
|
|
35
|
+
"#server/*": "./dist/server/*",
|
|
36
|
+
"#api/*": "./dist/api/*"
|
|
37
|
+
},
|
|
10
38
|
"exports": {
|
|
11
39
|
".": {
|
|
12
40
|
"types": "./dist/index.d.ts",
|
|
@@ -17,23 +45,13 @@
|
|
|
17
45
|
"import": "./dist/server/index.js"
|
|
18
46
|
}
|
|
19
47
|
},
|
|
20
|
-
"browser": {
|
|
21
|
-
"debug": false
|
|
22
|
-
},
|
|
23
|
-
"resolutions": {
|
|
24
|
-
"debug": "^4.3.7"
|
|
25
|
-
},
|
|
26
|
-
"sideEffects": false,
|
|
27
|
-
"imports": {
|
|
28
|
-
"#utils/*": "./dist/utils/*",
|
|
29
|
-
"#types/*": "./dist/types/*",
|
|
30
|
-
"#server/*": "./dist/server/*",
|
|
31
|
-
"#api/*": "./dist/api/*"
|
|
32
|
-
},
|
|
33
48
|
"scripts": {
|
|
34
49
|
"clean": "rimraf ./es ./js ./dist",
|
|
35
50
|
"watch": "tsc -w",
|
|
36
|
-
"lint": "
|
|
51
|
+
"lint": "oxlint",
|
|
52
|
+
"lint:fix": "oxlint --fix",
|
|
53
|
+
"format": "oxfmt",
|
|
54
|
+
"format:check": "oxfmt --check",
|
|
37
55
|
"tsc": "rm -fr dist/* && tsc -p tsconfig.json",
|
|
38
56
|
"compile": "yarn tsc",
|
|
39
57
|
"import:interface": "node --require ts-node/register importInterfaces.ts",
|
|
@@ -41,30 +59,21 @@
|
|
|
41
59
|
"release": "standard-version",
|
|
42
60
|
"pre-commit": "yarn lint"
|
|
43
61
|
},
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
"
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
"
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
"
|
|
62
|
+
"dependencies": {
|
|
63
|
+
"@types/geojson": "^7946.0.16",
|
|
64
|
+
"@types/sanitize-html": "^2.16.1",
|
|
65
|
+
"axios": "1.13.6",
|
|
66
|
+
"class-transformer": "^0.5.1",
|
|
67
|
+
"class-validator": "^0.15.1",
|
|
68
|
+
"dayjs": "^1.11.11",
|
|
69
|
+
"ejs": "3.1.9",
|
|
70
|
+
"libphonenumber-js": "^1.12.37",
|
|
71
|
+
"lodash-es": "^4.17.23",
|
|
72
|
+
"rxjs": "^7.8.2",
|
|
73
|
+
"sanitize-html": "^2.17.2",
|
|
74
|
+
"sms-length": "^0.2.2",
|
|
75
|
+
"stripe": "18.1.1"
|
|
56
76
|
},
|
|
57
|
-
"keywords": [
|
|
58
|
-
"esm",
|
|
59
|
-
"typescript",
|
|
60
|
-
"nuxt",
|
|
61
|
-
"vue",
|
|
62
|
-
"silex",
|
|
63
|
-
"accounting",
|
|
64
|
-
"api-client"
|
|
65
|
-
],
|
|
66
|
-
"author": "Silex",
|
|
67
|
-
"license": "ISC",
|
|
68
77
|
"devDependencies": {
|
|
69
78
|
"@babel/cli": "^7.28.6",
|
|
70
79
|
"@babel/core": "^7.29.0",
|
|
@@ -75,34 +84,25 @@
|
|
|
75
84
|
"@types/lodash-es": "^4.17.12",
|
|
76
85
|
"@types/node": "^24.10.1",
|
|
77
86
|
"@types/validator": "^13.15.10",
|
|
78
|
-
"eslint": "^9.39.1",
|
|
79
|
-
"eslint-config-airbnb-typescript": "^18.0.0",
|
|
80
|
-
"eslint-config-prettier": "^9.1.0",
|
|
81
87
|
"husky": "^9.1.7",
|
|
82
|
-
"
|
|
88
|
+
"oxlint": "^1.61.0",
|
|
83
89
|
"rimraf": "^6.1.3",
|
|
84
90
|
"standard-version": "^9.3.0",
|
|
85
91
|
"ts-node": "^10.9.2",
|
|
86
|
-
"typescript": "
|
|
92
|
+
"typescript": "6.0.3",
|
|
87
93
|
"typescript-eslint": "^8.56.0"
|
|
88
94
|
},
|
|
89
95
|
"peerDependencies": {
|
|
90
96
|
"@babel/runtime": "^7.6.3",
|
|
91
97
|
"@types/bluebird": "^3.5.28"
|
|
92
98
|
},
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
"
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
"
|
|
101
|
-
"libphonenumber-js": "^1.12.37",
|
|
102
|
-
"lodash-es": "^4.17.23",
|
|
103
|
-
"rxjs": "^7.8.2",
|
|
104
|
-
"sanitize-html": "^2.17.2",
|
|
105
|
-
"sms-length": "^0.2.2",
|
|
106
|
-
"stripe": "18.1.1"
|
|
99
|
+
"resolutions": {
|
|
100
|
+
"debug": "^4.3.7"
|
|
101
|
+
},
|
|
102
|
+
"config": {
|
|
103
|
+
"unsafe-perm": true
|
|
104
|
+
},
|
|
105
|
+
"engines": {
|
|
106
|
+
"node": ">=20"
|
|
107
107
|
}
|
|
108
108
|
}
|
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
QuerySocietyExercice,
|
|
10
10
|
GenerateProjectExercice,
|
|
11
11
|
IGedFile,
|
|
12
|
+
SendPreviewProjectExercice,
|
|
12
13
|
} from '../../types/index.js';
|
|
13
14
|
import { Resource } from '../Resource.js';
|
|
14
15
|
|
|
@@ -45,7 +46,11 @@ export class Exercice extends Resource {
|
|
|
45
46
|
return this.axios.$delete(`/exercices/${id}`);
|
|
46
47
|
}
|
|
47
48
|
|
|
48
|
-
generateBalanceSheetProject(
|
|
49
|
+
generateBalanceSheetProject(
|
|
50
|
+
idSociety: number,
|
|
51
|
+
idExercice: number,
|
|
52
|
+
params?: GenerateProjectExercice,
|
|
53
|
+
): Promise<boolean> {
|
|
49
54
|
return this.axios.$post(`/societies/${idSociety}/exercices/${idExercice}/project/generate`, params);
|
|
50
55
|
}
|
|
51
56
|
|
|
@@ -79,10 +84,14 @@ export class Exercice extends Resource {
|
|
|
79
84
|
}
|
|
80
85
|
|
|
81
86
|
/**
|
|
82
|
-
* @description This endpoint is only to send the preview project email for CADOR balanceSheet (on clementinier), the accountant will upload the document from cador directly in the GED and the project will be send to the client with the email template in brevo
|
|
87
|
+
* @description This endpoint is only to send the preview project email for CADOR balanceSheet or liquidity (on clementinier), the accountant will upload the document from cador directly in the GED and the project will be send to the client with the email template in brevo
|
|
83
88
|
* For the other clients, the preview project will be send with the endpoint generateProject
|
|
84
89
|
*/
|
|
85
|
-
sendProjectAcceptationEmail(
|
|
86
|
-
|
|
90
|
+
sendProjectAcceptationEmail(
|
|
91
|
+
idSociety: number,
|
|
92
|
+
idExercice: number,
|
|
93
|
+
params?: SendPreviewProjectExercice,
|
|
94
|
+
): Promise<void> {
|
|
95
|
+
return this.axios.$post(`/societies/${idSociety}/exercices/${idExercice}/project/send-cador-preview-mail`, params);
|
|
87
96
|
}
|
|
88
97
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Resource } from '#api/Resource.js';
|
|
2
|
+
import { CreateFormalismValueType, IFormalism } from '@silexpert/core';
|
|
3
|
+
|
|
4
|
+
export class Formalism extends Resource {
|
|
5
|
+
/**
|
|
6
|
+
* create a formalism with question values
|
|
7
|
+
* @param { CreateFormalismValueType } payload
|
|
8
|
+
* @returns { Promise<IFormalism> }
|
|
9
|
+
*/
|
|
10
|
+
create(payload: CreateFormalismValueType, idSociety: number): Promise<IFormalism> {
|
|
11
|
+
return this.axios.$post(`/societies/${idSociety}/formalism`, payload);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
get(idSociety: number): Promise<IFormalism> {
|
|
15
|
+
return this.axios.$get(`/societies/${idSociety}/formalism`);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -215,10 +215,7 @@ export class Society extends Resource {
|
|
|
215
215
|
return this.axios.$get(`/societies/${idSociety}/features`);
|
|
216
216
|
}
|
|
217
217
|
|
|
218
|
-
getAdvancedSearch(
|
|
219
|
-
params: QueryAdvancedSearchSociety,
|
|
220
|
-
signal?: AbortSignal,
|
|
221
|
-
): Promise<BasePaginate<ISociety>> {
|
|
218
|
+
getAdvancedSearch(params: QueryAdvancedSearchSociety, signal?: AbortSignal): Promise<BasePaginate<ISociety>> {
|
|
222
219
|
return this.axios.$get('/society/advanced-search', {
|
|
223
220
|
params,
|
|
224
221
|
...(signal ? { signal } : {}),
|