@silexpert/core 1.1.401 → 1.1.403

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 (82) hide show
  1. package/dist/cjs/types/Enum/CommercialManagement.d.ts +4 -0
  2. package/dist/cjs/types/Enum/CommercialManagement.d.ts.map +1 -1
  3. package/dist/cjs/types/Enum/CommercialManagement.js +6 -1
  4. package/dist/cjs/types/Enum/CommercialManagement.js.map +1 -1
  5. package/dist/cjs/types/Interface/api/commercialManagement/Create.d.ts +5 -1
  6. package/dist/cjs/types/Interface/api/commercialManagement/Create.d.ts.map +1 -1
  7. package/dist/cjs/types/Interface/api/commercialManagement/Create.js +6 -0
  8. package/dist/cjs/types/Interface/api/commercialManagement/Create.js.map +1 -1
  9. package/dist/cjs/types/Interface/api/commercialManagement/Read.d.ts +2 -0
  10. package/dist/cjs/types/Interface/api/commercialManagement/Read.d.ts.map +1 -1
  11. package/dist/cjs/types/Interface/api/commercialManagement/Read.js.map +1 -1
  12. package/dist/cjs/types/Interface/models/IBankAccount.d.ts +0 -1
  13. package/dist/cjs/types/Interface/models/IBankAccount.d.ts.map +1 -1
  14. package/dist/cjs/types/Interface/models/IBankAccount.js.map +1 -1
  15. package/dist/cjs/types/Interface/models/IEstimateInvoice.d.ts +2 -1
  16. package/dist/cjs/types/Interface/models/IEstimateInvoice.d.ts.map +1 -1
  17. package/dist/cjs/types/Interface/models/IEstimateInvoice.js.map +1 -1
  18. package/dist/cjs/types/Interface/models/ISocietyGescom.d.ts +3 -2
  19. package/dist/cjs/types/Interface/models/ISocietyGescom.d.ts.map +1 -1
  20. package/dist/cjs/types/Interface/models/ISocietyGescom.js.map +1 -1
  21. package/dist/cjs/utils/commercialManagement/document.d.ts.map +1 -1
  22. package/dist/cjs/utils/commercialManagement/document.js +18 -12
  23. package/dist/cjs/utils/commercialManagement/document.js.map +1 -1
  24. package/dist/cjs/utils/commercialManagement/internationalization/choices.d.ts +3 -0
  25. package/dist/cjs/utils/commercialManagement/internationalization/choices.d.ts.map +1 -0
  26. package/dist/cjs/utils/commercialManagement/internationalization/choices.js +417 -0
  27. package/dist/cjs/utils/commercialManagement/internationalization/choices.js.map +1 -0
  28. package/dist/cjs/utils/commercialManagement/internationalization/type.d.ts +144 -0
  29. package/dist/cjs/utils/commercialManagement/internationalization/type.d.ts.map +1 -0
  30. package/dist/cjs/utils/commercialManagement/internationalization/type.js +3 -0
  31. package/dist/cjs/utils/commercialManagement/internationalization/type.js.map +1 -0
  32. package/dist/cjs/utils/commercialManagement/templates/body.js +15 -15
  33. package/dist/cjs/utils/commercialManagement/templates/body.js.map +1 -1
  34. package/dist/cjs/utils/commercialManagement/templates/common.js +37 -37
  35. package/dist/cjs/utils/commercialManagement/templates/common.js.map +1 -1
  36. package/dist/mjs/types/Enum/CommercialManagement.d.ts +4 -0
  37. package/dist/mjs/types/Enum/CommercialManagement.d.ts.map +1 -1
  38. package/dist/mjs/types/Enum/CommercialManagement.js +5 -0
  39. package/dist/mjs/types/Enum/CommercialManagement.js.map +1 -1
  40. package/dist/mjs/types/Interface/api/commercialManagement/Create.d.ts +5 -1
  41. package/dist/mjs/types/Interface/api/commercialManagement/Create.d.ts.map +1 -1
  42. package/dist/mjs/types/Interface/api/commercialManagement/Create.js +10 -1
  43. package/dist/mjs/types/Interface/api/commercialManagement/Create.js.map +1 -1
  44. package/dist/mjs/types/Interface/api/commercialManagement/Read.d.ts +2 -0
  45. package/dist/mjs/types/Interface/api/commercialManagement/Read.d.ts.map +1 -1
  46. package/dist/mjs/types/Interface/api/commercialManagement/Read.js.map +1 -1
  47. package/dist/mjs/types/Interface/models/IBankAccount.d.ts +0 -1
  48. package/dist/mjs/types/Interface/models/IBankAccount.d.ts.map +1 -1
  49. package/dist/mjs/types/Interface/models/IBankAccount.js.map +1 -1
  50. package/dist/mjs/types/Interface/models/IEstimateInvoice.d.ts +2 -1
  51. package/dist/mjs/types/Interface/models/IEstimateInvoice.d.ts.map +1 -1
  52. package/dist/mjs/types/Interface/models/IEstimateInvoice.js.map +1 -1
  53. package/dist/mjs/types/Interface/models/ISocietyGescom.d.ts +3 -2
  54. package/dist/mjs/types/Interface/models/ISocietyGescom.d.ts.map +1 -1
  55. package/dist/mjs/types/Interface/models/ISocietyGescom.js.map +1 -1
  56. package/dist/mjs/utils/commercialManagement/document.d.ts.map +1 -1
  57. package/dist/mjs/utils/commercialManagement/document.js +8 -1
  58. package/dist/mjs/utils/commercialManagement/document.js.map +1 -1
  59. package/dist/mjs/utils/commercialManagement/internationalization/choices.d.ts +3 -0
  60. package/dist/mjs/utils/commercialManagement/internationalization/choices.d.ts.map +1 -0
  61. package/dist/mjs/utils/commercialManagement/internationalization/choices.js +414 -0
  62. package/dist/mjs/utils/commercialManagement/internationalization/choices.js.map +1 -0
  63. package/dist/mjs/utils/commercialManagement/internationalization/type.d.ts +144 -0
  64. package/dist/mjs/utils/commercialManagement/internationalization/type.d.ts.map +1 -0
  65. package/dist/mjs/utils/commercialManagement/internationalization/type.js +2 -0
  66. package/dist/mjs/utils/commercialManagement/internationalization/type.js.map +1 -0
  67. package/dist/mjs/utils/commercialManagement/templates/body.js +15 -15
  68. package/dist/mjs/utils/commercialManagement/templates/body.js.map +1 -1
  69. package/dist/mjs/utils/commercialManagement/templates/common.js +37 -37
  70. package/dist/mjs/utils/commercialManagement/templates/common.js.map +1 -1
  71. package/package.json +1 -1
  72. package/ts/types/Enum/CommercialManagement.ts +6 -1
  73. package/ts/types/Interface/api/commercialManagement/Create.ts +10 -2
  74. package/ts/types/Interface/api/commercialManagement/Read.ts +2 -0
  75. package/ts/types/Interface/models/IBankAccount.ts +0 -1
  76. package/ts/types/Interface/models/IEstimateInvoice.ts +2 -1
  77. package/ts/types/Interface/models/ISocietyGescom.ts +3 -2
  78. package/ts/utils/commercialManagement/document.ts +10 -0
  79. package/ts/utils/commercialManagement/internationalization/choices.ts +421 -0
  80. package/ts/utils/commercialManagement/internationalization/type.ts +156 -0
  81. package/ts/utils/commercialManagement/templates/body.ts +15 -15
  82. package/ts/utils/commercialManagement/templates/common.ts +37 -37
