@bookipi/htmlgenerator 1.1.35-alpha5 → 1.1.35-alpha6
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/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +7 -3
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -12322,6 +12322,10 @@ var getObjectInject = function getObjectInject(arr, objectDefine) {
|
|
|
12322
12322
|
var SECTION_DEFINE = [{
|
|
12323
12323
|
termHeading: '',
|
|
12324
12324
|
termContent: 'The following terms and conditions form the Terms of Services between <b>{companyName} (Supplier)</b> and <b>{customerName} (Customer)</b>. Please review the following terms carefully before accepting this Proposal.',
|
|
12325
|
+
termContent_1: 'The following terms and conditions form the Terms of Services between',
|
|
12326
|
+
termContent_2: 'Supplier',
|
|
12327
|
+
termContent_3: 'Customer',
|
|
12328
|
+
termContent_4: 'Please review the following terms carefully before accepting this Proposal',
|
|
12325
12329
|
isTermHidden: false,
|
|
12326
12330
|
replace: ['customerName', 'companyName']
|
|
12327
12331
|
}];
|
|
@@ -12420,7 +12424,7 @@ var contractHtml = (function (props) {
|
|
|
12420
12424
|
sectionServices += '<table class="table-service"><tbody>';
|
|
12421
12425
|
if (items && items.length > 0) {
|
|
12422
12426
|
items.forEach(function (it) {
|
|
12423
|
-
var taxTitle = getTaxTitle(it, true).replace('including', t('including')).replace('excluding', t('excluding')).replace('Add Tax', t('Add Tax'));
|
|
12427
|
+
var taxTitle = t ? getTaxTitle(it, true).replace('including', t('including')).replace('excluding', t('excluding')).replace('Add Tax', t('Add Tax')) : getTaxTitle(it, true);
|
|
12424
12428
|
sectionServices += "<tr><td>";
|
|
12425
12429
|
if (it.billingType !== "none") {
|
|
12426
12430
|
sectionServices += "<b>" + FormatCurrency$4(((it === null || it === void 0 ? void 0 : it.price) || 0) * ((it === null || it === void 0 ? void 0 : it.quantity) || 0), (company === null || company === void 0 ? void 0 : company.currency) || "USD", (company === null || company === void 0 ? void 0 : company.language) || "en", (company === null || company === void 0 ? void 0 : company.currencyFormat) || "") + "</b>";
|
|
@@ -12444,7 +12448,7 @@ var contractHtml = (function (props) {
|
|
|
12444
12448
|
sectionServices += "</div>";
|
|
12445
12449
|
}
|
|
12446
12450
|
sectionServices += '</td><td align="right">';
|
|
12447
|
-
sectionServices += "<p>" + getBilling(it, proposal, company).replace('Billed today', t('Billed today')).replace('Billed on completion', t('Billed on completion')).replace('Billed on', t('Billed on')) + "</p>";
|
|
12451
|
+
sectionServices += "<p>" + t ? getBilling(it, proposal, company).replace('Billed today', t('Billed today')).replace('Billed on completion', t('Billed on completion')).replace('Billed on', t('Billed on')) : getBilling(it, proposal, company) + "</p>";
|
|
12448
12452
|
sectionServices += "</td></tr>";
|
|
12449
12453
|
});
|
|
12450
12454
|
} else {
|
|
@@ -12465,7 +12469,7 @@ var contractHtml = (function (props) {
|
|
|
12465
12469
|
if (s !== null && s !== void 0 && s.termContent) {
|
|
12466
12470
|
var _s$replace;
|
|
12467
12471
|
sectionAgreement += '<p style="marginBottom: 10px">';
|
|
12468
|
-
sectionAgreement += convertMetaCharacterToHtml((s === null || s === void 0 ? void 0 : (_s$replace = s.replace) === null || _s$replace === void 0 ? void 0 : _s$replace.length) === 0 ? s.termContent : stringInjectObject(s.termContent, getObjectInject(s.replace, objectDefine)));
|
|
12472
|
+
sectionAgreement += convertMetaCharacterToHtml((s === null || s === void 0 ? void 0 : (_s$replace = s.replace) === null || _s$replace === void 0 ? void 0 : _s$replace.length) === 0 ? s.termContent : stringInjectObject(t ? t(s.termContent_1) + " <b>{companyName} (" + t(s.termContent_2) + ")</b> and <b>{customerName} (" + t(s.termContent_3) + ")</b>. " + t(s.termContent_4) + "." : s.termContent, getObjectInject(s.replace, objectDefine)));
|
|
12469
12473
|
sectionAgreement += "</p>";
|
|
12470
12474
|
}
|
|
12471
12475
|
sectionAgreement += "</td></tr>";
|