@silexpert/core 1.3.6 → 1.3.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. package/dist/cjs/api/resources/CompanyMarketingInformation.d.ts +25 -0
  2. package/dist/cjs/api/resources/CompanyMarketingInformation.d.ts.map +1 -0
  3. package/dist/cjs/api/resources/CompanyMarketingInformation.js +34 -0
  4. package/dist/cjs/api/resources/CompanyMarketingInformation.js.map +1 -0
  5. package/dist/cjs/api/resources.d.ts +2 -0
  6. package/dist/cjs/api/resources.d.ts.map +1 -1
  7. package/dist/cjs/api/resources.js +2 -0
  8. package/dist/cjs/api/resources.js.map +1 -1
  9. package/dist/cjs/types/Enum/TimeSlot.js +11 -11
  10. package/dist/cjs/types/Enum/TimeSlot.js.map +1 -1
  11. package/dist/cjs/types/Interface/api/companyMarketingInformation/CompanyMarketingInformationPayload.d.ts +23 -0
  12. package/dist/cjs/types/Interface/api/companyMarketingInformation/CompanyMarketingInformationPayload.d.ts.map +1 -0
  13. package/dist/cjs/types/Interface/api/companyMarketingInformation/CompanyMarketingInformationPayload.js +3 -0
  14. package/dist/cjs/types/Interface/api/companyMarketingInformation/CompanyMarketingInformationPayload.js.map +1 -0
  15. package/dist/cjs/types/Interface/api/companyMarketingInformation/CreateCompanyMarketingInformation.d.ts +27 -0
  16. package/dist/cjs/types/Interface/api/companyMarketingInformation/CreateCompanyMarketingInformation.d.ts.map +1 -0
  17. package/dist/cjs/types/Interface/api/companyMarketingInformation/CreateCompanyMarketingInformation.js +146 -0
  18. package/dist/cjs/types/Interface/api/companyMarketingInformation/CreateCompanyMarketingInformation.js.map +1 -0
  19. package/dist/cjs/types/Interface/api/companyMarketingInformation/UpdateCompanyMarketingInformation.d.ts +6 -0
  20. package/dist/cjs/types/Interface/api/companyMarketingInformation/UpdateCompanyMarketingInformation.d.ts.map +1 -0
  21. package/dist/cjs/types/Interface/api/companyMarketingInformation/UpdateCompanyMarketingInformation.js +24 -0
  22. package/dist/cjs/types/Interface/api/companyMarketingInformation/UpdateCompanyMarketingInformation.js.map +1 -0
  23. package/dist/cjs/types/Interface/api/regulation/Create.d.ts +1 -1
  24. package/dist/cjs/types/Interface/api/regulation/Create.d.ts.map +1 -1
  25. package/dist/cjs/types/Interface/api/regulation/Create.js +2 -1
  26. package/dist/cjs/types/Interface/api/regulation/Create.js.map +1 -1
  27. package/dist/cjs/types/Interface/models/ICompanyMarketingInformation.d.ts +11 -0
  28. package/dist/cjs/types/Interface/models/ICompanyMarketingInformation.d.ts.map +1 -0
  29. package/dist/cjs/types/Interface/models/ICompanyMarketingInformation.js +3 -0
  30. package/dist/cjs/types/Interface/models/ICompanyMarketingInformation.js.map +1 -0
  31. package/dist/cjs/types/index.d.ts +4 -0
  32. package/dist/cjs/types/index.d.ts.map +1 -1
  33. package/dist/cjs/types/index.js +4 -0
  34. package/dist/cjs/types/index.js.map +1 -1
  35. package/dist/cjs/utils/commercialManagement/internationalization/choices.d.ts.map +1 -1
  36. package/dist/cjs/utils/commercialManagement/internationalization/choices.js +2 -0
  37. package/dist/cjs/utils/commercialManagement/internationalization/choices.js.map +1 -1
  38. package/dist/cjs/utils/commercialManagement/internationalization/type.d.ts +1 -0
  39. package/dist/cjs/utils/commercialManagement/internationalization/type.d.ts.map +1 -1
  40. package/dist/cjs/utils/commercialManagement/internationalization/type.js.map +1 -1
  41. package/dist/cjs/utils/commercialManagement/templates/body.js +1 -1
  42. package/dist/cjs/utils/commercialManagement/templates/body.js.map +1 -1
  43. package/dist/mjs/api/resources/CompanyMarketingInformation.d.ts +25 -0
  44. package/dist/mjs/api/resources/CompanyMarketingInformation.d.ts.map +1 -0
  45. package/dist/mjs/api/resources/CompanyMarketingInformation.js +32 -0
  46. package/dist/mjs/api/resources/CompanyMarketingInformation.js.map +1 -0
  47. package/dist/mjs/api/resources.d.ts +2 -0
  48. package/dist/mjs/api/resources.d.ts.map +1 -1
  49. package/dist/mjs/api/resources.js +2 -0
  50. package/dist/mjs/api/resources.js.map +1 -1
  51. package/dist/mjs/types/Enum/TimeSlot.js +10 -10
  52. package/dist/mjs/types/Enum/TimeSlot.js.map +1 -1
  53. package/dist/mjs/types/Interface/api/companyMarketingInformation/CompanyMarketingInformationPayload.d.ts +23 -0
  54. package/dist/mjs/types/Interface/api/companyMarketingInformation/CompanyMarketingInformationPayload.d.ts.map +1 -0
  55. package/dist/mjs/types/Interface/api/companyMarketingInformation/CompanyMarketingInformationPayload.js +2 -0
  56. package/dist/mjs/types/Interface/api/companyMarketingInformation/CompanyMarketingInformationPayload.js.map +1 -0
  57. package/dist/mjs/types/Interface/api/companyMarketingInformation/CreateCompanyMarketingInformation.d.ts +27 -0
  58. package/dist/mjs/types/Interface/api/companyMarketingInformation/CreateCompanyMarketingInformation.d.ts.map +1 -0
  59. package/dist/mjs/types/Interface/api/companyMarketingInformation/CreateCompanyMarketingInformation.js +172 -0
  60. package/dist/mjs/types/Interface/api/companyMarketingInformation/CreateCompanyMarketingInformation.js.map +1 -0
  61. package/dist/mjs/types/Interface/api/companyMarketingInformation/UpdateCompanyMarketingInformation.d.ts +6 -0
  62. package/dist/mjs/types/Interface/api/companyMarketingInformation/UpdateCompanyMarketingInformation.d.ts.map +1 -0
  63. package/dist/mjs/types/Interface/api/companyMarketingInformation/UpdateCompanyMarketingInformation.js +21 -0
  64. package/dist/mjs/types/Interface/api/companyMarketingInformation/UpdateCompanyMarketingInformation.js.map +1 -0
  65. package/dist/mjs/types/Interface/api/regulation/Create.d.ts +1 -1
  66. package/dist/mjs/types/Interface/api/regulation/Create.d.ts.map +1 -1
  67. package/dist/mjs/types/Interface/api/regulation/Create.js +2 -1
  68. package/dist/mjs/types/Interface/api/regulation/Create.js.map +1 -1
  69. package/dist/mjs/types/Interface/models/ICompanyMarketingInformation.d.ts +11 -0
  70. package/dist/mjs/types/Interface/models/ICompanyMarketingInformation.d.ts.map +1 -0
  71. package/dist/mjs/types/Interface/models/ICompanyMarketingInformation.js +2 -0
  72. package/dist/mjs/types/Interface/models/ICompanyMarketingInformation.js.map +1 -0
  73. package/dist/mjs/types/index.d.ts +4 -0
  74. package/dist/mjs/types/index.d.ts.map +1 -1
  75. package/dist/mjs/types/index.js +4 -0
  76. package/dist/mjs/types/index.js.map +1 -1
  77. package/dist/mjs/utils/commercialManagement/internationalization/choices.d.ts.map +1 -1
  78. package/dist/mjs/utils/commercialManagement/internationalization/choices.js +2 -0
  79. package/dist/mjs/utils/commercialManagement/internationalization/choices.js.map +1 -1
  80. package/dist/mjs/utils/commercialManagement/internationalization/type.d.ts +1 -0
  81. package/dist/mjs/utils/commercialManagement/internationalization/type.d.ts.map +1 -1
  82. package/dist/mjs/utils/commercialManagement/internationalization/type.js.map +1 -1
  83. package/dist/mjs/utils/commercialManagement/templates/body.js +1 -1
  84. package/dist/mjs/utils/commercialManagement/templates/body.js.map +1 -1
  85. package/package.json +1 -1
  86. package/ts/api/resources/CompanyMarketingInformation.ts +40 -0
  87. package/ts/api/resources.ts +2 -0
  88. package/ts/types/Enum/TimeSlot.ts +10 -10
  89. package/ts/types/Interface/api/companyMarketingInformation/CompanyMarketingInformationPayload.ts +32 -0
  90. package/ts/types/Interface/api/companyMarketingInformation/CreateCompanyMarketingInformation.ts +121 -0
  91. package/ts/types/Interface/api/companyMarketingInformation/UpdateCompanyMarketingInformation.ts +10 -0
  92. package/ts/types/Interface/api/regulation/Create.ts +3 -2
  93. package/ts/types/Interface/models/ICompanyMarketingInformation.ts +13 -0
  94. package/ts/types/index.ts +4 -0
  95. package/ts/utils/commercialManagement/internationalization/choices.ts +2 -0
  96. package/ts/utils/commercialManagement/internationalization/type.ts +1 -0
  97. package/ts/utils/commercialManagement/templates/body.ts +1 -1