@@ -0,0 +1,144 @@
1
+ import { AccountingCategoryId } from '../../../types/Enum/CommercialManagement';
2
+ export type InternationalizationChoicesHeaders = {
3
+ termsOfPayment: string[];
4
+ accountingCategories: Array<{
5
+ label: string;
6
+ id: AccountingCategoryId;
7
+ }>;
8
+ };
9
+ export type InternationalizationChoicesOptions = {
10
+ penalties: string[];
11
+ vatMention: string[];
12
+ discount: string[];
13
+ recoveryCost: string[];
14
+ paymentType: string[];
15
+ };
16
+ export type InternationalizationChoiceInputList = {
17
+ headers: InternationalizationChoicesHeaders;
18
+ options: InternationalizationChoicesOptions;
19
+ };
20
+ export type InternationalizationChoicesTemplateCommonHeader = {
21
+ emissionDate: string;
22
+ accountingCategory: {
23
+ title: string;
24
+ choices: Array<{
25
+ label: string;
26
+ id: AccountingCategoryId;
27
+ }>;
28
+ };
29
+ };
30
+ export type InternationalizationChoiceTemplateSpecificHeader = {
31
+ title: string;
32
+ dueDate: string;
33
+ termsOfPayment: string;
34
+ };
35
+ export type InternationlizationChoiceTemplateSpecificDepositHeader = {
36
+ title: string;
37
+ expirationDate: string;
38
+ termsOfPayment: string;
39
+ };
40
+ export type InternationalizationChoiceTemplateFooter = {
41
+ penalties: string;
42
+ discount: string;
43
+ recoveryCosts: string;
44
+ capital: string;
45
+ siren: string;
46
+ vatCode: string;
47
+ marginVat: string;
48
+ legalVatMention: string;
49
+ shouldPayTaxAfterDebit: string;
50
+ generate: string;
51
+ };
52
+ export type InternationalizationChoiceTemplateOptions = {
53
+ vatMention: string;
54
+ paymentType: string;
55
+ bank: string;
56
+ approval: string;
57
+ comment: string;
58
+ };
59
+ export type InternationalizationChoiceTemplateTable = {
60
+ headers: {
61
+ product: string;
62
+ quantity: string;
63
+ unitPrice: string;
64
+ unitPriceWithoutVat: string;
65
+ discount: string;
66
+ vat: string;
67
+ amount: string;
68
+ amountWithoutVat: string;
69
+ base: string;
70
+ rate: string;
71
+ vatAmount: string;
72
+ recap: string;
73
+ };
74
+ lines: {
75
+ totalHt: string;
76
+ vat: string;
77
+ totalTTC: string;
78
+ totalWhitoutVat: string;
79
+ netToPay: string;
80
+ remainderToPay: string;
81
+ deposit: string;
82
+ };
83
+ };
84
+ export type InternationalizationChoiceTemplateCommon = {
85
+ headers: InternationalizationChoicesTemplateCommonHeader;
86
+ footer: InternationalizationChoiceTemplateFooter;
87
+ options: InternationalizationChoiceTemplateOptions;
88
+ table: InternationalizationChoiceTemplateTable;
89
+ };
90
+ export type InternationalizationChoiceTemplate = {
91
+ common: InternationalizationChoiceTemplateCommon;
92
+ invoice: {
93
+ headers: InternationalizationChoiceTemplateSpecificHeader;
94
+ };
95
+ estimate: {
96
+ headers: InternationalizationChoiceTemplateSpecificHeader;
97
+ };
98
+ orderForm: {
99
+ headers: InternationalizationChoiceTemplateSpecificHeader;
100
+ };
101
+ deposit: {
102
+ headers: InternationlizationChoiceTemplateSpecificDepositHeader;
103
+ };
104
+ asset: {
105
+ headers: InternationalizationChoiceTemplateSpecificHeader;
106
+ };
107
+ remainder: {
108
+ headers: InternationalizationChoiceTemplateSpecificHeader;
109
+ };
110
+ draft: {
111
+ headers: InternationalizationChoiceTemplateSpecificHeader;
112
+ };
113
+ };
114
+ export type InternationalizationChoiceMailCommon = {
115
+ dueDate: string;
116
+ generate: string;
117
+ displayDocument: string;
118
+ totalHt: string;
119
+ totalVat: string;
120
+ totalTtc: string;
121
+ };
122
+ export type InternationalizationChoiceMailSpecific = {
123
+ title: string;
124
+ subTitle: string;
125
+ };
126
+ export type InternationalizationChoiceMail = {
127
+ common: InternationalizationChoiceMailCommon;
128
+ invoice: InternationalizationChoiceMailSpecific;
129
+ estimate: InternationalizationChoiceMailSpecific;
130
+ orderForm: InternationalizationChoiceMailSpecific;
131
+ deposit: InternationalizationChoiceMailSpecific;
132
+ asset: InternationalizationChoiceMailSpecific;
133
+ remainder: InternationalizationChoiceMailSpecific;
134
+ default: InternationalizationChoiceMailSpecific;
135
+ };
136
+ export type InternationalizationChoices = {
137
+ inputLists: InternationalizationChoiceInputList;
138
+ template: InternationalizationChoiceTemplate;
139
+ mail: InternationalizationChoiceMail;
140
+ };
141
+ export type InternationalizationChoicesType = {
142
+ [key: string]: InternationalizationChoices;
143
+ };
144
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../../ts/utils/commercialManagement/internationalization/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AAEhF,MAAM,MAAM,kCAAkC,GAAG;IAC/C,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,oBAAoB,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,oBAAoB,CAAA;KAAE,CAAC,CAAC;CAC1E,CAAC;AAEF,MAAM,MAAM,kCAAkC,GAAG;IAC/C,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,mCAAmC,GAAG;IAChD,OAAO,EAAE,kCAAkC,CAAC;IAC5C,OAAO,EAAE,kCAAkC,CAAC;CAC7C,CAAC;AAEF,MAAM,MAAM,+CAA+C,GAAG;IAC5D,YAAY,EAAE,MAAM,CAAC;IACrB,kBAAkB,EAAE;QAClB,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,KAAK,CAAC;YAAE,KAAK,EAAE,MAAM,CAAC;YAAC,EAAE,EAAE,oBAAoB,CAAA;SAAE,CAAC,CAAC;KAC7D,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,gDAAgD,GAAG;IAC7D,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,sDAAsD,GAAG;IACnE,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAA;IACtB,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,wCAAwC,GAAG;IACrD,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,sBAAsB,EAAE,MAAM,CAAC;IAC/B,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAGF,MAAM,MAAM,yCAAyC,GAAG;IACtD,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;CAEjB,CAAC;AAEF,MAAM,MAAM,uCAAuC,GAAG;IACpD,OAAO,EAAE;QACP,OAAO,EAAC,MAAM,CAAC;QACf,QAAQ,EAAE,MAAM,CAAC;QACjB,SAAS,EAAE,MAAM,CAAC;QAClB,mBAAmB,EAAE,MAAM,CAAC;QAC5B,QAAQ,EAAE,MAAM,CAAC;QACjB,GAAG,EAAE,MAAM,CAAC;QACZ,MAAM,EAAE,MAAM,CAAC;QACf,gBAAgB,EAAE,MAAM,CAAC;QACzB,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;QACb,SAAS,EAAE,MAAM,CAAC;QAClB,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IACF,KAAK,EAAE;QACL,OAAO,EAAE,MAAM,CAAC;QAChB,GAAG,EAAE,MAAM,CAAC;QACZ,QAAQ,EAAE,MAAM,CAAC;QACjB,eAAe,EAAE,MAAM,CAAC;QACxB,QAAQ,EAAE,MAAM,CAAC;QACjB,cAAc,EAAE,MAAM,CAAC;QACvB,OAAO,EAAE,MAAM,CAAA;KAChB,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,wCAAwC,GAAG;IACrD,OAAO,EAAE,+CAA+C,CAAC;IACzD,MAAM,EAAE,wCAAwC,CAAC;IACjD,OAAO,EAAE,yCAAyC,CAAC;IACnD,KAAK,EAAE,uCAAuC,CAAC;CAChD,CAAC;AAEF,MAAM,MAAM,kCAAkC,GAAG;IAC/C,MAAM,EAAE,wCAAwC,CAAC;IACjD,OAAO,EAAE;QACP,OAAO,EAAE,gDAAgD,CAAC;KAC3D,CAAC;IACF,QAAQ,EAAE;QACR,OAAO,EAAE,gDAAgD,CAAC;KAC3D,CAAC;IACF,SAAS,EAAE;QACT,OAAO,EAAE,gDAAgD,CAAC;KAC3D,CAAC;IACF,OAAO,EAAE;QACP,OAAO,EAAE,sDAAsD,CAAC;KACjE,CAAC;IACF,KAAK,EAAE;QACL,OAAO,EAAE,gDAAgD,CAAC;KAC3D,CAAC;IACF,SAAS,EAAE;QACT,OAAO,EAAE,gDAAgD,CAAC;KAC3D,CAAC;IACF,KAAK,EAAE;QACL,OAAO,EAAE,gDAAgD,CAAC;KAC3D,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,oCAAoC,GAAG;IACjD,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,sCAAsC,GAAG;IACnD,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,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;CAEtC,CAAC;AAEF,MAAM,MAAM,+BAA+B,GAAG;IAC5C,CAAC,GAAG,EAAE,MAAM,GAAG,2BAA2B,CAAA;CAC3C,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=type.js.map
@@ -0,0 +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\n\nexport type InternationalizationChoiceTemplateOptions = {\n vatMention: string;\n paymentType: string;\n bank: string;\n approval: string;\n comment: string;\n \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};\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};\n\nexport type InternationalizationChoicesType = {\n [key: string]: InternationalizationChoices\n};"]}
@@ -20,34 +20,34 @@ const headOfDocument = `<div class="row space-between">
20
20
  <div style="width: 45%; margin-top: auto;">
21
21
  <span class="document-reference">
22
22
  <% if (idEstimateInvoiceType === ${EstimateInvoice_1.EstimateInvoiceType.BON}) { %>
23
- Bon de commande
23
+ <%= languageTemplate.template.orderForm.headers.title %>
24
24
  <% } else if (idEstimateInvoiceType === ${EstimateInvoice_1.EstimateInvoiceType.DEVIS}) { %>
25
- Devis
25
+ <%= languageTemplate.template.estimate.headers.title %>
26
26
  <% } else if (idEstimateInvoiceType === ${EstimateInvoice_1.EstimateInvoiceType.FACTURE}) { %>
27
- Facture
27
+ <%= languageTemplate.template.invoice.headers.title %>
28
28
  <% } else if (idEstimateInvoiceType === ${EstimateInvoice_1.EstimateInvoiceType.AVOIR}) { %>
29
- Avoir
29
+ <%= languageTemplate.template.asset.headers.title %>
30
30
  <% } else if (idEstimateInvoiceType === ${EstimateInvoice_1.EstimateInvoiceType.RESTE}) { %>
31
- Facture de solde
31
+ <%= languageTemplate.template.remainder.headers.title %>
32
32
  <% } else if (idEstimateInvoiceType === ${EstimateInvoice_1.EstimateInvoiceType.ACOMPTE}) { %>
33
- Facture d'acompte
33
+ <%= languageTemplate.template.deposit.headers.title %>
34
34
  <% } %>
35
35
  <%= reference %></span><br/>
36
- <% if(emissionDate) {%><span class="document-emission-date">Date d’émission : <%= emissionDateFormatted %></span><br/><% } %>
36
+ <% if(emissionDate) {%><span class="document-emission-date"> <%= languageTemplate.template.common.headers.emissionDate %> : <%= emissionDateFormatted %></span><br/><% } %>
37
37
  <% if(dueDate && idEstimateInvoiceType !== ${EstimateInvoice_1.EstimateInvoiceType.ACOMPTE}) {%>
38
38
  <span class="document-due-date">
39
39
  <% if ([${EstimateInvoice_1.EstimateInvoiceType.BON}, ${EstimateInvoice_1.EstimateInvoiceType.DEVIS}].includes(idEstimateInvoiceType)) {%>
40
- Valide jusqu'au :
40
+ <%= languageTemplate.template.estimate.headers.dueDate %> :
41
41
  <% } else { %>
42
- Date d'échéance :
42
+ <%= languageTemplate.template.invoice.headers.dueDate %> :
43
43
  <% } %>
44
44
  <%= dueDateFormatted %></span>
45
45
  <% } %>
46
46
  <% if (expirationDate && idEstimateInvoiceType === ${EstimateInvoice_1.EstimateInvoiceType.ACOMPTE}) {%>
47
- <span class="document-due-date">Date d'expiration : <%= expirationDateFormatted %></span>
47
+ <span class="document-due-date"><%= languageTemplate.template.deposit.headers.expirationDate %> : : <%= expirationDateFormatted %></span>
48
48
  <% } %>
49
49
  <% if(termsOfPayment) { %>
50
- <br/><p style="margin-bottom: 0px;"><%= [${EstimateInvoice_1.EstimateInvoiceType.BON}, ${EstimateInvoice_1.EstimateInvoiceType.DEVIS}].includes(idEstimateInvoiceType) ? 'Conditions de règlement' : 'Date limite de règlement' %> : <%= termsOfPayment %></p>
50
+ <br/><p style="margin-bottom: 0px;"><%= [${EstimateInvoice_1.EstimateInvoiceType.BON}, ${EstimateInvoice_1.EstimateInvoiceType.DEVIS}].includes(idEstimateInvoiceType) ? languageTemplate.template.estimate.headers.termsOfPayment : languageTemplate.template.invoice.headers.termsOfPayment %> : <%= termsOfPayment %></p>
51
51
  <% } %>
52
52
  </div>
53
53
  <div style="width: 40%; margin-top: auto;">
@@ -84,7 +84,7 @@ exports.bodyTemplate = `<html class="pdf-content">
84
84
  <% } %>
