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