@silexpert/core 1.1.401 → 1.1.402
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/types/Enum/CommercialManagement.d.ts +4 -0
- package/dist/cjs/types/Enum/CommercialManagement.d.ts.map +1 -1
- package/dist/cjs/types/Enum/CommercialManagement.js +6 -1
- package/dist/cjs/types/Enum/CommercialManagement.js.map +1 -1
- package/dist/cjs/types/Interface/api/commercialManagement/Create.d.ts +4 -1
- package/dist/cjs/types/Interface/api/commercialManagement/Create.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/commercialManagement/Create.js.map +1 -1
- package/dist/cjs/types/Interface/api/commercialManagement/Read.d.ts +2 -0
- package/dist/cjs/types/Interface/api/commercialManagement/Read.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/commercialManagement/Read.js.map +1 -1
- package/dist/cjs/types/Interface/models/IBankAccount.d.ts +0 -1
- package/dist/cjs/types/Interface/models/IBankAccount.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IBankAccount.js.map +1 -1
- package/dist/cjs/types/Interface/models/IEstimateInvoice.d.ts +2 -1
- package/dist/cjs/types/Interface/models/IEstimateInvoice.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IEstimateInvoice.js.map +1 -1
- package/dist/cjs/utils/commercialManagement/document.d.ts.map +1 -1
- package/dist/cjs/utils/commercialManagement/document.js +18 -12
- package/dist/cjs/utils/commercialManagement/document.js.map +1 -1
- package/dist/cjs/utils/commercialManagement/internationalization/choices.d.ts +3 -0
- package/dist/cjs/utils/commercialManagement/internationalization/choices.d.ts.map +1 -0
- package/dist/cjs/utils/commercialManagement/internationalization/choices.js +417 -0
- package/dist/cjs/utils/commercialManagement/internationalization/choices.js.map +1 -0
- package/dist/cjs/utils/commercialManagement/internationalization/type.d.ts +144 -0
- package/dist/cjs/utils/commercialManagement/internationalization/type.d.ts.map +1 -0
- package/dist/cjs/utils/commercialManagement/internationalization/type.js +3 -0
- package/dist/cjs/utils/commercialManagement/internationalization/type.js.map +1 -0
- package/dist/cjs/utils/commercialManagement/templates/body.js +15 -15
- package/dist/cjs/utils/commercialManagement/templates/body.js.map +1 -1
- package/dist/cjs/utils/commercialManagement/templates/common.js +37 -37
- package/dist/cjs/utils/commercialManagement/templates/common.js.map +1 -1
- package/dist/mjs/types/Enum/CommercialManagement.d.ts +4 -0
- package/dist/mjs/types/Enum/CommercialManagement.d.ts.map +1 -1
- package/dist/mjs/types/Enum/CommercialManagement.js +5 -0
- package/dist/mjs/types/Enum/CommercialManagement.js.map +1 -1
- package/dist/mjs/types/Interface/api/commercialManagement/Create.d.ts +4 -1
- package/dist/mjs/types/Interface/api/commercialManagement/Create.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/commercialManagement/Create.js +2 -0
- package/dist/mjs/types/Interface/api/commercialManagement/Create.js.map +1 -1
- package/dist/mjs/types/Interface/api/commercialManagement/Read.d.ts +2 -0
- package/dist/mjs/types/Interface/api/commercialManagement/Read.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/commercialManagement/Read.js.map +1 -1
- package/dist/mjs/types/Interface/models/IBankAccount.d.ts +0 -1
- package/dist/mjs/types/Interface/models/IBankAccount.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IBankAccount.js.map +1 -1
- package/dist/mjs/types/Interface/models/IEstimateInvoice.d.ts +2 -1
- package/dist/mjs/types/Interface/models/IEstimateInvoice.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IEstimateInvoice.js.map +1 -1
- package/dist/mjs/utils/commercialManagement/document.d.ts.map +1 -1
- package/dist/mjs/utils/commercialManagement/document.js +8 -1
- package/dist/mjs/utils/commercialManagement/document.js.map +1 -1
- package/dist/mjs/utils/commercialManagement/internationalization/choices.d.ts +3 -0
- package/dist/mjs/utils/commercialManagement/internationalization/choices.d.ts.map +1 -0
- package/dist/mjs/utils/commercialManagement/internationalization/choices.js +414 -0
- package/dist/mjs/utils/commercialManagement/internationalization/choices.js.map +1 -0
- package/dist/mjs/utils/commercialManagement/internationalization/type.d.ts +144 -0
- package/dist/mjs/utils/commercialManagement/internationalization/type.d.ts.map +1 -0
- package/dist/mjs/utils/commercialManagement/internationalization/type.js +2 -0
- package/dist/mjs/utils/commercialManagement/internationalization/type.js.map +1 -0
- package/dist/mjs/utils/commercialManagement/templates/body.js +15 -15
- package/dist/mjs/utils/commercialManagement/templates/body.js.map +1 -1
- package/dist/mjs/utils/commercialManagement/templates/common.js +37 -37
- package/dist/mjs/utils/commercialManagement/templates/common.js.map +1 -1
- package/package.json +1 -1
- package/ts/types/Enum/CommercialManagement.ts +6 -1
- package/ts/types/Interface/api/commercialManagement/Create.ts +4 -1
- package/ts/types/Interface/api/commercialManagement/Read.ts +2 -0
- package/ts/types/Interface/models/IBankAccount.ts +0 -1
- package/ts/types/Interface/models/IEstimateInvoice.ts +2 -1
- package/ts/utils/commercialManagement/document.ts +10 -0
- package/ts/utils/commercialManagement/internationalization/choices.ts +421 -0
- package/ts/utils/commercialManagement/internationalization/type.ts +156 -0
- package/ts/utils/commercialManagement/templates/body.ts +15 -15
- package/ts/utils/commercialManagement/templates/common.ts +37 -37
|
@@ -17,34 +17,34 @@ const headOfDocument = `<div class="row space-between">
|
|
|
17
17
|
<div style="width: 45%; margin-top: auto;">
|
|
18
18
|
<span class="document-reference">
|
|
19
19
|
<% if (idEstimateInvoiceType === ${EstimateInvoiceType.BON}) { %>
|
|
20
|
-
|
|
20
|
+
<%= languageTemplate.template.orderForm.headers.title %>
|
|
21
21
|
<% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.DEVIS}) { %>
|
|
22
|
-
|
|
22
|
+
<%= languageTemplate.template.estimate.headers.title %>
|
|
23
23
|
<% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.FACTURE}) { %>
|
|
24
|
-
|
|
24
|
+
<%= languageTemplate.template.invoice.headers.title %>
|
|
25
25
|
<% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.AVOIR}) { %>
|
|
26
|
-
|
|
26
|
+
<%= languageTemplate.template.asset.headers.title %>
|
|
27
27
|
<% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.RESTE}) { %>
|
|
28
|
-
|
|
28
|
+
<%= languageTemplate.template.remainder.headers.title %>
|
|
29
29
|
<% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.ACOMPTE}) { %>
|
|
30
|
-
|
|
30
|
+
<%= languageTemplate.template.deposit.headers.title %>
|
|
31
31
|
<% } %>
|
|
32
32
|
<%= reference %></span><br/>
|
|
33
|
-
<% if(emissionDate) {%><span class="document-emission-date">
|
|
33
|
+
<% if(emissionDate) {%><span class="document-emission-date"> <%= languageTemplate.template.common.headers.emissionDate %> : <%= emissionDateFormatted %></span><br/><% } %>
|
|
34
34
|
<% if(dueDate && idEstimateInvoiceType !== ${EstimateInvoiceType.ACOMPTE}) {%>
|
|
35
35
|
<span class="document-due-date">
|
|
36
36
|
<% if ([${EstimateInvoiceType.BON}, ${EstimateInvoiceType.DEVIS}].includes(idEstimateInvoiceType)) {%>
|
|
37
|
-
|
|
37
|
+
<%= languageTemplate.template.estimate.headers.dueDate %> :
|
|
38
38
|
<% } else { %>
|
|
39
|
-
|
|
39
|
+
<%= languageTemplate.template.invoice.headers.dueDate %> :
|
|
40
40
|
<% } %>
|
|
41
41
|
<%= dueDateFormatted %></span>
|
|
42
42
|
<% } %>
|
|
43
43
|
<% if (expirationDate && idEstimateInvoiceType === ${EstimateInvoiceType.ACOMPTE}) {%>
|
|
44
|
-
<span class="document-due-date"
|
|
44
|
+
<span class="document-due-date"><%= languageTemplate.template.deposit.headers.expirationDate %> : : <%= expirationDateFormatted %></span>
|
|
45
45
|
<% } %>
|
|
46
46
|
<% if(termsOfPayment) { %>
|
|
47
|
-
|
|
47
|
+
<br/><p style="margin-bottom: 0px;"><%= [${EstimateInvoiceType.BON}, ${EstimateInvoiceType.DEVIS}].includes(idEstimateInvoiceType) ? languageTemplate.template.estimate.headers.termsOfPayment : languageTemplate.template.invoice.headers.termsOfPayment %> : <%= termsOfPayment %></p>
|
|
48
48
|
<% } %>
|
|
49
49
|
</div>
|
|
50
50
|
<div style="width: 40%; margin-top: auto;">
|
|
@@ -81,7 +81,7 @@ export const bodyTemplate = `<html class="pdf-content">
|
|
|
81
81
|
<% } %>
|
|
82
82
|
<% if (vatMention) { %><div class="vat-mention <%= disableVat !== true ? 'mt-20' : ''%>"><%= vatMention %></div><% } %>
|
|
83
83
|
<% if (comment) { %>
|
|
84
|
-
<p class="mt-20"
|
|
84
|
+
<p class="mt-20"><%= languageTemplate.template.common.options.comment %> :<br/>
|
|
85
85
|
<%- comment %>
|
|
86
86
|
<% } %>
|
|
87
87
|
</div>
|
|
@@ -100,8 +100,8 @@ export const bodyTemplate = `<html class="pdf-content">
|
|
|
100
100
|
<div class="row mt-30 space-between" style="page-break-inside: avoid !important;">
|
|
101
101
|
<div>
|
|
102
102
|
<% if ((settings && (settings.iban || settings.bic || settings.bank)) || paymentType) { %>
|
|
103
|
-
<% if(paymentType) {
|
|
104
|
-
<% if(settings.bank) { %>
|
|
103
|
+
<% if(paymentType) { %><%= languageTemplate.template.common.options.paymentType %> : <%= paymentType %><br/><% } %>
|
|
104
|
+
<% if(settings.bank) { %><%= languageTemplate.template.common.options.bank %> : <%= settings.bank %><br/><% } %>
|
|
105
105
|
<% if(settings.iban) { %>IBAN : <%= settings.iban %><br/><% } %>
|
|
106
106
|
<% if(settings.bic) { %>BIC : <%= settings.bic %><% } %>
|
|
107
107
|
<% } %>
|
|
@@ -109,7 +109,7 @@ export const bodyTemplate = `<html class="pdf-content">
|
|
|
109
109
|
</div>
|
|
110
110
|
<% } %>
|
|
111
111
|
<% if (settings && settings.bonPour && (idEstimateInvoiceType === ${EstimateInvoiceType.DEVIS} || idEstimateInvoiceType === ${EstimateInvoiceType.BON})) { %>
|
|
112
|
-
<br
|
|
112
|
+
<br/><%= languageTemplate.template.common.options.approval %> : <br/><br/><br/><br/>
|
|
113
113
|
<% } %>
|
|
114
114
|
|
|
115
115
|
<% if (cgv && ((settings && settings.invoiceCgv) || idEstimateInvoiceType === ${EstimateInvoiceType.DEVIS} || idEstimateInvoiceType === ${EstimateInvoiceType.BON})) { %>
|
|
@@ -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;;;;
|
|
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;;;8DAGiB,cAAc,CAAC,aAAa;;;;;;;;;;;;;;;;;;wEAkBlB,mBAAmB,CAAC,KAAK,iCAAiC,mBAAmB,CAAC,GAAG;;;;oFAIrE,mBAAmB,CAAC,KAAK,iCAAiC,mBAAmB,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"]}
|
|
@@ -7,10 +7,10 @@ export class CommercialDocumentCommonHTML {
|
|
|
7
7
|
<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>
|
|
8
8
|
<% } %>`;
|
|
9
9
|
footer = `<div style="font-size: 8px !important; color: #838384; text-align: center; padding: 0 40px; display: block; width: 100%;">
|
|
10
|
-
<% if (freeText) { %><%- freeText %><br/><br/><% } %><% if (accountingCategoryFormatted) {%><%= accountingCategoryFormatted %> | <%}%><% if(marginVats.length > 0) {
|
|
10
|
+
<% 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 : '' %>
|
|
11
11
|
<% if (["Clementine", "Pourcentage", "Comptalib"].includes(brandName) && !shouldHideBrandName) { %>
|
|
12
12
|
<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;">
|
|
13
|
-
|
|
13
|
+
<%= languageTemplate.template.common.footer.generate %>
|
|
14
14
|
<% if (brandName === "Clementine") { %>
|
|
15
15
|
<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>
|
|
16
16
|
<% } else if (brandName === "Comptalib") {%>
|
|
@@ -34,12 +34,12 @@ export class CommercialDocumentCommonHTML {
|
|
|
34
34
|
products = `<table class="full-width commercial-table-preview">
|
|
35
35
|
<thead>
|
|
36
36
|
<tr>
|
|
37
|
-
<td
|
|
38
|
-
<td
|
|
39
|
-
<td
|
|
40
|
-
<% if (shouldDisplayDiscountColumn) { %><td
|
|
41
|
-
<% if (disableVat !== true) { %><td
|
|
42
|
-
<td
|
|
37
|
+
<td><%= languageTemplate.template.common.table.headers.product %></td>
|
|
38
|
+
<td><%= languageTemplate.template.common.table.headers.quantity %></td>
|
|
39
|
+
<td><%= disableVat !== true ? languageTemplate.template.common.table.headers.unitPrice : languageTemplate.template.common.table.headers.unitPriceWithoutVat %></td>
|
|
40
|
+
<% if (shouldDisplayDiscountColumn) { %><td><%= languageTemplate.template.common.table.headers.discount %></td><% } %>
|
|
41
|
+
<% if (disableVat !== true) { %><td><%= languageTemplate.template.common.table.headers.vat %></td><% } %>
|
|
42
|
+
<td><%= disableVat !== true ? languageTemplate.template.common.table.headers.amount : languageTemplate.template.common.table.headers.amountWithoutVat %></td>
|
|
43
43
|
</tr>
|
|
44
44
|
</thead>
|
|
45
45
|
<% if (products) { %>
|
|
@@ -68,9 +68,9 @@ export class CommercialDocumentCommonHTML {
|
|
|
68
68
|
vatRecapitulation = `<table style="width: 85%; page-break-inside: avoid !important;" class="commercial-table-preview">
|
|
69
69
|
<thead>
|
|
70
70
|
<tr>
|
|
71
|
-
<td
|
|
72
|
-
<td
|
|
73
|
-
<td
|
|
71
|
+
<td><%= languageTemplate.template.common.table.headers.base %></td>
|
|
72
|
+
<td><%= languageTemplate.template.common.table.headers.rate %></td>
|
|
73
|
+
<td><%= languageTemplate.template.common.table.headers.vatAmount %></td>
|
|
74
74
|
</tr>
|
|
75
75
|
</thead>
|
|
76
76
|
<% vats.forEach(function (vat) { %>
|
|
@@ -84,47 +84,47 @@ export class CommercialDocumentCommonHTML {
|
|
|
84
84
|
amountRecapitulation = `<table class="summary-prices commercial-table-preview" style="width: 250px; padding-left: 10px; page-break-inside: avoid !important;">
|
|
85
85
|
<thead>
|
|
86
86
|
<tr>
|
|
87
|
-
<td colspan="2"
|
|
87
|
+
<td colspan="2"><%= languageTemplate.template.common.table.headers.recap %></td>
|
|
88
88
|
</tr>
|
|
89
89
|
</thead>
|
|
90
90
|
<% if (disableVat !== true) { %>
|
|
91
91
|
<tr>
|
|
92
|
-
<td
|
|
92
|
+
<td><%= languageTemplate.template.common.table.lines.totalHt %></td>
|
|
93
93
|
<td><%= totalTaxExcludedFormatted %>€</td>
|
|
94
94
|
</tr>
|
|
95
95
|
<% } %>
|
|
96
96
|
<% if (generalDiscountFormatted) { %>
|
|
97
97
|
<tr>
|
|
98
|
-
<td
|
|
98
|
+
<td><%= languageTemplate.template.common.table.headers.discount %></td>
|
|
99
99
|
<td><%= generalDiscountFormatted %>€</td>
|
|
100
100
|
</tr>
|
|
101
101
|
<% } %>
|
|
102
102
|
<% if (disableVat !== true) { %>
|
|
103
103
|
<tr>
|
|
104
|
-
<td
|
|
104
|
+
<td><%= languageTemplate.template.common.table.lines.vat %></td>
|
|
105
105
|
<td><%= totalVatAmountFormatted %>€</td>
|
|
106
106
|
</tr>
|
|
107
107
|
<% } %>
|
|
108
108
|
<% if (disableVat !== true || generalDiscountFormatted || depositFormatted) { %>
|
|
109
109
|
<tr>
|
|
110
|
-
<td
|
|
110
|
+
<td><%= disableVat !== true ? languageTemplate.template.common.table.lines.totalTTC : languageTemplate.template.common.table.lines.totalWithoutVat %></td>
|
|
111
111
|
<td><%= totalTaxIncludedFormatted %>€</td>
|
|
112
112
|
</tr>
|
|
113
113
|
<% } else if (disableVat === true && ![${EstimateInvoiceType.FACTURE}, ${EstimateInvoiceType.RESTE}, ${EstimateInvoiceType.ACOMPTE}].includes(idEstimateInvoiceType)) { %>
|
|
114
114
|
<tr>
|
|
115
|
-
<td
|
|
115
|
+
<td><%= languageTemplate.template.common.table.lines.totalWithoutVat %></td>
|
|
116
116
|
<td><%= totalTaxIncludedFormatted %>€</td>
|
|
117
117
|
</tr>
|
|
118
118
|
<% } %>
|
|
119
119
|
<% if (depositFormatted) { %>
|
|
120
120
|
<tr>
|
|
121
|
-
<td
|
|
121
|
+
<td><%= languageTemplate.template.common.table.lines.deposit %></td>
|
|
122
122
|
<td><%= depositFormatted %>€</td>
|
|
123
123
|
</tr>
|
|
124
124
|
<% } %>
|
|
125
125
|
<% if ([${EstimateInvoiceType.FACTURE}, ${EstimateInvoiceType.RESTE}, ${EstimateInvoiceType.ACOMPTE}].includes(idEstimateInvoiceType)) { %>
|
|
126
126
|
<tr>
|
|
127
|
-
<td><b><%= depositFormatted ?
|
|
127
|
+
<td><b><%= depositFormatted ? languageTemplate.template.common.table.lines.remainderToPay : languageTemplate.template.common.table.lines.netToPay %></b></td>
|
|
128
128
|
<td><%= totalTaxAndDiscountIncludedFormatted %>€</td>
|
|
129
129
|
</tr>
|
|
130
130
|
<% } %>
|
|
@@ -322,18 +322,18 @@ export class CommercialDocumentMailHTML {
|
|
|
322
322
|
<div style="color: black;"><span style="font-weight: 500;"><%- companyName %></span> vous adresse
|
|
323
323
|
<% if(idEstimateInvoiceType) { %>
|
|
324
324
|
<% if ([${EstimateInvoiceType.FACTURE}, ${EstimateInvoiceType.RESTE}].includes(idEstimateInvoiceType)) { %>
|
|
325
|
-
|
|
325
|
+
<%= languageMail.mail.invoice.title. %>
|
|
326
326
|
<% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.DEVIS}) { %>
|
|
327
|
-
|
|
327
|
+
<%= languageMail.mail.estimate.title. %>
|
|
328
328
|
<% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.BON}) { %>
|
|
329
|
-
|
|
329
|
+
<%= languageMail.mail.orderForm.title. %>
|
|
330
330
|
<% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.ACOMPTE}) { %>
|
|
331
|
-
|
|
331
|
+
<%= languageMail.mail.deposit.title. %>
|
|
332
332
|
<% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.AVOIR}) { %>
|
|
333
|
-
|
|
333
|
+
<%= languageMail.mail.assset.title. %>
|
|
334
334
|
<% } %>
|
|
335
335
|
<% } else { %>
|
|
336
|
-
|
|
336
|
+
<%= languageMail.mail.default.title. %>
|
|
337
337
|
<% } %>
|
|
338
338
|
:
|
|
339
339
|
</div>
|
|
@@ -342,40 +342,40 @@ export class CommercialDocumentMailHTML {
|
|
|
342
342
|
<div style="font-weight: 500; font-size: 24px; line-height: 120%;">
|
|
343
343
|
<% if(idEstimateInvoiceType) { %>
|
|
344
344
|
<% if ([${EstimateInvoiceType.FACTURE}, ${EstimateInvoiceType.RESTE}].includes(idEstimateInvoiceType)) { %>
|
|
345
|
-
|
|
345
|
+
<%= languageMail.mail.invoice.subTitle. %>
|
|
346
346
|
<% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.DEVIS}) { %>
|
|
347
|
-
|
|
347
|
+
<%= languageMail.mail.estimate.subTitle. %>
|
|
348
348
|
<% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.BON}) { %>
|
|
349
|
-
|
|
349
|
+
<%= languageMail.mail.orderForm.subTitle. %>
|
|
350
350
|
<% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.ACOMPTE}) { %>
|
|
351
|
-
|
|
351
|
+
<%= languageMail.mail.deposit.subTitle. %>
|
|
352
352
|
<% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.AVOIR}) { %>
|
|
353
|
-
|
|
353
|
+
<%= languageMail.mail.assset.subTitle. %>
|
|
354
354
|
<% } %>
|
|
355
355
|
<% } else { %>
|
|
356
|
-
|
|
356
|
+
<%= languageMail.mail.default.subTitle. %>
|
|
357
357
|
<% } %>
|
|
358
358
|
<%- reference %>
|
|
359
359
|
</div>
|
|
360
360
|
<div style="; color: <%= brandColors.primary500 %>; font-size: 14px;">
|
|
361
|
-
|
|
361
|
+
<%= languageMail.mail.common.dueDate %> : <%- dueDateFormatted %>
|
|
362
362
|
</div>
|
|
363
363
|
<div style="margin: 16px 0; font-size: 14px;">
|
|
364
364
|
<% if (hasVat) { %>
|
|
365
365
|
<div style="display: flex; width: 240px; color: #838384; margin-bottom: 10px;">
|
|
366
|
-
|
|
366
|
+
<%= languageMail.mail.common.totalHt %> <div style="margin-left: auto;"><%- totalTaxExcludedFormatted.integerValue %>,<span style="font-size: 12px;"><%- totalTaxExcludedFormatted.centValue %> €</span></div>
|
|
367
367
|
</div>
|
|
368
368
|
<div style="display: flex; width: 240px; color: #838384; margin-bottom: 10px;">
|
|
369
|
-
|
|
369
|
+
<%= languageMail.mail.common.totalVat %> <div style="margin-left: auto;"><%- totalVatFormatted.integerValue %>,<span style="font-size: 12px;"><%- totalVatFormatted.centValue %> €</span></div>
|
|
370
370
|
</div>
|
|
371
371
|
<div style="width: 240px; height: 2px; background-color: <%= brandColors.primary300 %>; margin-bottom: 10px;"></div>
|
|
372
372
|
<% } %>
|
|
373
373
|
<div style="display: flex; width: 240px; font-size: 16px; color: black;">
|
|
374
|
-
|
|
374
|
+
<%= 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>
|
|
375
375
|
</div>
|
|
376
376
|
</div>
|
|
377
377
|
<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;">
|
|
378
|
-
|
|
378
|
+
<%= languageMail.mail.common.displayDocument %>
|
|
379
379
|
</a>
|
|
380
380
|
</div>
|
|
381
381
|
<div style="margin: auto;">
|
|
@@ -397,7 +397,7 @@ export class CommercialDocumentMailHTML {
|
|
|
397
397
|
<% if (!shouldHideBrandName) { %>
|
|
398
398
|
<div style="margin-top: 20px; margin-bottom: -8px; width: fit-content; white-space: nowrap; margin-left: auto; margin-right: auto; font-size: 14px;">
|
|
399
399
|
<div class="brand-tag" style="display: flex; line-height: 18px; height: 14px;">
|
|
400
|
-
|
|
400
|
+
<%= languageMail.mail.common.generate %> <% if (hostS3) { %><img src="<%= hostS3 %>config/logo-brand.png" alt="logo" style="max-height: 18px; margin-left: 5px;" /><% } %>
|
|
401
401
|
</div>
|
|
402
402
|
</div>
|
|
403
403
|
<% } %>
|