85
85
  <% if (vatMention) { %><div class="vat-mention <%= disableVat !== true ? 'mt-20' : ''%>"><%= vatMention %></div><% } %>
86
86
  <% if (comment) { %>
87
- <p class="mt-20">Commentaire :<br/>
87
+ <p class="mt-20"><%= languageTemplate.template.common.options.comment %> :<br/>
88
88
  <%- comment %>
89
89
  <% } %>
90
90
  </div>
@@ -103,8 +103,8 @@ exports.bodyTemplate = `<html class="pdf-content">
103
103
  <div class="row mt-30 space-between" style="page-break-inside: avoid !important;">
104
104
  <div>
105
105
  <% if ((settings && (settings.iban || settings.bic || settings.bank)) || paymentType) { %>
106
- <% if(paymentType) { %>Mode de paiement : <%= paymentType %><br/><% } %>
107
- <% if(settings.bank) { %>BANQUE : <%= settings.bank %><br/><% } %>
106
+ <% if(paymentType) { %><%= languageTemplate.template.common.options.paymentType %> : <%= paymentType %><br/><% } %>
107
+ <% if(settings.bank) { %><%= languageTemplate.template.common.options.bank %> : <%= settings.bank %><br/><% } %>
108
108
  <% if(settings.iban) { %>IBAN : <%= settings.iban %><br/><% } %>
109
109
  <% if(settings.bic) { %>BIC : <%= settings.bic %><% } %>
110
110
  <% } %>
@@ -112,7 +112,7 @@ exports.bodyTemplate = `<html class="pdf-content">
112
112
  </div>