@@ -45,6 +45,7 @@ export const internationalizationChoices = {
45
45
  template: {
46
46
  common: {
47
47
  headers: {
48
+ title: 'Titre',
48
49
  emissionDate: "Date d'émission",
49
50
  accountingCategory: {
50
51
  title: "Catégorie de l'opération",
@@ -235,6 +236,7 @@ export const internationalizationChoices = {
235
236
  template: {
236
237
  common: {
237
238
  headers: {
239
+ title: 'Title',
238
240
  emissionDate: 'Invoice date',
239
241
  accountingCategory: {
240
242
  title: 'Transaction type',
@@ -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,0CAA0C,CAAC;AAajG,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,cAAc;oBACd,gBAAgB;oBAChB,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,CA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C;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';\nimport { InternationalizationChoicesType } from './type';\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 'Non concerné',\n '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 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 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: 'Non concerné', en: 'Not affected' },\n { fr: 'Non applicable', en: '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ètre', en: 'meter' },\n { fr: 'abo', en: 'sub' },\n { fr: 'nuit', en: 'night' },\n { fr: 't', en: 't' },\n { fr: 'ha', en: 'ha' },\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,oBAAoB,EAAE,eAAe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,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';\nimport { InternationalizationChoicesType } from './type';\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 'Non concerné',\n '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: 'Non concerné', en: 'Not affected' },\n { fr: 'Non applicable', en: '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ètre', en: 'meter' },\n { fr: 'abo', en: 'sub' },\n { fr: 'nuit', en: 'night' },\n { fr: 't', en: 't' },\n { fr: 'ha', en: 'ha' },\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"]}
@@ -18,6 +18,7 @@ export type InternationalizationChoiceInputList = {
18
18
  options: InternationalizationChoicesOptions;
19
19
  };
20
20
  export type InternationalizationChoicesTemplateCommonHeader = {
21
+ title: string;
21
22
  emissionDate: string;
22
23
  accountingCategory: {
23
24
  title: string;
@@ -1 +1 @@
1
- {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../../ts/utils/commercialManagement/internationalization/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM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AAM,8BAA8B,GAAG;IAC3C,MAAM,EAAE,oCAAoC,CAAC;IAC7C,OAAO,EAAE,sCAAsC,CAAC;IAChD,QAAQ,EAAE,sCAAsC,CAAC;IACjD,SAAS,EAAE,sCAAsC,CAAC;IAClD,OAAO,EAAE,sCAAsC,CAAC;IAChD,KAAK,EAAE,sCAAsC,CAAC;IAC9C,SAAS,EAAE,sCAAsC,CAAC;IAClD,OAAO,EAAE,sCAAsC,CAAC;CACjD,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG;IACxC,UAAU,EAAE,mCAAmC,CAAC;IAChD,QAAQ,EAAE,kCAAkC,CAAC;IAC7C,IAAI,EAAE,8BAA8B,CAAC;CACtC,CAAC;AAEF,MAAM,MAAM,+BAA+B,GAAG;IAC5C,CAAC,GAAG,EAAE,MAAM,GAAG,2BAA2B,CAAC;CAC5C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"type.js","sourceRoot":"","sources":["../../../../../ts/utils/commercialManagement/internationalization/type.ts"],"names":[],"mappings":"","sourcesContent":["import { AccountingCategoryId } from '../../../types/Enum/CommercialManagement';\n\nexport type InternationalizationChoicesHeaders = {\n termsOfPayment: string[];\n accountingCategories: Array<{ label: string; id: AccountingCategoryId }>;\n};\n\nexport type InternationalizationChoicesOptions = {\n penalties: string[];\n vatMention: string[];\n discount: string[];\n recoveryCost: string[];\n paymentType: string[];\n};\n\nexport type InternationalizationChoiceInputList = {\n headers: InternationalizationChoicesHeaders;\n options: InternationalizationChoicesOptions;\n};\n\nexport type InternationalizationChoicesTemplateCommonHeader = {\n emissionDate: string;\n accountingCategory: {\n title: string;\n choices: Array<{ label: string; id: AccountingCategoryId }>;\n };\n};\n\nexport type InternationalizationChoiceTemplateSpecificHeader = {\n title: string;\n dueDate: string;\n termsOfPayment: string;\n};\n\nexport type InternationlizationChoiceTemplateSpecificDepositHeader = {\n title: string;\n expirationDate: string;\n termsOfPayment: string;\n};\n\nexport type InternationalizationChoiceTemplateFooter = {\n penalties: string;\n discount: string;\n recoveryCosts: string;\n capital: string;\n siren: string;\n vatCode: string;\n marginVat: string;\n legalVatMention: string;\n shouldPayTaxAfterDebit: string;\n generate: string;\n};\n\nexport type InternationalizationChoiceTemplateOptions = {\n vatMention: string;\n paymentType: string;\n bank: string;\n approval: string;\n comment: string;\n};\n\nexport type InternationalizationChoiceTemplateTable = {\n headers: {\n product: string;\n quantity: string;\n unitPrice: string;\n unitPriceWithoutVat: string;\n discount: string;\n vat: string;\n amount: string;\n amountWithoutVat: string;\n base: string;\n rate: string;\n vatAmount: string;\n recap: string;\n };\n lines: {\n totalHt: string;\n vat: string;\n totalTTC: string;\n totalWhitoutVat: string;\n netToPay: string;\n remainderToPay: string;\n deposit: string;\n };\n};\n\nexport type InternationalizationChoiceTemplateCommon = {\n headers: InternationalizationChoicesTemplateCommonHeader;\n footer: InternationalizationChoiceTemplateFooter;\n options: InternationalizationChoiceTemplateOptions;\n table: InternationalizationChoiceTemplateTable;\n};\n\nexport type InternationalizationChoiceTemplate = {\n common: InternationalizationChoiceTemplateCommon;\n invoice: {\n headers: InternationalizationChoiceTemplateSpecificHeader;\n };\n estimate: {\n headers: InternationalizationChoiceTemplateSpecificHeader;\n };\n orderForm: {\n headers: InternationalizationChoiceTemplateSpecificHeader;\n };\n deposit: {\n headers: InternationlizationChoiceTemplateSpecificDepositHeader;\n };\n asset: {\n headers: InternationalizationChoiceTemplateSpecificHeader;\n };\n remainder: {\n headers: InternationalizationChoiceTemplateSpecificHeader;\n };\n draft: {\n headers: InternationalizationChoiceTemplateSpecificHeader;\n };\n};\n\nexport type InternationalizationChoiceMailCommon = {\n dueDate: string;\n generate: string;\n displayDocument: string;\n totalHt: string;\n totalVat: string;\n totalTtc: string;\n send: string;\n};\n\nexport type InternationalizationChoiceMailSpecific = {\n title: string;\n subTitle: string;\n};\n\nexport type InternationalizationChoiceMail = {\n common: InternationalizationChoiceMailCommon;\n invoice: InternationalizationChoiceMailSpecific;\n estimate: InternationalizationChoiceMailSpecific;\n orderForm: InternationalizationChoiceMailSpecific;\n deposit: InternationalizationChoiceMailSpecific;\n asset: InternationalizationChoiceMailSpecific;\n remainder: InternationalizationChoiceMailSpecific;\n default: InternationalizationChoiceMailSpecific;\n};\n\nexport type InternationalizationChoices = {\n inputLists: InternationalizationChoiceInputList;\n template: InternationalizationChoiceTemplate;\n mail: InternationalizationChoiceMail;\n};\n\nexport type InternationalizationChoicesType = {\n [key: string]: InternationalizationChoices;\n};\n"]}
1
+ {"version":3,"file":"type.js","sourceRoot":"","sources":["../../../../../ts/utils/commercialManagement/internationalization/type.ts"],"names":[],"mappings":"","sourcesContent":["import { AccountingCategoryId } from '../../../types/Enum/CommercialManagement';\n\nexport type InternationalizationChoicesHeaders = {\n termsOfPayment: string[];\n accountingCategories: Array<{ label: string; id: AccountingCategoryId }>;\n};\n\nexport type InternationalizationChoicesOptions = {\n penalties: string[];\n vatMention: string[];\n discount: string[];\n recoveryCost: string[];\n paymentType: string[];\n};\n\nexport type InternationalizationChoiceInputList = {\n headers: InternationalizationChoicesHeaders;\n options: InternationalizationChoicesOptions;\n};\n\nexport type InternationalizationChoicesTemplateCommonHeader = {\n title: string;\n emissionDate: string;\n accountingCategory: {\n title: string;\n choices: Array<{ label: string; id: AccountingCategoryId }>;\n };\n};\n\nexport type InternationalizationChoiceTemplateSpecificHeader = {\n title: string;\n dueDate: string;\n termsOfPayment: string;\n};\n\nexport type InternationlizationChoiceTemplateSpecificDepositHeader = {\n title: string;\n expirationDate: string;\n termsOfPayment: string;\n};\n\nexport type InternationalizationChoiceTemplateFooter = {\n penalties: string;\n discount: string;\n recoveryCosts: string;\n capital: string;\n siren: string;\n vatCode: string;\n marginVat: string;\n legalVatMention: string;\n shouldPayTaxAfterDebit: string;\n generate: string;\n};\n\nexport type InternationalizationChoiceTemplateOptions = {\n vatMention: string;\n paymentType: string;\n bank: string;\n approval: string;\n comment: string;\n};\n\nexport type InternationalizationChoiceTemplateTable = {\n headers: {\n product: string;\n quantity: string;\n unitPrice: string;\n unitPriceWithoutVat: string;\n discount: string;\n vat: string;\n amount: string;\n amountWithoutVat: string;\n base: string;\n rate: string;\n vatAmount: string;\n recap: string;\n };\n lines: {\n totalHt: string;\n vat: string;\n totalTTC: string;\n totalWhitoutVat: string;\n netToPay: string;\n remainderToPay: string;\n deposit: string;\n };\n};\n\nexport type InternationalizationChoiceTemplateCommon = {\n headers: InternationalizationChoicesTemplateCommonHeader;\n footer: InternationalizationChoiceTemplateFooter;\n options: InternationalizationChoiceTemplateOptions;\n table: InternationalizationChoiceTemplateTable;\n};\n\nexport type InternationalizationChoiceTemplate = {\n common: InternationalizationChoiceTemplateCommon;\n invoice: {\n headers: InternationalizationChoiceTemplateSpecificHeader;\n };\n estimate: {\n headers: InternationalizationChoiceTemplateSpecificHeader;\n };\n orderForm: {\n headers: InternationalizationChoiceTemplateSpecificHeader;\n };\n deposit: {\n headers: InternationlizationChoiceTemplateSpecificDepositHeader;\n };\n asset: {\n headers: InternationalizationChoiceTemplateSpecificHeader;\n };\n remainder: {\n headers: InternationalizationChoiceTemplateSpecificHeader;\n };\n draft: {\n headers: InternationalizationChoiceTemplateSpecificHeader;\n };\n};\n\nexport type InternationalizationChoiceMailCommon = {\n dueDate: string;\n generate: string;\n displayDocument: string;\n totalHt: string;\n totalVat: string;\n totalTtc: string;\n send: string;\n};\n\nexport type InternationalizationChoiceMailSpecific = {\n title: string;\n subTitle: string;\n};\n\nexport type InternationalizationChoiceMail = {\n common: InternationalizationChoiceMailCommon;\n invoice: InternationalizationChoiceMailSpecific;\n estimate: InternationalizationChoiceMailSpecific;\n orderForm: InternationalizationChoiceMailSpecific;\n deposit: InternationalizationChoiceMailSpecific;\n asset: InternationalizationChoiceMailSpecific;\n remainder: InternationalizationChoiceMailSpecific;\n default: InternationalizationChoiceMailSpecific;\n};\n\nexport type InternationalizationChoices = {\n inputLists: InternationalizationChoiceInputList;\n template: InternationalizationChoiceTemplate;\n mail: InternationalizationChoiceMail;\n};\n\nexport type InternationalizationChoicesType = {\n [key: string]: InternationalizationChoices;\n};\n"]}
@@ -69,7 +69,7 @@ export const bodyTemplate = `<html class="pdf-content">
69
69
  ${headOfDocument}
70
70
 
71
71
  <div class="row mt-25">
72
- <% if (title) { %>Titre : <%= title %><% } %>
72
+ <% if (title) { %><%=languageTemplate.template.common.headers.title %> : <%= title %><% } %>
73
73
  </div>
74
74
 
75
75
  <div class="row mt-10">${commonTemplate.products}</div>
@@ -1 +1 @@
1
- {"version":3,"file":"body.js","sourceRoot":"","sources":["../../../../../ts/utils/commercialManagement/templates/body.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAC1E,OAAO,EAAE,4BAA4B,EAAE,MAAM,UAAU,CAAC;AAExD,MAAM,cAAc,GAAG,IAAI,4BAA4B,EAAE,CAAC;AAE1D,MAAM,cAAc,GAAG;;;YAGX,cAAc,CAAC,IAAI;YACnB,cAAc,CAAC,OAAO;;;4CAGU,cAAc,CAAC,OAAO;UACxD,cAAc,CAAC,IAAI;;;;;;;yCAOY,mBAAmB,CAAC,GAAG;;gDAEhB,mBAAmB,CAAC,KAAK;;gDAEzB,mBAAmB,CAAC,OAAO;;gDAE3B,mBAAmB,CAAC,KAAK;;gDAEzB,mBAAmB,CAAC,KAAK;;gDAEzB,mBAAmB,CAAC,OAAO;;;;;mDAKxB,mBAAmB,CAAC,OAAO;;oBAE1D,mBAAmB,CAAC,GAAG,KAAK,mBAAmB,CAAC,KAAK;;;;;;;2DAOd,mBAAmB,CAAC,OAAO;;;;kDAIpC,mBAAmB,CAAC,GAAG,KAAK,mBAAmB,CAAC,KAAK;;;;;;;;;;;;;;;;;SAiB9F,CAAC;AAEV,MAAM,CAAC,MAAM,YAAY,GAAG;;;;IAIxB,cAAc;;;;;;6BAMW,cAAc,CAAC,QAAQ;;;;;YAKxC,cAAc,CAAC,iBAAiB;;;;;;;;;;UAUlC,cAAc,CAAC,oBAAoB;;sCAEP,mBAAmB,CAAC,GAAG,KAAK,mBAAmB,CAAC,KAAK;8DAC7B,cAAc,CAAC,aAAa;;;;;;;;;;;;;;;;;;wEAkBlB,mBAAmB,CAAC,KAAK,iCAAiC,mBAAmB,CAAC,GAAG;;;;oFAIrE,mBAAmB,CAAC,OAAO,iCAAiC,mBAAmB,CAAC,OAAO,iCAAiC,mBAAmB,CAAC,KAAK,iCAAiC,mBAAmB,CAAC,KAAK;;;;;;;QAOvR,cAAc,CAAC,KAAK;;;QAGpB,cAAc,CAAC,YAAY;;QAE3B,CAAC","sourcesContent":["import { EstimateInvoiceType } from '../../../types/Enum/EstimateInvoice';\nimport { CommercialDocumentCommonHTML } from './common';\n\nconst commonTemplate = new CommercialDocumentCommonHTML();\n\nconst headOfDocument = `<div class=\"row space-between\">\n <% if (settings && settings.logoAlignment === 'left') { %>\n <div class=\"society-informations\">\n ${commonTemplate.logo}\n ${commonTemplate.company}\n </div>\n <% } else { %>\n <div class=\"society-informations\">${commonTemplate.company}</div>\n ${commonTemplate.logo}\n <% } %>\n </div>\n\n <div class=\"row space-between items-end\" style=\"margin-top: 10px\">\n <div style=\"width: 45%; margin-top: auto;\">\n <span class=\"document-reference\">\n <% if (idEstimateInvoiceType === ${EstimateInvoiceType.BON}) { %>\n <%= languageTemplate.template.orderForm.headers.title %>\n <% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.DEVIS}) { %>\n <%= languageTemplate.template.estimate.headers.title %>\n <% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.FACTURE}) { %>\n <%= languageTemplate.template.invoice.headers.title %>\n <% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.AVOIR}) { %>\n <%= languageTemplate.template.asset.headers.title %>\n <% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.RESTE}) { %>\n <%= languageTemplate.template.remainder.headers.title %>\n <% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.ACOMPTE}) { %>\n <%= languageTemplate.template.deposit.headers.title %>\n <% } %>\n <%= reference %></span><br/>\n <% if(emissionDate) {%><span class=\"document-emission-date\"> <%= languageTemplate.template.common.headers.emissionDate %> : <%= emissionDateFormatted %></span><br/><% } %>\n <% if(dueDate && idEstimateInvoiceType !== ${EstimateInvoiceType.ACOMPTE}) {%>\n <span class=\"document-due-date\">\n <% if ([${EstimateInvoiceType.BON}, ${EstimateInvoiceType.DEVIS}].includes(idEstimateInvoiceType)) {%>\n <%= languageTemplate.template.estimate.headers.dueDate %> :\n <% } else { %>\n <%= languageTemplate.template.invoice.headers.dueDate %> :\n <% } %>\n <%= dueDateFormatted %></span>\n <% } %>\n <% if (expirationDate && idEstimateInvoiceType === ${EstimateInvoiceType.ACOMPTE}) {%>\n <span class=\"document-due-date\"><%= languageTemplate.template.deposit.headers.expirationDate %> : : <%= expirationDateFormatted %></span>\n <% } %>\n <% if(termsOfPayment) { %>\n <br/><p style=\"margin-bottom: 0px;\"><%= [${EstimateInvoiceType.BON}, ${EstimateInvoiceType.DEVIS}].includes(idEstimateInvoiceType) ? languageTemplate.template.estimate.headers.termsOfPayment : languageTemplate.template.invoice.headers.termsOfPayment %> : <%= termsOfPayment %></p>\n <% } %>\n </div>\n <div style=\"width: 40%; margin-top: auto;\">\n <p></p>\n <% if (thirdParty) { %>\n <div class=\"<%= settings && settings.isCoordinatesFrameDisplayed ? 'customer-border' : '' %>\">\n <% if(thirdParty.company) {%><b><%= thirdParty.company %></b><br/><% } %>\n <% if(thirdParty.fullname) {%><%= thirdParty.fullname %><br/><% } %>\n <% if(thirdParty.address) {%><%= thirdParty.address %><br/><% } %>\n <% if(thirdParty.zipCode) {%><%= thirdParty.zipCode + ' ' %><% } %><%= thirdParty.city %> <%= thirdParty.country %><br/>\n <% if(thirdParty.deliveryAddress && thirdParty.deliveryCity && thirdParty.deliveryZipCode) {%>Adresse de livraison : <%= thirdParty.deliveryAddress %> <%= thirdParty.deliveryZipCode %> <%= thirdParty.deliveryCity %> <%= thirdParty.deliveryCountry %><br/><% } %>\n <% if(thirdParty.nSiret) {%>SIRET : <%= thirdParty.nSiret %><br/><% } %>\n <% if(thirdParty.nTva) {%>N° TVA : <%= thirdParty.nTva %><% } %>\n </div>\n <% } %>\n </div>\n </div>`;\n\nexport const bodyTemplate = `<html class=\"pdf-content\">\n\n <body>\n\n ${headOfDocument}\n\n <div class=\"row mt-25\">\n <% if (title) { %>Titre : <%= title %><% } %>\n </div>\n\n <div class=\"row mt-10\">${commonTemplate.products}</div>\n\n <div class=\"row space-between mt-20\">\n <div style=\"width: 55%;\">\n <% if (disableVat !== true && vats.length) { %>\n ${commonTemplate.vatRecapitulation}\n <% } %>\n <% if (vatMention) { %><div class=\"vat-mention <%= disableVat !== true ? 'mt-20' : ''%>\"><%= vatMention %></div><% } %>\n <% if (comment) { %>\n <p class=\"mt-20\"><%= languageTemplate.template.common.options.comment %> :<br/>\n <%- comment %>\n <% } %>\n </div>\n\n <div>\n ${commonTemplate.amountRecapitulation}\n\n <% if (isStripeAllowed && ![${EstimateInvoiceType.BON}, ${EstimateInvoiceType.DEVIS}].includes(idEstimateInvoiceType)) { %>\n <div style=\"text-align: right; margin-top: 30px;\">${commonTemplate.paymentButton}</div>\n <% } %>\n </div>\n \n </div>\n\n <% if ((settings && (settings.iban || settings.bic || settings.bank)) || paymentType) { %>\n <div class=\"row mt-30 space-between\" style=\"page-break-inside: avoid !important;\">\n <div>\n <% if ((settings && (settings.iban || settings.bic || settings.bank)) || paymentType) { %>\n <% if(paymentType) { %><%= languageTemplate.template.common.options.paymentType %> : <%= paymentType %><br/><% } %>\n <% if(settings.bank) { %><%= languageTemplate.template.common.options.bank %> : <%= settings.bank %><br/><% } %>\n <% if(settings.iban) { %>IBAN : <%= settings.iban %><br/><% } %>\n <% if(settings.bic) { %>BIC : <%= settings.bic %><% } %>\n <% } %>\n </div>\n </div>\n <% } %>\n <% if (settings && settings.bonPour && (idEstimateInvoiceType === ${EstimateInvoiceType.DEVIS} || idEstimateInvoiceType === ${EstimateInvoiceType.BON})) { %>\n <br/><%= languageTemplate.template.common.options.approval %> : <br/><br/><br/><br/>\n <% } %>\n\n <% if (cgv && (settings && settings.invoiceCgv) && (idEstimateInvoiceType === ${EstimateInvoiceType.FACTURE} || idEstimateInvoiceType === ${EstimateInvoiceType.ACOMPTE} || idEstimateInvoiceType === ${EstimateInvoiceType.AVOIR} || idEstimateInvoiceType === ${EstimateInvoiceType.RESTE} )) { %>\n <br><div style=\"page-break-after:always;\"></div>\n <div id=\"WYSIWYG\"><%- cgv %></div>\n <% } %>\n </body>\n\n <style>\n ${commonTemplate.style}\n </style>\n <style>\n ${commonTemplate.styleWYSIWYG}\n </style>\n</html>`;\n"]}
1
+ {"version":3,"file":"body.js","sourceRoot":"","sources":["../../../../../ts/utils/commercialManagement/templates/body.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAC1E,OAAO,EAAE,4BAA4B,EAAE,MAAM,UAAU,CAAC;AAExD,MAAM,cAAc,GAAG,IAAI,4BAA4B,EAAE,CAAC;AAE1D,MAAM,cAAc,GAAG;;;YAGX,cAAc,CAAC,IAAI;YACnB,cAAc,CAAC,OAAO;;;4CAGU,cAAc,CAAC,OAAO;UACxD,cAAc,CAAC,IAAI;;;;;;;yCAOY,mBAAmB,CAAC,GAAG;;gDAEhB,mBAAmB,CAAC,KAAK;;gDAEzB,mBAAmB,CAAC,OAAO;;gDAE3B,mBAAmB,CAAC,KAAK;;gDAEzB,mBAAmB,CAAC,KAAK;;gDAEzB,mBAAmB,CAAC,OAAO;;;;;mDAKxB,mBAAmB,CAAC,OAAO;;oBAE1D,mBAAmB,CAAC,GAAG,KAAK,mBAAmB,CAAC,KAAK;;;;;;;2DAOd,mBAAmB,CAAC,OAAO;;;;kDAIpC,mBAAmB,CAAC,GAAG,KAAK,mBAAmB,CAAC,KAAK;;;;;;;;;;;;;;;;;SAiB9F,CAAC;AAEV,MAAM,CAAC,MAAM,YAAY,GAAG;;;;IAIxB,cAAc;;;;;;6BAMW,cAAc,CAAC,QAAQ;;;;;YAKxC,cAAc,CAAC,iBAAiB;;;;;;;;;;UAUlC,cAAc,CAAC,oBAAoB;;sCAEP,mBAAmB,CAAC,GAAG,KAAK,mBAAmB,CAAC,KAAK;8DAC7B,cAAc,CAAC,aAAa;;;;;;;;;;;;;;;;;;wEAkBlB,mBAAmB,CAAC,KAAK,iCAAiC,mBAAmB,CAAC,GAAG;;;;oFAIrE,mBAAmB,CAAC,OAAO,iCAAiC,mBAAmB,CAAC,OAAO,iCAAiC,mBAAmB,CAAC,KAAK,iCAAiC,mBAAmB,CAAC,KAAK;;;;;;;QAOvR,cAAc,CAAC,KAAK;;;QAGpB,cAAc,CAAC,YAAY;;QAE3B,CAAC","sourcesContent":["import { EstimateInvoiceType } from '../../../types/Enum/EstimateInvoice';\nimport { CommercialDocumentCommonHTML } from './common';\n\nconst commonTemplate = new CommercialDocumentCommonHTML();\n\nconst headOfDocument = `<div class=\"row space-between\">\n <% if (settings && settings.logoAlignment === 'left') { %>\n <div class=\"society-informations\">\n ${commonTemplate.logo}\n ${commonTemplate.company}\n </div>\n <% } else { %>\n <div class=\"society-informations\">${commonTemplate.company}</div>\n ${commonTemplate.logo}\n <% } %>\n </div>\n\n <div class=\"row space-between items-end\" style=\"margin-top: 10px\">\n <div style=\"width: 45%; margin-top: auto;\">\n <span class=\"document-reference\">\n <% if (idEstimateInvoiceType === ${EstimateInvoiceType.BON}) { %>\n <%= languageTemplate.template.orderForm.headers.title %>\n <% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.DEVIS}) { %>\n <%= languageTemplate.template.estimate.headers.title %>\n <% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.FACTURE}) { %>\n <%= languageTemplate.template.invoice.headers.title %>\n <% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.AVOIR}) { %>\n <%= languageTemplate.template.asset.headers.title %>\n <% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.RESTE}) { %>\n <%= languageTemplate.template.remainder.headers.title %>\n <% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.ACOMPTE}) { %>\n <%= languageTemplate.template.deposit.headers.title %>\n <% } %>\n <%= reference %></span><br/>\n <% if(emissionDate) {%><span class=\"document-emission-date\"> <%= languageTemplate.template.common.headers.emissionDate %> : <%= emissionDateFormatted %></span><br/><% } %>\n <% if(dueDate && idEstimateInvoiceType !== ${EstimateInvoiceType.ACOMPTE}) {%>\n <span class=\"document-due-date\">\n <% if ([${EstimateInvoiceType.BON}, ${EstimateInvoiceType.DEVIS}].includes(idEstimateInvoiceType)) {%>\n <%= languageTemplate.template.estimate.headers.dueDate %> :\n <% } else { %>\n <%= languageTemplate.template.invoice.headers.dueDate %> :\n <% } %>\n <%= dueDateFormatted %></span>\n <% } %>\n <% if (expirationDate && idEstimateInvoiceType === ${EstimateInvoiceType.ACOMPTE}) {%>\n <span class=\"document-due-date\"><%= languageTemplate.template.deposit.headers.expirationDate %> : : <%= expirationDateFormatted %></span>\n <% } %>\n <% if(termsOfPayment) { %>\n <br/><p style=\"margin-bottom: 0px;\"><%= [${EstimateInvoiceType.BON}, ${EstimateInvoiceType.DEVIS}].includes(idEstimateInvoiceType) ? languageTemplate.template.estimate.headers.termsOfPayment : languageTemplate.template.invoice.headers.termsOfPayment %> : <%= termsOfPayment %></p>\n <% } %>\n </div>\n <div style=\"width: 40%; margin-top: auto;\">\n <p></p>\n <% if (thirdParty) { %>\n <div class=\"<%= settings && settings.isCoordinatesFrameDisplayed ? 'customer-border' : '' %>\">\n <% if(thirdParty.company) {%><b><%= thirdParty.company %></b><br/><% } %>\n <% if(thirdParty.fullname) {%><%= thirdParty.fullname %><br/><% } %>\n <% if(thirdParty.address) {%><%= thirdParty.address %><br/><% } %>\n <% if(thirdParty.zipCode) {%><%= thirdParty.zipCode + ' ' %><% } %><%= thirdParty.city %> <%= thirdParty.country %><br/>\n <% if(thirdParty.deliveryAddress && thirdParty.deliveryCity && thirdParty.deliveryZipCode) {%>Adresse de livraison : <%= thirdParty.deliveryAddress %> <%= thirdParty.deliveryZipCode %> <%= thirdParty.deliveryCity %> <%= thirdParty.deliveryCountry %><br/><% } %>\n <% if(thirdParty.nSiret) {%>SIRET : <%= thirdParty.nSiret %><br/><% } %>\n <% if(thirdParty.nTva) {%>N° TVA : <%= thirdParty.nTva %><% } %>\n </div>\n <% } %>\n </div>\n </div>`;\n\nexport const bodyTemplate = `<html class=\"pdf-content\">\n\n <body>\n\n ${headOfDocument}\n\n <div class=\"row mt-25\">\n <% if (title) { %><%=languageTemplate.template.common.headers.title %> : <%= title %><% } %>\n </div>\n\n <div class=\"row mt-10\">${commonTemplate.products}</div>\n\n <div class=\"row space-between mt-20\">\n <div style=\"width: 55%;\">\n <% if (disableVat !== true && vats.length) { %>\n ${commonTemplate.vatRecapitulation}\n <% } %>\n <% if (vatMention) { %><div class=\"vat-mention <%= disableVat !== true ? 'mt-20' : ''%>\"><%= vatMention %></div><% } %>\n <% if (comment) { %>\n <p class=\"mt-20\"><%= languageTemplate.template.common.options.comment %> :<br/>\n <%- comment %>\n <% } %>\n </div>\n\n <div>\n ${commonTemplate.amountRecapitulation}\n\n <% if (isStripeAllowed && ![${EstimateInvoiceType.BON}, ${EstimateInvoiceType.DEVIS}].includes(idEstimateInvoiceType)) { %>\n <div style=\"text-align: right; margin-top: 30px;\">${commonTemplate.paymentButton}</div>\n <% } %>\n </div>\n \n </div>\n\n <% if ((settings && (settings.iban || settings.bic || settings.bank)) || paymentType) { %>\n <div class=\"row mt-30 space-between\" style=\"page-break-inside: avoid !important;\">\n <div>\n <% if ((settings && (settings.iban || settings.bic || settings.bank)) || paymentType) { %>\n <% if(paymentType) { %><%= languageTemplate.template.common.options.paymentType %> : <%= paymentType %><br/><% } %>\n <% if(settings.bank) { %><%= languageTemplate.template.common.options.bank %> : <%= settings.bank %><br/><% } %>\n <% if(settings.iban) { %>IBAN : <%= settings.iban %><br/><% } %>\n <% if(settings.bic) { %>BIC : <%= settings.bic %><% } %>\n <% } %>\n </div>\n </div>\n <% } %>\n <% if (settings && settings.bonPour && (idEstimateInvoiceType === ${EstimateInvoiceType.DEVIS} || idEstimateInvoiceType === ${EstimateInvoiceType.BON})) { %>\n <br/><%= languageTemplate.template.common.options.approval %> : <br/><br/><br/><br/>\n <% } %>\n\n <% if (cgv && (settings && settings.invoiceCgv) && (idEstimateInvoiceType === ${EstimateInvoiceType.FACTURE} || idEstimateInvoiceType === ${EstimateInvoiceType.ACOMPTE} || idEstimateInvoiceType === ${EstimateInvoiceType.AVOIR} || idEstimateInvoiceType === ${EstimateInvoiceType.RESTE} )) { %>\n <br><div style=\"page-break-after:always;\"></div>\n <div id=\"WYSIWYG\"><%- cgv %></div>\n <% } %>\n </body>\n\n <style>\n ${commonTemplate.style}\n </style>\n <style>\n ${commonTemplate.styleWYSIWYG}\n </style>\n</html>`;\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silexpert/core",
3
- "version": "1.3.6",
3
+ "version": "1.3.8",
4
4
  "description": "Silex Core perform HTTP Request and object binding. Silex core helps developers to retrieve and return formatted object",
5
5
  "homepage": "https://gitlab.compta-clementine.fr/dev/silex-api",
6
6
  "main": "dist/cjs/index.js",
@@ -0,0 +1,40 @@
1
+ import {
2
+ CreateCompanyMarketingInformation,
3
+ ICompanyCreationForm,
4
+ ICompanyMarketingInformation,
5
+ UpdateCompanyMarketingInformation,
6
+ } from '../../types';
7
+ import { Resource } from '../Resource';
8
+
9
+ export class CompanyMarketingInformation extends Resource {
10
+ /**
11
+ * Create an element in companyMarketingInformation table
12
+ * @param { number } idSociety
13
+ * @param { CreateCompanyMarketingInformation } body
14
+ * @returns { Promise<ICompanyMarketingInformation> }
15
+ */
16
+ create(idSociety: number, body: CreateCompanyMarketingInformation): Promise<ICompanyMarketingInformation> {
17
+ return this.axios.$post(`/societies/${idSociety}/marketing-informations`, body);
18
+ }
19
+
20
+ /**
21
+ * Update an element in companyMarketingInformation table
22
+ * @param { number } idSociety
23
+ * @param { UpdateCompanyMarketingInformation } body
24
+ * @returns { Promise<ICompanyCreationForm> }
25
+ */
26
+ update(idSociety: number, body: UpdateCompanyMarketingInformation): Promise<ICompanyCreationForm> {
27
+ return this.axios.$put(`/societies/${idSociety}/marketing-informations`, body);
28
+ }
29
+
30
+ /**
31
+ * Get an element by idSociety in companyMarketingInformation table
32
+ * @param { number } idSociety
33
+ * @returns { Promise<ICompanyMarketingInformation> }
34
+ */
35
+ get(idSociety: number, signal?: AbortSignal): Promise<ICompanyMarketingInformation> {
36
+ return this.axios.$get(`/societies/${idSociety}/marketing-informations`, {
37
+ ...(signal ? { signal } : {}),
38
+ });
39
+ }
40
+ }
@@ -178,6 +178,7 @@ import { CommercialConditionOfSale } from './resources/CommercialConditionOfSale
178
178
  import { StatisticMarketing } from './resources/statistic/Marketing';
179
179
  import { Follow } from './resources/Follow';
180
180
  import { AbsenceRequest } from './resources/AbsenceRequest';
181
+ import { CompanyMarketingInformation } from './resources/CompanyMarketingInformation';
181
182
 
182
183
  export const resources = {
183
184
  simulation: Simulation,
@@ -360,4 +361,5 @@ export const resources = {
360
361
  statisticMarketing: StatisticMarketing,
361
362
  follow: Follow,
362
363
  absenceRequest: AbsenceRequest,
364
+ companyMarketingInformation: CompanyMarketingInformation,
363
365
  };
@@ -327,14 +327,14 @@ export const TimeSlotDetail: TimeSlotDetailType[] = [
327
327
  forWholeService: true,
328
328
  idTimeCounterType: TimeCounterType.ONBOARDING.id,
329
329
  },
330
- // {
331
- // id: TimeSlot.PROSPECT,
332
- // name: 'Rdv commercial',
333
- // internalName: 'Rdv Prospect',
334
- // category: TimeSlotCategoryDetail.find((c) => c.id === TimeSlotCategory.SALES)?.name,
335
- // duration: 30,
336
- // idRole: [Role.COMMERCIAL],
337
- // forWholeService: false,
338
- // idTimeCounterType: TimeCounterType.CALENDLY.id,
339
- // }
330
+ {
331
+ id: TimeSlot.PROSPECT,
332
+ name: 'Rdv commercial',
333
+ internalName: 'Rdv Prospect',
334
+ category: TimeSlotCategoryDetail.find((c) => c.id === TimeSlotCategory.SALES)?.name,
335
+ duration: 15,
336
+ idRole: [Role.COMMERCIAL],
337
+ forWholeService: false,
338
+ idTimeCounterType: TimeCounterType.CALENDLY.id,
339
+ }
340
340
  ];
@@ -0,0 +1,32 @@
1
+ export interface CompanyMarketingInformationPayload {
2
+ /* Comment nous a-t-il connu ? */
3
+ findUs?: number | null; // 0 = Autre | 1 = Pub internet | 2 = Bouche à oreille | 3 = Presse | 4 = a cherché "expert comptable" ou un terme similaire sur un moteur de recherche et a trouvé notre site | 5 = Réseaux sociaux
4
+ findUsDetails?: string | null;
5
+ /* Que recherche votre prospect ? */
6
+ lookingFor?: number[] | null; // 0 = Autre | 1 = Création de société | 2 = Suivi comptable | 3 = Gestion Juridique | 4 = Social | 5 = Logiciel | 6 = Conseil
7
+ lookingForDetails?: string | null;
8
+ /* Solution de paiement en ligne */
9
+ onlinePaymentSolution?: number | null; // 0 = Autre | 1 = Non
10
+ onlinePaymentSolutionDetails?: string | null;
11
+ /* Etablissement de bilan et des déclarations */
12
+ drawingUp?: number | null; // 0 = Autre | 1 = Non
13
+ drawingUpDetails?: string | null;
14
+ /* Des conseils comptables et en gestion */
15
+ accountingManagementAdvice?: number | null; // 0 = Autre | 1 = Non
16
+ accountingManagementAdviceDetails?: string | null;
17
+ /* CRM */
18
+ CRM?: number | null; // 0 = Autre | 1 = Non
19
+ CRMDetails?: string | null;
20
+ /* Le recouvrement */
21
+ collection?: number | null; // 0 = Autre | 1 = Non
22
+ collectionDetails?: string | null;
23
+ /* Etablir ses devis et facture */
24
+ drawingUpEstimate?: number | null; // 0 = Autre | 1 = Non
25
+ drawingUpEstimateDetails?: string | null;
26
+ /* Le pilotage de sa trésorerie et tenue comptable */
27
+ bookKeeping?: number | null; // 0 = Autre | 1 = Non
28
+ bookKeepingDetails?: string | null;
29
+ /* Le prospect éprouve de l'intérêt pour... */
30
+ interestedBy?: number[] | null; // 0 = Autre | 1 = Création d'entreprise | 2 = Le pilotage de sa trésorerie et tenue comptable | 3 = Le module de devis/facturation | 4 = Recouvrement | 5 = CRM | 6 = Accompagnement | 7 = L'établissement du bilan et des déclarations | 8 = Solution de paiement en ligne
31
+ interestedByDetails?: string | null;
32
+ }
@@ -0,0 +1,121 @@
1
+ import { IsArray, IsNumber, IsOptional, IsString, ValidateNested } from 'class-validator';
2
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
+ import { CompanyMarketingInformationPayload } from './CompanyMarketingInformationPayload';
4
+
5
+ export class CreateCompanyMarketingInformationData implements CompanyMarketingInformationPayload {
6
+ /* Comment nous a-t-il connu ? */
7
+ @ApiPropertyOptional()
8
+ @IsOptional()
9
+ @IsNumber()
10
+ findUs?: number | null;
11
+
12
+ @ApiPropertyOptional()
13
+ @IsOptional()
14
+ @IsString()
15
+ findUsDetails?: string | null;
16
+
17
+ /* Que recherche votre prospect ? */
18
+ @ApiPropertyOptional()
19
+ @IsOptional()
20
+ @IsArray()
21
+ lookingFor?: number[] | null;
22
+
23
+ @ApiPropertyOptional()
24
+ @IsOptional()
25
+ @IsString()
26
+ lookingForDetails?: string | null;
27
+
28
+ /* Solution de paiement en ligne */
29
+ @ApiPropertyOptional()
30
+ @IsOptional()
31
+ @IsNumber()
32
+ onlinePaymentSolution?: number | null;
33
+
34
+ @ApiPropertyOptional()
35
+ @IsOptional()
36
+ @IsString()
37
+ onlinePaymentSolutionDetails?: string | null;
38
+
39
+ /* Etablissement de bilan et des déclarations */
40
+ @ApiPropertyOptional()
41
+ @IsOptional()
42
+ @IsNumber()
43
+ drawingUp?: number | null;
44
+
45
+ @ApiPropertyOptional()
46
+ @IsOptional()
47
+ @IsString()
48
+ drawingUpDetails?: string | null;
49
+
50
+ /* Des conseils comptables et en gestion */
51
+ @ApiPropertyOptional()
52
+ @IsOptional()
53
+ @IsNumber()
54
+ accountingManagementAdvice?: number | null;
55
+
56
+ @ApiPropertyOptional()
57
+ @IsOptional()
58
+ @IsString()
59
+ accountingManagementAdviceDetails?: string | null;
60
+
61
+ /* CRM */
62
+ @ApiPropertyOptional()
63
+ @IsOptional()
64
+ @IsNumber()
65
+ CRM?: number | null;
66
+
67
+ @ApiPropertyOptional()
68
+ @IsOptional()
69
+ @IsString()
70
+ CRMDetails?: string | null;
71
+
72
+ /* Le recouvrement */
73
+ @ApiPropertyOptional()
74
+ @IsOptional()
75
+ @IsNumber()
76
+ collection?: number | null;
77
+
78
+ @ApiPropertyOptional()
79
+ @IsOptional()
80
+ @IsString()
81
+ collectionDetails?: string | null;
82
+
83
+ /* Etablir ses devis et facture */
84
+ @ApiPropertyOptional()
85
+ @IsOptional()
86
+ @IsNumber()
87
+ drawingUpEstimate?: number | null;
88
+
89
+ @ApiPropertyOptional()
90
+ @IsOptional()
91
+ @IsString()
92
+ drawingUpEstimateDetails?: string | null;
93
+
94
+ /* Le pilotage de sa trésorerie et tenue comptable */
95
+ @ApiPropertyOptional()
96
+ @IsOptional()
97
+ @IsNumber()
98
+ bookKeeping?: number | null;
99
+
100
+ @ApiPropertyOptional()
101
+ @IsOptional()
102
+ @IsString()
103
+ bookKeepingDetails?: string | null;
104
+
105
+ /* Le prospect éprouve de l'intérêt pour... */
106
+ @ApiPropertyOptional()
107
+ @IsOptional()
108
+ @IsArray()
109
+ interestedBy?: number[] | null;
110
+
111
+ @ApiPropertyOptional()
112
+ @IsOptional()
113
+ @IsString()
114
+ interestedByDetails?: string | null;
115
+ }
116
+
117
+ export class CreateCompanyMarketingInformation {
118
+ @ApiProperty()
119
+ @ValidateNested()
120
+ payload: CreateCompanyMarketingInformationData;
121
+ }
@@ -0,0 +1,10 @@
1
+ import { ICompanyMarketingInformation } from '../../models/ICompanyMarketingInformation';
2
+ import { CreateCompanyMarketingInformationData } from './CreateCompanyMarketingInformation';
3
+ import { ApiPropertyOptional } from '../../../../utils';
4
+ import { IsOptional } from 'class-validator';
5
+
6
+ export class UpdateCompanyMarketingInformation implements Partial<ICompanyMarketingInformation> {
7
+ @ApiPropertyOptional()
8
+ @IsOptional()
9
+ payload: CreateCompanyMarketingInformationData;
10
+ }
@@ -32,9 +32,10 @@ export class CreateRegulation {
32
32
  @ToBoolean()
33
33
  sendMail?: boolean;
34
34
 
35
- @ApiProperty()
35
+ @ApiPropertyOptional()
36
+ @IsOptional()
36
37
  @IsString()
37
- comment: string;
38
+ comment?: string;
38
39
 
39
40
  @ApiPropertyOptional()
40
41
  @IsOptional()
@@ -0,0 +1,13 @@
1
+ import { CompanyMarketingInformationPayload } from '../api/companyMarketingInformation/CompanyMarketingInformationPayload';
2
+ import { ISociety } from './ISociety';
3
+
4
+ export interface ICompanyMarketingInformation {
5
+ id?: number;
6
+ idSociety: number;
7
+ payload: CompanyMarketingInformationPayload;
8
+ createdAt?: Date;
9
+ updatedAt?: Date;
10
+
11
+ /* Associations */
12
+ society?: ISociety;
13
+ }
package/ts/types/index.ts CHANGED
@@ -333,6 +333,7 @@ export * from './Interface/models/ICollaboraterDetail';
333
333
  export * from './Interface/models/IExpertAnnuary';
334
334
  export * from './Interface/models/IUserTimeSlot';
335
335
  export * from './Interface/models/ICompanyCreationForm';
336
+ export * from './Interface/models/ICompanyMarketingInformation';
336
337
  export * from './Interface/models/IAnnotation';
337
338
  export * from './Interface/models/ILoanEarlyRepayment';
338
339
  export * from './Interface/models/IPrevisionalForm';
@@ -1147,6 +1148,9 @@ export * from './Interface/api/userSocietyPermission/QueryDeleteSocietyPermissio
1147
1148
  export * from './Interface/api/companyCreationForm/CreateCompanyCreationForm';
1148
1149
  export * from './Interface/api/companyCreationForm/UpdateCompanyCreationForm';
1149
1150
  export * from './Interface/api/companyCreationForm/CompanyCreationFormPayload';
1151
+ export * from './Interface/api/companyMarketingInformation/CompanyMarketingInformationPayload';
1152
+ export * from './Interface/api/companyMarketingInformation/CreateCompanyMarketingInformation';
1153
+ export * from './Interface/api/companyMarketingInformation/UpdateCompanyMarketingInformation';
1150
1154
  export * from './Interface/api/sellsy/CreateInvoicesSellsy';
1151
1155
  export * from './Interface/api/PaymentRecovery/Create';
1152
1156
  export * from './Interface/api/yousign/index';
@@ -57,6 +57,7 @@ export const internationalizationChoices: InternationalizationChoicesType = {
57
57
  template: {
58
58
  common: {
59
59
  headers: {
60
+ title: 'Titre',
60
61
  emissionDate: "Date d'émission",
61
62
  accountingCategory: {
62
63
  title: "Catégorie de l'opération",
@@ -247,6 +248,7 @@ export const internationalizationChoices: InternationalizationChoicesType = {
247
248
  template: {
248
249
  common: {
249
250
  headers: {
251
+ title: 'Title',
250
252
  emissionDate: 'Invoice date',
251
253
  accountingCategory: {
252
254
  title: 'Transaction type',
@@ -19,6 +19,7 @@ export type InternationalizationChoiceInputList = {
19
19
  };
20
20
 
21
21
  export type InternationalizationChoicesTemplateCommonHeader = {
22
+ title: string;
22
23
  emissionDate: string;
23
24
  accountingCategory: {
24
25
  title: string;
@@ -72,7 +72,7 @@ export const bodyTemplate = `<html class="pdf-content">
72
72
  ${headOfDocument}
73
73
 
74
74
  <div class="row mt-25">
75
- <% if (title) { %>Titre : <%= title %><% } %>
75
+ <% if (title) { %><%=languageTemplate.template.common.headers.title %> : <%= title %><% } %>
76
76
  </div>
77
77
 
78
78
  <div class="row mt-10">${commonTemplate.products}</div>