@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.
- 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 +5 -1
- package/dist/cjs/types/Interface/api/commercialManagement/Create.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/commercialManagement/Create.js +6 -0
- 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/types/Interface/models/ISocietyGescom.d.ts +3 -2
- package/dist/cjs/types/Interface/models/ISocietyGescom.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/ISocietyGescom.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 +5 -1
- package/dist/mjs/types/Interface/api/commercialManagement/Create.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/commercialManagement/Create.js +10 -1
- 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/types/Interface/models/ISocietyGescom.d.ts +3 -2
- package/dist/mjs/types/Interface/models/ISocietyGescom.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/ISocietyGescom.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 +10 -2
- 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/types/Interface/models/ISocietyGescom.ts +3 -2
- 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
|
@@ -19,34 +19,34 @@ const headOfDocument = `<div class="row space-between">
|
|
|
19
19
|
<div style="width: 45%; margin-top: auto;">
|
|
20
20
|
<span class="document-reference">
|
|
21
21
|
<% if (idEstimateInvoiceType === ${EstimateInvoiceType.BON}) { %>
|
|
22
|
-
|
|
22
|
+
<%= languageTemplate.template.orderForm.headers.title %>
|
|
23
23
|
<% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.DEVIS}) { %>
|
|
24
|
-
|
|
24
|
+
<%= languageTemplate.template.estimate.headers.title %>
|
|
25
25
|
<% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.FACTURE}) { %>
|
|
26
|
-
|
|
26
|
+
<%= languageTemplate.template.invoice.headers.title %>
|
|
27
27
|
<% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.AVOIR}) { %>
|
|
28
|
-
|
|
28
|
+
<%= languageTemplate.template.asset.headers.title %>
|
|
29
29
|
<% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.RESTE}) { %>
|
|
30
|
-
|
|
30
|
+
<%= languageTemplate.template.remainder.headers.title %>
|
|
31
31
|
<% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.ACOMPTE}) { %>
|
|
32
|
-
|
|
32
|
+
<%= languageTemplate.template.deposit.headers.title %>
|
|
33
33
|
<% } %>
|
|
34
34
|
<%= reference %></span><br/>
|
|
35
|
-
<% if(emissionDate) {%><span class="document-emission-date">
|
|
35
|
+
<% if(emissionDate) {%><span class="document-emission-date"> <%= languageTemplate.template.common.headers.emissionDate %> : <%= emissionDateFormatted %></span><br/><% } %>
|
|
36
36
|
<% if(dueDate && idEstimateInvoiceType !== ${EstimateInvoiceType.ACOMPTE}) {%>
|
|
37
37
|
<span class="document-due-date">
|
|
38
38
|
<% if ([${EstimateInvoiceType.BON}, ${EstimateInvoiceType.DEVIS}].includes(idEstimateInvoiceType)) {%>
|
|
39
|
-
|
|
39
|
+
<%= languageTemplate.template.estimate.headers.dueDate %> :
|
|
40
40
|
<% } else { %>
|
|
41
|
-
|
|
41
|
+
<%= languageTemplate.template.invoice.headers.dueDate %> :
|
|
42
42
|
<% } %>
|
|
43
43
|
<%= dueDateFormatted %></span>
|
|
44
44
|
<% } %>
|
|
45
45
|
<% if (expirationDate && idEstimateInvoiceType === ${EstimateInvoiceType.ACOMPTE}) {%>
|
|
46
|
-
<span class="document-due-date"
|
|
46
|
+
<span class="document-due-date"><%= languageTemplate.template.deposit.headers.expirationDate %> : : <%= expirationDateFormatted %></span>
|
|
47
47
|
<% } %>
|
|
48
48
|
<% if(termsOfPayment) { %>
|
|
49
|
-
|
|
49
|
+
<br/><p style="margin-bottom: 0px;"><%= [${EstimateInvoiceType.BON}, ${EstimateInvoiceType.DEVIS}].includes(idEstimateInvoiceType) ? languageTemplate.template.estimate.headers.termsOfPayment : languageTemplate.template.invoice.headers.termsOfPayment %> : <%= termsOfPayment %></p>
|
|
50
50
|
<% } %>
|
|
51
51
|
</div>
|
|
52
52
|
<div style="width: 40%; margin-top: auto;">
|
|
@@ -84,7 +84,7 @@ export const 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"
|
|
87
|
+
<p class="mt-20"><%= languageTemplate.template.common.options.comment %> :<br/>
|
|
88
88
|
<%- comment %>
|
|
89
89
|
<% } %>
|
|
90
90
|
</div>
|
|
@@ -103,8 +103,8 @@ export const 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) {
|
|
107
|
-
<% if(settings.bank) { %>
|
|
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 @@ export const bodyTemplate = `<html class="pdf-content">
|
|
|
112
112
|
</div>
|
|
113
113
|
<% } %>
|
|
114
114
|
<% if (settings && settings.bonPour && (idEstimateInvoiceType === ${EstimateInvoiceType.DEVIS} || idEstimateInvoiceType === ${EstimateInvoiceType.BON})) { %>
|
|
115
|
-
<br
|
|
115
|
+
<br/><%= languageTemplate.template.common.options.approval %> : <br/><br/><br/><br/>
|
|
116
116
|
<% } %>
|
|
117
117
|
|
|
118
118
|
<% if (cgv && ((settings && settings.invoiceCgv) || idEstimateInvoiceType === ${EstimateInvoiceType.DEVIS} || idEstimateInvoiceType === ${EstimateInvoiceType.BON})) { %>
|
|
@@ -12,10 +12,10 @@ export class CommercialDocumentCommonHTML {
|
|
|
12
12
|
<% } %>`;
|
|
13
13
|
|
|
14
14
|
footer = `<div style="font-size: 8px !important; color: #838384; text-align: center; padding: 0 40px; display: block; width: 100%;">
|
|
15
|
-
<% if (freeText) { %><%- freeText %><br/><br/><% } %><% if (accountingCategoryFormatted) {%><%= accountingCategoryFormatted %> | <%}%><% if(marginVats.length > 0) {
|
|
15
|
+
<% 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 : '' %>
|
|
16
16
|
<% if (["Clementine", "Pourcentage", "Comptalib"].includes(brandName) && !shouldHideBrandName) { %>
|
|
17
17
|
<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;">
|
|
18
|
-
|
|
18
|
+
<%= languageTemplate.template.common.footer.generate %>
|
|
19
19
|
<% if (brandName === "Clementine") { %>
|
|
20
20
|
<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>
|
|
21
21
|
<% } else if (brandName === "Comptalib") {%>
|
|
@@ -42,12 +42,12 @@ export class CommercialDocumentCommonHTML {
|
|
|
42
42
|
products = `<table class="full-width commercial-table-preview">
|
|
43
43
|
<thead>
|
|
44
44
|
<tr>
|
|
45
|
-
<td
|
|
46
|
-
<td
|
|
47
|
-
<td
|
|
48
|
-
<% if (shouldDisplayDiscountColumn) { %><td
|
|
49
|
-
<% if (disableVat !== true) { %><td
|
|
50
|
-
<td
|
|
45
|
+
<td><%= languageTemplate.template.common.table.headers.product %></td>
|
|
46
|
+
<td><%= languageTemplate.template.common.table.headers.quantity %></td>
|
|
47
|
+
<td><%= disableVat !== true ? languageTemplate.template.common.table.headers.unitPrice : languageTemplate.template.common.table.headers.unitPriceWithoutVat %></td>
|
|
48
|
+
<% if (shouldDisplayDiscountColumn) { %><td><%= languageTemplate.template.common.table.headers.discount %></td><% } %>
|
|
49
|
+
<% if (disableVat !== true) { %><td><%= languageTemplate.template.common.table.headers.vat %></td><% } %>
|
|
50
|
+
<td><%= disableVat !== true ? languageTemplate.template.common.table.headers.amount : languageTemplate.template.common.table.headers.amountWithoutVat %></td>
|
|
51
51
|
</tr>
|
|
52
52
|
</thead>
|
|
53
53
|
<% if (products) { %>
|
|
@@ -77,9 +77,9 @@ export class CommercialDocumentCommonHTML {
|
|
|
77
77
|
vatRecapitulation = `<table style="width: 85%; page-break-inside: avoid !important;" class="commercial-table-preview">
|
|
78
78
|
<thead>
|
|
79
79
|
<tr>
|
|
80
|
-
<td
|
|
81
|
-
<td
|
|
82
|
-
<td
|
|
80
|
+
<td><%= languageTemplate.template.common.table.headers.base %></td>
|
|
81
|
+
<td><%= languageTemplate.template.common.table.headers.rate %></td>
|
|
82
|
+
<td><%= languageTemplate.template.common.table.headers.vatAmount %></td>
|
|
83
83
|
</tr>
|
|
84
84
|
</thead>
|
|
85
85
|
<% vats.forEach(function (vat) { %>
|
|
@@ -94,47 +94,47 @@ export class CommercialDocumentCommonHTML {
|
|
|
94
94
|
amountRecapitulation = `<table class="summary-prices commercial-table-preview" style="width: 250px; padding-left: 10px; page-break-inside: avoid !important;">
|
|
95
95
|
<thead>
|
|
96
96
|
<tr>
|
|
97
|
-
<td colspan="2"
|
|
97
|
+
<td colspan="2"><%= languageTemplate.template.common.table.headers.recap %></td>
|
|
98
98
|
</tr>
|
|
99
99
|
</thead>
|
|
100
100
|
<% if (disableVat !== true) { %>
|
|
101
101
|
<tr>
|
|
102
|
-
<td
|
|
102
|
+
<td><%= languageTemplate.template.common.table.lines.totalHt %></td>
|
|
103
103
|
<td><%= totalTaxExcludedFormatted %>€</td>
|
|
104
104
|
</tr>
|
|
105
105
|
<% } %>
|
|
106
106
|
<% if (generalDiscountFormatted) { %>
|
|
107
107
|
<tr>
|
|
108
|
-
<td
|
|
108
|
+
<td><%= languageTemplate.template.common.table.headers.discount %></td>
|
|
109
109
|
<td><%= generalDiscountFormatted %>€</td>
|
|
110
110
|
</tr>
|
|
111
111
|
<% } %>
|
|
112
112
|
<% if (disableVat !== true) { %>
|
|
113
113
|
<tr>
|
|
114
|
-
<td
|
|
114
|
+
<td><%= languageTemplate.template.common.table.lines.vat %></td>
|
|
115
115
|
<td><%= totalVatAmountFormatted %>€</td>
|
|
116
116
|
</tr>
|
|
117
117
|
<% } %>
|
|
118
118
|
<% if (disableVat !== true || generalDiscountFormatted || depositFormatted) { %>
|
|
119
119
|
<tr>
|
|
120
|
-
<td
|
|
120
|
+
<td><%= disableVat !== true ? languageTemplate.template.common.table.lines.totalTTC : languageTemplate.template.common.table.lines.totalWithoutVat %></td>
|
|
121
121
|
<td><%= totalTaxIncludedFormatted %>€</td>
|
|
122
122
|
</tr>
|
|
123
123
|
<% } else if (disableVat === true && ![${EstimateInvoiceType.FACTURE}, ${EstimateInvoiceType.RESTE}, ${EstimateInvoiceType.ACOMPTE}].includes(idEstimateInvoiceType)) { %>
|
|
124
124
|
<tr>
|
|
125
|
-
<td
|
|
125
|
+
<td><%= languageTemplate.template.common.table.lines.totalWithoutVat %></td>
|
|
126
126
|
<td><%= totalTaxIncludedFormatted %>€</td>
|
|
127
127
|
</tr>
|
|
128
128
|
<% } %>
|
|
129
129
|
<% if (depositFormatted) { %>
|
|
130
130
|
<tr>
|
|
131
|
-
<td
|
|
131
|
+
<td><%= languageTemplate.template.common.table.lines.deposit %></td>
|
|
132
132
|
<td><%= depositFormatted %>€</td>
|
|
133
133
|
</tr>
|
|
134
134
|
<% } %>
|
|
135
135
|
<% if ([${EstimateInvoiceType.FACTURE}, ${EstimateInvoiceType.RESTE}, ${EstimateInvoiceType.ACOMPTE}].includes(idEstimateInvoiceType)) { %>
|
|
136
136
|
<tr>
|
|
137
|
-
<td><b><%= depositFormatted ?
|
|
137
|
+
<td><b><%= depositFormatted ? languageTemplate.template.common.table.lines.remainderToPay : languageTemplate.template.common.table.lines.netToPay %></b></td>
|
|
138
138
|
<td><%= totalTaxAndDiscountIncludedFormatted %>€</td>
|
|
139
139
|
</tr>
|
|
140
140
|
<% } %>
|
|
@@ -337,18 +337,18 @@ export class CommercialDocumentMailHTML {
|
|
|
337
337
|
<div style="color: black;"><span style="font-weight: 500;"><%- companyName %></span> vous adresse
|
|
338
338
|
<% if(idEstimateInvoiceType) { %>
|
|
339
339
|
<% if ([${EstimateInvoiceType.FACTURE}, ${EstimateInvoiceType.RESTE}].includes(idEstimateInvoiceType)) { %>
|
|
340
|
-
|
|
340
|
+
<%= languageMail.mail.invoice.title. %>
|
|
341
341
|
<% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.DEVIS}) { %>
|
|
342
|
-
|
|
342
|
+
<%= languageMail.mail.estimate.title. %>
|
|
343
343
|
<% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.BON}) { %>
|
|
344
|
-
|
|
344
|
+
<%= languageMail.mail.orderForm.title. %>
|
|
345
345
|
<% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.ACOMPTE}) { %>
|
|
346
|
-
|
|
346
|
+
<%= languageMail.mail.deposit.title. %>
|
|
347
347
|
<% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.AVOIR}) { %>
|
|
348
|
-
|
|
348
|
+
<%= languageMail.mail.assset.title. %>
|
|
349
349
|
<% } %>
|
|
350
350
|
<% } else { %>
|
|
351
|
-
|
|
351
|
+
<%= languageMail.mail.default.title. %>
|
|
352
352
|
<% } %>
|
|
353
353
|
:
|
|
354
354
|
</div>
|
|
@@ -357,40 +357,40 @@ export class CommercialDocumentMailHTML {
|
|
|
357
357
|
<div style="font-weight: 500; font-size: 24px; line-height: 120%;">
|
|
358
358
|
<% if(idEstimateInvoiceType) { %>
|
|
359
359
|
<% if ([${EstimateInvoiceType.FACTURE}, ${EstimateInvoiceType.RESTE}].includes(idEstimateInvoiceType)) { %>
|
|
360
|
-
|
|
360
|
+
<%= languageMail.mail.invoice.subTitle. %>
|
|
361
361
|
<% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.DEVIS}) { %>
|
|
362
|
-
|
|
362
|
+
<%= languageMail.mail.estimate.subTitle. %>
|
|
363
363
|
<% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.BON}) { %>
|
|
364
|
-
|
|
364
|
+
<%= languageMail.mail.orderForm.subTitle. %>
|
|
365
365
|
<% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.ACOMPTE}) { %>
|
|
366
|
-
|
|
366
|
+
<%= languageMail.mail.deposit.subTitle. %>
|
|
367
367
|
<% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.AVOIR}) { %>
|
|
368
|
-
|
|
368
|
+
<%= languageMail.mail.assset.subTitle. %>
|
|
369
369
|
<% } %>
|
|
370
370
|
<% } else { %>
|
|
371
|
-
|
|
371
|
+
<%= languageMail.mail.default.subTitle. %>
|
|
372
372
|
<% } %>
|
|
373
373
|
<%- reference %>
|
|
374
374
|
</div>
|
|
375
375
|
<div style="; color: <%= brandColors.primary500 %>; font-size: 14px;">
|
|
376
|
-
|
|
376
|
+
<%= languageMail.mail.common.dueDate %> : <%- dueDateFormatted %>
|
|
377
377
|
</div>
|
|
378
378
|
<div style="margin: 16px 0; font-size: 14px;">
|
|
379
379
|
<% if (hasVat) { %>
|
|
380
380
|
<div style="display: flex; width: 240px; color: #838384; margin-bottom: 10px;">
|
|
381
|
-
|
|
381
|
+
<%= languageMail.mail.common.totalHt %> <div style="margin-left: auto;"><%- totalTaxExcludedFormatted.integerValue %>,<span style="font-size: 12px;"><%- totalTaxExcludedFormatted.centValue %> €</span></div>
|
|
382
382
|
</div>
|
|
383
383
|
<div style="display: flex; width: 240px; color: #838384; margin-bottom: 10px;">
|
|
384
|
-
|
|
384
|
+
<%= languageMail.mail.common.totalVat %> <div style="margin-left: auto;"><%- totalVatFormatted.integerValue %>,<span style="font-size: 12px;"><%- totalVatFormatted.centValue %> €</span></div>
|
|
385
385
|
</div>
|
|
386
386
|
<div style="width: 240px; height: 2px; background-color: <%= brandColors.primary300 %>; margin-bottom: 10px;"></div>
|
|
387
387
|
<% } %>
|
|
388
388
|
<div style="display: flex; width: 240px; font-size: 16px; color: black;">
|
|
389
|
-
|
|
389
|
+
<%= 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>
|
|
390
390
|
</div>
|
|
391
391
|
</div>
|
|
392
392
|
<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;">
|
|
393
|
-
|
|
393
|
+
<%= languageMail.mail.common.displayDocument %>
|
|
394
394
|
</a>
|
|
395
395
|
</div>
|
|
396
396
|
<div style="margin: auto;">
|
|
@@ -412,7 +412,7 @@ export class CommercialDocumentMailHTML {
|
|
|
412
412
|
<% if (!shouldHideBrandName) { %>
|
|
413
413
|
<div style="margin-top: 20px; margin-bottom: -8px; width: fit-content; white-space: nowrap; margin-left: auto; margin-right: auto; font-size: 14px;">
|
|
414
414
|
<div class="brand-tag" style="display: flex; line-height: 18px; height: 14px;">
|
|
415
|
-
|
|
415
|
+
<%= languageMail.mail.common.generate %> <% if (hostS3) { %><img src="<%= hostS3 %>config/logo-brand.png" alt="logo" style="max-height: 18px; margin-left: 5px;" /><% } %>
|
|
416
416
|
</div>
|
|
417
417
|
</div>
|
|
418
418
|
<% } %>
|