113
113
  <% } %>
114
114
  <% if (settings && settings.bonPour && (idEstimateInvoiceType === ${EstimateInvoice_1.EstimateInvoiceType.DEVIS} || idEstimateInvoiceType === ${EstimateInvoice_1.EstimateInvoiceType.BON})) { %>
115
- <br/>Bon pour accord : <br/><br/><br/><br/>
115
+ <br/><%= languageTemplate.template.common.options.approval %> : <br/><br/><br/><br/>
116
116
  <% } %>
117
117
 
118
118
  <% if (cgv && ((settings && settings.invoiceCgv) || idEstimateInvoiceType === ${EstimateInvoice_1.EstimateInvoiceType.DEVIS} || idEstimateInvoiceType === ${EstimateInvoice_1.EstimateInvoiceType.BON})) { %>
@@ -1 +1 @@
1
- {"version":3,"file":"body.js","sourceRoot":"","sources":["../../../../../ts/utils/commercialManagement/templates/body.ts"],"names":[],"mappings":";;;AAAA,yEAA0E;AAC1E,qCAAwD;AAExD,MAAM,cAAc,GAAG,IAAI,qCAA4B,EAAE,CAAC;AAE1D,MAAM,cAAc,GAAG;;;YAGX,cAAc,CAAC,IAAI;YACnB,cAAc,CAAC,OAAO;;;4CAGU,cAAc,CAAC,OAAO;UACxD,cAAc,CAAC,IAAI;;;;;;;yCAOY,qCAAmB,CAAC,GAAG;;gDAEhB,qCAAmB,CAAC,KAAK;;gDAEzB,qCAAmB,CAAC,OAAO;;gDAE3B,qCAAmB,CAAC,KAAK;;gDAEzB,qCAAmB,CAAC,KAAK;;gDAEzB,qCAAmB,CAAC,OAAO;;;;;mDAKxB,qCAAmB,CAAC,OAAO;;oBAE1D,qCAAmB,CAAC,GAAG,KAAK,qCAAmB,CAAC,KAAK;;;;;;;2DAOd,qCAAmB,CAAC,OAAO;;;;mDAInC,qCAAmB,CAAC,GAAG,KAAK,qCAAmB,CAAC,KAAK;;;;;;;;;;;;;;;;;SAiB/F,CAAC;AAEG,QAAA,YAAY,GAAG;;;;IAIxB,cAAc;;;;;;6BAMW,cAAc,CAAC,QAAQ;;;;;YAKxC,cAAc,CAAC,iBAAiB;;;;;;;;;;UAUlC,cAAc,CAAC,oBAAoB;;;8DAGiB,cAAc,CAAC,aAAa;;;;;;;;;;;;;;;;;;wEAkBlB,qCAAmB,CAAC,KAAK,iCAAiC,qCAAmB,CAAC,GAAG;;;;oFAIrE,qCAAmB,CAAC,KAAK,iCAAiC,qCAAmB,CAAC,GAAG;;;;;;;QAO7J,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 Bon de commande\n <% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.DEVIS}) { %>\n Devis\n <% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.FACTURE}) { %>\n Facture\n <% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.AVOIR}) { %>\n Avoir\n <% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.RESTE}) { %>\n Facture de solde\n <% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.ACOMPTE}) { %>\n Facture d'acompte\n <% } %>\n <%= reference %></span><br/>\n <% if(emissionDate) {%><span class=\"document-emission-date\">Date d’émission : <%= emissionDateFormatted %></span><br/><% } %>\n <% if(dueDate && idEstimateInvoiceType !== ${EstimateInvoiceType.ACOMPTE}) {%>\n <span class=\"document-due-date\">\n <% if ([${EstimateInvoiceType.BON}, ${EstimateInvoiceType.DEVIS}].includes(idEstimateInvoiceType)) {%>\n Valide jusqu'au :\n <% } else { %>\n Date d'échéance :\n <% } %>\n <%= dueDateFormatted %></span>\n <% } %>\n <% if (expirationDate && idEstimateInvoiceType === ${EstimateInvoiceType.ACOMPTE}) {%>\n <span class=\"document-due-date\">Date d'expiration : <%= expirationDateFormatted %></span>\n <% } %>\n <% if(termsOfPayment) { %>\n <br/><p style=\"margin-bottom: 0px;\"><%= [${EstimateInvoiceType.BON}, ${EstimateInvoiceType.DEVIS}].includes(idEstimateInvoiceType) ? 'Conditions de règlement' : 'Date limite de règlement' %> : <%= 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\">Commentaire :<br/>\n <%- comment %>\n <% } %>\n </div>\n\n <div>\n ${commonTemplate.amountRecapitulation}\n\n <% if (isStripeAllowed) { %>\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) { %>Mode de paiement : <%= paymentType %><br/><% } %>\n <% if(settings.bank) { %>BANQUE : <%= 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/>Bon pour accord : <br/><br/><br/><br/>\n <% } %>\n\n <% if (cgv && ((settings && settings.invoiceCgv) || idEstimateInvoiceType === ${EstimateInvoiceType.DEVIS} || idEstimateInvoiceType === ${EstimateInvoiceType.BON})) { %>\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,yEAA0E;AAC1E,qCAAwD;AAExD,MAAM,cAAc,GAAG,IAAI,qCAA4B,EAAE,CAAC;AAE1D,MAAM,cAAc,GAAG;;;YAGX,cAAc,CAAC,IAAI;YACnB,cAAc,CAAC,OAAO;;;4CAGU,cAAc,CAAC,OAAO;UACxD,cAAc,CAAC,IAAI;;;;;;;yCAOY,qCAAmB,CAAC,GAAG;;gDAEhB,qCAAmB,CAAC,KAAK;;gDAEzB,qCAAmB,CAAC,OAAO;;gDAE3B,qCAAmB,CAAC,KAAK;;gDAEzB,qCAAmB,CAAC,KAAK;;gDAEzB,qCAAmB,CAAC,OAAO;;;;;mDAKxB,qCAAmB,CAAC,OAAO;;oBAE1D,qCAAmB,CAAC,GAAG,KAAK,qCAAmB,CAAC,KAAK;;;;;;;2DAOd,qCAAmB,CAAC,OAAO;;;;kDAIpC,qCAAmB,CAAC,GAAG,KAAK,qCAAmB,CAAC,KAAK;;;;;;;;;;;;;;;;;SAiB9F,CAAC;AAEG,QAAA,YAAY,GAAG;;;;IAIxB,cAAc;;;;;;6BAMW,cAAc,CAAC,QAAQ;;;;;YAKxC,cAAc,CAAC,iBAAiB;;;;;;;;;;UAUlC,cAAc,CAAC,oBAAoB;;;8DAGiB,cAAc,CAAC,aAAa;;;;;;;;;;;;;;;;;;wEAkBlB,qCAAmB,CAAC,KAAK,iCAAiC,qCAAmB,CAAC,GAAG;;;;oFAIrE,qCAAmB,CAAC,KAAK,iCAAiC,qCAAmB,CAAC,GAAG;;;;;;;QAO7J,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) { %>\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.DEVIS} || idEstimateInvoiceType === ${EstimateInvoiceType.BON})) { %>\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"]}
@@ -11,10 +11,10 @@ class CommercialDocumentCommonHTML {
11
11
  <span id="header-edging" style="position: absolute; top: 0; left: 0; width: 100vw; font-size: 10px !important; height: 15px; background-color: <%= settings && settings.edgingColor ? settings.edgingColor : '#333333' %>; margin-bottom: 20px;"></span>
12
12
  <% } %>`;
13
13
  this.footer = `<div style="font-size: 8px !important; color: #838384; text-align: center; padding: 0 40px; display: block; width: 100%;">
14
- <% if (freeText) { %><%- freeText %><br/><br/><% } %><% if (accountingCategoryFormatted) {%><%= accountingCategoryFormatted %> | <%}%><% if(marginVats.length > 0) { %>Régime TVA sur marge - <% marginVats.forEach(function(v, index) { %><%= v %> - <% }) %>ART 297-A du CGI ou directive 2006-212 CE | <% } %><% if(penalties || compensation || discount) { %><%= penalties ? 'Pénalités en cas de retard : ' + penalties : ''%><%= penalties && compensation ? ' | ' : ''%><%= compensation ? 'Indemnité forfaitaire en cas de retard : ' + compensation + ' ' : '' %><%= (compensation || penalties) && discount ? ' | ' : '' %><%= discount ? discount + ' ' : '' %><%= shouldPayTaxAfterDebit ? "| Option pour le paiement de la taxe d'après les débits" : '' %><% if(name || legalForm || capital || siren || rcs) {%><br/><br/><% } %><% } %><%= name %><%= name && (legalForm || capital || siren || rcs) ? ', ' : ''%><%= legalForm %><%= capital ? ' au capital de ' + capitalFormatted + ' €' : '' %><%= siren ? ' immatriculée sous le SIREN ' + siren : ''%><%= rcs ? '| RCS ' + rcs : ''%><% if (vatCode || nafCode) {%><br/><% } %><%= vatCode ? ' TVA '+vatCode : ''%><% if(vatCode && nafCode){%>|<%}%><%= nafCode ? 'APE '+nafCode : '' %>
14
+ <% if (freeText) { %><%- freeText %><br/><br/><% } %><% if (accountingCategoryFormatted) {%><%= accountingCategoryFormatted %> | <%}%><% if(marginVats.length > 0) { %><%= languageTemplate.template.common.footer.marginVat %> - <% marginVats.forEach(function(v, index) { %><%= v %> - <% }) %><%= languageTemplate.template.common.footer.legalVatMention %> | <% } %><% if(penalties || compensation || discount) { %><%= penalties ? languageTemplate.template.common.footer.penalties + ' : ' + penalties : ''%><%= penalties && compensation ? ' | ' : ''%><%= compensation ? languageTemplate.template.common.footer.recoveryCosts + ' : ' + compensation + ' ' : '' %><%= (compensation || penalties) && discount ? ' | ' : '' %><%= discount ? discount + ' ' : '' %><%= shouldPayTaxAfterDebit ? "| " + languageTemplate.template.common.footer.shouldPayTaxAfterDebit : '' %><% if(name || legalForm || capital || siren || rcs) {%><br/><br/><% } %><% } %><%= name %><%= name && (legalForm || capital || siren || rcs) ? ', ' : ''%><%= legalForm %><%= capital ? ' ' + languageTemplate.template.common.footer.capital + ' ' + capitalFormatted + ' €' : '' %><%= siren ? ' ' + languageTemplate.template.common.footer.siren + ' ' + siren : ''%><%= rcs ? '| RCS ' + rcs : ''%><% if (vatCode || nafCode) {%><br/><% } %><%= vatCode ? languageTemplate.template.common.footer.vatCode + ' ' +vatCode : ''%><% if(vatCode && nafCode){%>|<%}%><%= nafCode ? 'APE '+nafCode : '' %>
15
15
  <% if (["Clementine", "Pourcentage", "Comptalib"].includes(brandName) && !shouldHideBrandName) { %>
16
16
  <div style="display: grid; place-items: center;"><div style="background-color: <%= brandColors.primary50 %>; color: <%= brandColors.primary500 %>; display: flex; gap: 3px; max-width: fit-content; border-radius: 4px; padding: 4px 8px; margin-top: 8px; align-items: center; font-size: 9px; line-height: 140%; font-family: 'circular std', sans serif; font-weight: 450;">
17
- Généré par
17
+ <%= languageTemplate.template.common.footer.generate %>
18
18
  <% if (brandName === "Clementine") { %>
19
19
  <svg width="86" height="13" viewBox="0 0 129 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M27.6584 11.6301C27.6584 13.1199 28.6143 13.9511 29.7364 13.9511C30.8586 13.9511 31.4405 13.2062 31.6067 12.5828L33.5601 13.2446C33.186 14.6129 31.8976 15.978 29.7364 15.978C27.3259 15.978 25.4141 14.1557 25.4141 11.6716C25.4141 9.18754 27.2843 7.36523 29.6533 7.36523C31.8976 7.36523 33.1445 8.73356 33.477 10.0987L31.5651 10.7189C31.3573 10.0571 30.8586 9.35059 29.7364 9.35059C28.6143 9.35059 27.6584 10.1786 27.6584 11.6301Z" fill="#FF7E3C"/><path d="M35.2227 15.728V3.7168H37.4254V15.728H35.2227Z" fill="#FF7E3C"/><path d="M47.1087 13.3684C46.6931 14.7751 45.4047 15.9356 43.3682 15.9356C41.1239 15.9356 39.1289 14.3211 39.1289 11.5876C39.1289 8.85419 41.0407 7.28125 43.1604 7.28125C45.6956 7.28125 47.1918 8.89575 47.1918 11.5045C47.1918 11.837 47.1502 12.1663 47.1502 12.1663H41.2901C41.3317 13.2437 42.246 14.0302 43.3682 14.0302C44.4072 14.0302 44.9475 13.5346 45.2384 12.7865L47.1087 13.3652V13.3684ZM45.0306 10.7181C44.9891 9.89002 44.4488 9.10356 43.2019 9.10356C42.0382 9.10356 41.4148 9.97315 41.3732 10.7181H45.0306Z" fill="#FF7E3C"/><path d="M48.9795 15.7317V7.56968H51.0991V8.56396C51.5563 7.77749 52.5953 7.32031 53.5097 7.32031C54.6318 7.32031 55.5046 7.81585 55.9202 8.68864C56.5852 7.69436 57.4164 7.32031 58.497 7.32031C59.9933 7.32031 61.4479 8.23147 61.4479 10.4278V15.7285H59.2867V10.8818C59.2867 10.0122 58.8711 9.35043 57.8321 9.35043C56.8762 9.35043 56.3359 10.0953 56.3359 10.9649V15.7285H54.1331V10.8818C54.1331 10.0122 53.6759 9.35043 52.6785 9.35043C51.681 9.35043 51.1407 10.0538 51.1407 10.9649V15.7285H48.9795V15.7317Z" fill="#FF7E3C"/><path d="M71.0501 13.3684C70.6345 14.7751 69.3461 15.9356 67.3096 15.9356C65.0653 15.9356 63.0703 14.3211 63.0703 11.5876C63.0703 8.85419 64.9821 7.28125 67.1018 7.28125C69.637 7.28125 71.1332 8.89575 71.1332 11.5045C71.1332 11.837 71.0917 12.1663 71.0917 12.1663H65.2315C65.2731 13.2437 66.1874 14.0302 67.3096 14.0302C68.3486 14.0302 68.8889 13.5346 69.1798 12.7865L71.0501 13.3652V13.3684ZM68.972 10.7181C68.9305 9.89002 68.3902 9.10356 67.1433 9.10356C65.9796 9.10356 65.3562 9.97315 65.3146 10.7181H68.972Z" fill="#FF7E3C"/><path d="M75.1217 15.7317H72.9189V7.56968H75.0801V8.56396C75.5789 7.73593 76.5763 7.32031 77.4491 7.32031C79.4856 7.32031 80.4 8.76857 80.4 10.5525V15.6901H78.1972V10.9681C78.1972 10.057 77.7401 9.35362 76.701 9.35362C75.7451 9.35362 75.1633 10.0985 75.1633 11.0512L75.1217 15.7317Z" fill="#FF7E3C"/><path d="M85.3474 7.56975H87.0099V9.51674H85.3474V12.9535C85.3474 13.6569 85.6799 13.9063 86.3033 13.9063C86.5527 13.9063 86.8852 13.8647 86.9683 13.8231V15.6454C86.7605 15.7286 86.3864 15.8532 85.7215 15.8532C84.1421 15.8532 83.1446 14.9005 83.1446 13.3276V9.51674H81.6484V7.56975H82.0641C82.9368 7.56975 83.3109 6.99109 83.3109 6.28454V5.12402H85.3058L85.3474 7.56655V7.56975Z" fill="#FF7E3C"/><path d="M89.9594 3.5127C90.7075 3.5127 91.3309 4.13292 91.3309 4.88102C91.3309 5.62913 90.7491 6.20779 89.9594 6.20779C89.2113 6.20779 88.5879 5.58757 88.5879 4.88102C88.5879 4.13612 89.2113 3.5127 89.9594 3.5127ZM88.8373 15.7317V7.56972H91.04V15.7285H88.8373V15.7317Z" fill="#FF7E3C"/><path d="M95.653 15.7317H93.4502V7.56968H95.6114V8.56396C96.1101 7.73593 97.1076 7.32031 97.9804 7.32031C100.017 7.32031 100.931 8.76857 100.931 10.5525V15.6901H98.7285V10.9681C98.7285 10.057 98.2713 9.35362 97.2323 9.35362C96.2764 9.35362 95.6945 10.0985 95.6945 11.0512L95.653 15.7317Z" fill="#FF7E3C"/><path d="M110.45 13.3684C110.034 14.7751 108.745 15.9356 106.709 15.9356C104.465 15.9356 102.47 14.3211 102.47 11.5876C102.47 8.85419 104.382 7.28125 106.501 7.28125C109.036 7.28125 110.533 8.89575 110.533 11.5045C110.533 11.837 110.491 12.1663 110.491 12.1663H104.714C104.756 13.2437 105.67 14.0302 106.792 14.0302C107.831 14.0302 108.371 13.5346 108.662 12.7865L110.45 13.3652V13.3684ZM108.413 10.7181C108.371 9.89002 107.831 9.10356 106.584 9.10356C105.421 9.10356 104.797 9.97315 104.756 10.7181H108.413Z" fill="#FF7E3C"/><path d="M0.0175781 7.32924C0.0175781 7.32924 1.95498 5.77229 3.73892 8.24039C3.73892 8.24039 1.80152 9.45526 0.0175781 7.32924Z" fill="#FF7E3C"/><path d="M20.0244 0.1875C11.8432 0.302593 10.5644 4.55464 10.3311 5.54252C11.0951 5.21323 12.6873 4.73367 14.4009 5.05018C19.2508 3.45486 20.0244 0.1875 20.0244 0.1875Z" fill="#FF7E3C"/><path d="M6.37695 12.2271C6.37695 8.46741 9.47807 5.38867 13.241 5.38867C17.0039 5.38867 20.0666 8.46421 20.105 12.2271C20.105 15.9868 17.0422 19.0656 13.241 19.0656C9.43971 19.0656 6.37695 15.99 6.37695 12.2271Z" fill="#FF7E3C"/><path d="M7.03483 8.50629C6.33787 9.53253 5.94784 10.8625 5.94784 12.2276C5.94784 14.1267 6.64479 15.8371 7.88524 17.0903C7.26501 17.394 6.48814 17.621 5.67609 17.621C3.07691 17.621 1.02441 15.5334 1.02441 12.9502C1.02441 10.367 3.0801 8.2793 5.67609 8.2793C6.14286 8.2793 6.60643 8.39439 7.03483 8.50629Z" fill="#FF7E3C"/><path d="M119.715 6.68358V7.57555H121.553V9.4618H119.715V15.7152H117.496V9.46499H116.141V7.57875H117.496V6.65161C117.496 4.81651 118.653 3.62402 120.457 3.62402C120.92 3.62402 121.368 3.70715 121.55 3.79027V5.64454C121.435 5.61257 121.218 5.56142 120.856 5.56142C120.361 5.56142 119.715 5.77562 119.715 6.68678V6.68358Z" fill="#FF7E3C"/><path d="M128.011 9.76243C127.761 9.71127 127.547 9.69529 127.349 9.69529C126.223 9.69529 125.248 10.242 125.248 11.994V15.7185H123.049V7.57886H125.184V8.78733C125.68 7.71313 126.805 7.51172 127.502 7.51172C127.685 7.51172 127.851 7.5277 128.017 7.54369V9.76243H128.011Z" fill="#FF7E3C"/><path d="M113.535 13.1543C114.283 13.1543 114.906 13.7745 114.906 14.5226C114.906 15.2707 114.324 15.8494 113.535 15.8494C112.787 15.8494 112.163 15.2292 112.163 14.5226C112.163 13.7777 112.787 13.1543 113.535 13.1543Z" fill="#FF7E3C"/></svg>
20
20
  <% } else if (brandName === "Comptalib") {%>
@@ -38,12 +38,12 @@ class CommercialDocumentCommonHTML {
38
38
  this.products = `<table class="full-width commercial-table-preview">
39
39
  <thead>
40
40
  <tr>
41
- <td>Article</td>
42
- <td>Quantité</td>
43
- <td>P.U <%= disableVat !== true ? 'HT' : ''%></td>
44
- <% if (shouldDisplayDiscountColumn) { %><td>Remise</td><% } %>
45
- <% if (disableVat !== true) { %><td>TVA</td><% } %>
46
- <td>Montant <%= disableVat !== true ? 'HT' : ''%></td>
41
+ <td><%= languageTemplate.template.common.table.headers.product %></td>
42
+ <td><%= languageTemplate.template.common.table.headers.quantity %></td>
43
+ <td><%= disableVat !== true ? languageTemplate.template.common.table.headers.unitPrice : languageTemplate.template.common.table.headers.unitPriceWithoutVat %></td>
44
+ <% if (shouldDisplayDiscountColumn) { %><td><%= languageTemplate.template.common.table.headers.discount %></td><% } %>
45
+ <% if (disableVat !== true) { %><td><%= languageTemplate.template.common.table.headers.vat %></td><% } %>
46
+ <td><%= disableVat !== true ? languageTemplate.template.common.table.headers.amount : languageTemplate.template.common.table.headers.amountWithoutVat %></td>
47
47
  </tr>
48
48
  </thead>
49
49
  <% if (products) { %>
@@ -72,9 +72,9 @@ class CommercialDocumentCommonHTML {
72
72
  this.vatRecapitulation = `<table style="width: 85%; page-break-inside: avoid !important;" class="commercial-table-preview">
73
73
  <thead>
74
74
  <tr>
75
- <td>Base</td>
76
- <td>Taux</td>
77
- <td>Montant TVA</td>
75
+ <td><%= languageTemplate.template.common.table.headers.base %></td>
76
+ <td><%= languageTemplate.template.common.table.headers.rate %></td>
77
+ <td><%= languageTemplate.template.common.table.headers.vatAmount %></td>
78
78
  </tr>
79
79
  </thead>
80
80
  <% vats.forEach(function (vat) { %>
@@ -88,47 +88,47 @@ class CommercialDocumentCommonHTML {
88
88
  this.amountRecapitulation = `<table class="summary-prices commercial-table-preview" style="width: 250px; padding-left: 10px; page-break-inside: avoid !important;">
89
89
  <thead>
90
90
  <tr>
91
- <td colspan="2">Récapitulatif</td>
91
+ <td colspan="2"><%= languageTemplate.template.common.table.headers.recap %></td>
92
92
  </tr>
93
93
  </thead>
94
94
  <% if (disableVat !== true) { %>
95
95
  <tr>
96
- <td>Total HT</td>
96
+ <td><%= languageTemplate.template.common.table.lines.totalHt %></td>
97
97
  <td><%= totalTaxExcludedFormatted %>€</td>
98
98
  </tr>
99
99
  <% } %>
100
100
  <% if (generalDiscountFormatted) { %>
101
101
  <tr>
102
- <td>Remise</td>
102
+ <td><%= languageTemplate.template.common.table.headers.discount %></td>
103
103
  <td><%= generalDiscountFormatted %>€</td>
104
104
  </tr>
105
105
  <% } %>
106
106
  <% if (disableVat !== true) { %>
107
107
  <tr>
108
- <td>TVA</td>
108
+ <td><%= languageTemplate.template.common.table.lines.vat %></td>
109
109
  <td><%= totalVatAmountFormatted %>€</td>
110
110
  </tr>
111
111
  <% } %>
112
112
  <% if (disableVat !== true || generalDiscountFormatted || depositFormatted) { %>
113
113
  <tr>
114
- <td>Total <%= disableVat !== true ? 'TTC' : ''%></td>
114
+ <td><%= disableVat !== true ? languageTemplate.template.common.table.lines.totalTTC : languageTemplate.template.common.table.lines.totalWithoutVat %></td>
115
115
  <td><%= totalTaxIncludedFormatted %>€</td>
116
116
  </tr>
117
117
  <% } else if (disableVat === true && ![${EstimateInvoice_1.EstimateInvoiceType.FACTURE}, ${EstimateInvoice_1.EstimateInvoiceType.RESTE}, ${EstimateInvoice_1.EstimateInvoiceType.ACOMPTE}].includes(idEstimateInvoiceType)) { %>
118
118
  <tr>
119
- <td>Total</td>
119
+ <td><%= languageTemplate.template.common.table.lines.totalWithoutVat %></td>
120
120
  <td><%= totalTaxIncludedFormatted %>€</td>
121
121
  </tr>
122
122
  <% } %>
123
123
  <% if (depositFormatted) { %>
124
124
  <tr>
125
- <td>Acompte</td>
125
+ <td><%= languageTemplate.template.common.table.lines.deposit %></td>
126
126
  <td><%= depositFormatted %>€</td>
127
127
  </tr>
128
128
  <% } %>
129
129
  <% if ([${EstimateInvoice_1.EstimateInvoiceType.FACTURE}, ${EstimateInvoice_1.EstimateInvoiceType.RESTE}, ${EstimateInvoice_1.EstimateInvoiceType.ACOMPTE}].includes(idEstimateInvoiceType)) { %>
130
130
  <tr>
131
- <td><b><%= depositFormatted ? 'Reste à payer' : 'Net à payer' %></b></td>
131
+ <td><b><%= depositFormatted ? languageTemplate.template.common.table.lines.remainderToPay : languageTemplate.template.common.table.lines.netToPay %></b></td>
132
132
  <td><%= totalTaxAndDiscountIncludedFormatted %>€</td>
133
133
  </tr>
134
134
  <% } %>
@@ -329,18 +329,18 @@ class CommercialDocumentMailHTML {
329
329
  <div style="color: black;"><span style="font-weight: 500;"><%- companyName %></span> vous adresse
330
330
  <% if(idEstimateInvoiceType) { %>
331
331
  <% if ([${EstimateInvoice_1.EstimateInvoiceType.FACTURE}, ${EstimateInvoice_1.EstimateInvoiceType.RESTE}].includes(idEstimateInvoiceType)) { %>
332
- cette facture
332
+ <%= languageMail.mail.invoice.title. %>
333
333
  <% } else if (idEstimateInvoiceType === ${EstimateInvoice_1.EstimateInvoiceType.DEVIS}) { %>
334
- ce devis
334
+ <%= languageMail.mail.estimate.title. %>
335
335
  <% } else if (idEstimateInvoiceType === ${EstimateInvoice_1.EstimateInvoiceType.BON}) { %>
336
- ce bon de commande
336
+ <%= languageMail.mail.orderForm.title. %>
337
337
  <% } else if (idEstimateInvoiceType === ${EstimateInvoice_1.EstimateInvoiceType.ACOMPTE}) { %>
338
- cet acompte
338
+ <%= languageMail.mail.deposit.title. %>
339
339
  <% } else if (idEstimateInvoiceType === ${EstimateInvoice_1.EstimateInvoiceType.AVOIR}) { %>
340
- cet avoir
340
+ <%= languageMail.mail.assset.title. %>
341
341
  <% } %>
342
342
  <% } else { %>
343
- ce document
343
+ <%= languageMail.mail.default.title. %>
344
344
  <% } %>
345
345
  :
346
346
  </div>
@@ -349,40 +349,40 @@ class CommercialDocumentMailHTML {
349
349
  <div style="font-weight: 500; font-size: 24px; line-height: 120%;">
350
350
  <% if(idEstimateInvoiceType) { %>
351
351
  <% if ([${EstimateInvoice_1.EstimateInvoiceType.FACTURE}, ${EstimateInvoice_1.EstimateInvoiceType.RESTE}].includes(idEstimateInvoiceType)) { %>
352
- Facture
352
+ <%= languageMail.mail.invoice.subTitle. %>
353
353
  <% } else if (idEstimateInvoiceType === ${EstimateInvoice_1.EstimateInvoiceType.DEVIS}) { %>
354
- Devis
354
+ <%= languageMail.mail.estimate.subTitle. %>
355
355
  <% } else if (idEstimateInvoiceType === ${EstimateInvoice_1.EstimateInvoiceType.BON}) { %>
356
- Bon de commande
356
+ <%= languageMail.mail.orderForm.subTitle. %>
357
357
  <% } else if (idEstimateInvoiceType === ${EstimateInvoice_1.EstimateInvoiceType.ACOMPTE}) { %>
358
- Acompte
358
+ <%= languageMail.mail.deposit.subTitle. %>
359
359
  <% } else if (idEstimateInvoiceType === ${EstimateInvoice_1.EstimateInvoiceType.AVOIR}) { %>
360
- Avoir
360
+ <%= languageMail.mail.assset.subTitle. %>
361
361
  <% } %>
362
362
  <% } else { %>
363
- Document
363
+ <%= languageMail.mail.default.subTitle. %>
364
364
  <% } %>
365
365
  <%- reference %>
366
366
  </div>
367
367
  <div style="; color: <%= brandColors.primary500 %>; font-size: 14px;">
368
- Echéance : <%- dueDateFormatted %>
368
+ <%= languageMail.mail.common.dueDate %> : <%- dueDateFormatted %>
369
369
  </div>
370
370
  <div style="margin: 16px 0; font-size: 14px;">
371
371
  <% if (hasVat) { %>
372
372
  <div style="display: flex; width: 240px; color: #838384; margin-bottom: 10px;">
373
- Total HT <div style="margin-left: auto;"><%- totalTaxExcludedFormatted.integerValue %>,<span style="font-size: 12px;"><%- totalTaxExcludedFormatted.centValue %> €</span></div>
373
+ <%= languageMail.mail.common.totalHt %> <div style="margin-left: auto;"><%- totalTaxExcludedFormatted.integerValue %>,<span style="font-size: 12px;"><%- totalTaxExcludedFormatted.centValue %> €</span></div>
374
374
  </div>
375
375
  <div style="display: flex; width: 240px; color: #838384; margin-bottom: 10px;">
376
- Total TVA <div style="margin-left: auto;"><%- totalVatFormatted.integerValue %>,<span style="font-size: 12px;"><%- totalVatFormatted.centValue %> €</span></div>
376
+ <%= languageMail.mail.common.totalVat %> <div style="margin-left: auto;"><%- totalVatFormatted.integerValue %>,<span style="font-size: 12px;"><%- totalVatFormatted.centValue %> €</span></div>
377
377
  </div>
378
378
  <div style="width: 240px; height: 2px; background-color: <%= brandColors.primary300 %>; margin-bottom: 10px;"></div>
379
379
  <% } %>
380
380
  <div style="display: flex; width: 240px; font-size: 16px; color: black;">
381
- Total <% if (hasVat) { %>TTC<% } %> <div style="font-size: 20px; font-weight: 500; margin-left: auto;" ><%- totalTaxIncludedFormatted.integerValue %>,<span style="font-size: 16px;"><%- totalTaxIncludedFormatted.centValue %> €</span></div>
381
+ <%= languageMail.mail.common.totalTtc %> <div style="font-size: 20px; font-weight: 500; margin-left: auto;" ><%- totalTaxIncludedFormatted.integerValue %>,<span style="font-size: 16px;"><%- totalTaxIncludedFormatted.centValue %> €</span></div>
382
382
  </div>
383
383
  </div>
384
384
  <a <% if (fileUrl) { %>href="<%= fileUrl %>"<% } %> target="_blank" style="color: white; text-decoration: none; background-color: <%= brandColors.primary500 %>; <% if (fileUrl) { %> cursor: pointer; <% } else { %> cursor: default; pointer-events: none; <% } %> padding: 10px 45px; font-size: 16px; border-radius: 4px;">
385
- Afficher le document
385
+ <%= languageMail.mail.common.displayDocument %>
386
386
  </a>
387
387
  </div>
388
388
  <div style="margin: auto;">
@@ -404,7 +404,7 @@ class CommercialDocumentMailHTML {
404
404
  <% if (!shouldHideBrandName) { %>
405
405
  <div style="margin-top: 20px; margin-bottom: -8px; width: fit-content; white-space: nowrap; margin-left: auto; margin-right: auto; font-size: 14px;">
406
406
  <div class="brand-tag" style="display: flex; line-height: 18px; height: 14px;">
407
- Généré par <% if (hostS3) { %><img src="<%= hostS3 %>config/logo-brand.png" alt="logo" style="max-height: 18px; margin-left: 5px;" /><% } %>
407
+ <%= languageMail.mail.common.generate %> <% if (hostS3) { %><img src="<%= hostS3 %>config/logo-brand.png" alt="logo" style="max-height: 18px; margin-left: 5px;" /><% } %>
408
408
  </div>
409
409
  </div>
410
410
  <% } %>