@bookipi/htmlgenerator 1.1.35-alpha3 → 1.1.35-alpha5
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 +6 -6
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +6 -6
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -12247,11 +12247,11 @@ var getTaxTitle = function getTaxTitle(item, isShowZero) {
|
|
|
12247
12247
|
}
|
|
12248
12248
|
return (taxInclusive + enableTax1 + enableTax2).trim();
|
|
12249
12249
|
};
|
|
12250
|
-
var endDate = function endDate(proposal, company) {
|
|
12250
|
+
var endDate = function endDate(proposal, company, momentLocale) {
|
|
12251
12251
|
if ((proposal === null || proposal === void 0 ? void 0 : proposal.endDate) !== null) {
|
|
12252
|
-
return formatDate(proposal === null || proposal === void 0 ? void 0 : proposal.endDate, company);
|
|
12252
|
+
return formatDate(proposal === null || proposal === void 0 ? void 0 : proposal.endDate, company, "", momentLocale);
|
|
12253
12253
|
} else if ((proposal === null || proposal === void 0 ? void 0 : proposal.endType) === "fixed_length") {
|
|
12254
|
-
return formatDate(moment(proposal === null || proposal === void 0 ? void 0 : proposal.startDate).add(proposal === null || proposal === void 0 ? void 0 : proposal.contractLength, "month"), company);
|
|
12254
|
+
return formatDate(moment(proposal === null || proposal === void 0 ? void 0 : proposal.startDate).add(proposal === null || proposal === void 0 ? void 0 : proposal.contractLength, "month"), company, "", momentLocale);
|
|
12255
12255
|
}
|
|
12256
12256
|
};
|
|
12257
12257
|
var getRecurringPeriodType = function getRecurringPeriodType(recurringPeriodType, recurringPeriodFrequency) {
|
|
@@ -12408,7 +12408,7 @@ var contractHtml = (function (props) {
|
|
|
12408
12408
|
sectionUserInfo += "</td></tr></tbody></table>";
|
|
12409
12409
|
sectionUserInfo += "<p class=\"agreement-date\"><b>" + ((t ? t(lang === null || lang === void 0 ? void 0 : lang.effective_date) : lang === null || lang === void 0 ? void 0 : lang.effective_date) || "") + ":</b> " + (proposal !== null && proposal !== void 0 && proposal.effectiveDate ? formatDate(proposal.effectiveDate, company || {}, "", momentLocale) : "") + "</p>";
|
|
12410
12410
|
sectionUserInfo += "<p class=\"agreement-date\"><b>" + ((t ? t(lang === null || lang === void 0 ? void 0 : lang.start_date) : lang === null || lang === void 0 ? void 0 : lang.start_date) || "") + ":</b> " + (proposal !== null && proposal !== void 0 && proposal.startDate ? formatDate(proposal.startDate, company || {}, "", momentLocale) : "") + "</p>";
|
|
12411
|
-
sectionUserInfo += "<p class=\"agreement-date\"><b>" + ((t ? t(lang === null || lang === void 0 ? void 0 : lang.end_date) : lang === null || lang === void 0 ? void 0 : lang.end_date) || "") + ":</b> " + endDate(proposal, company || {}) + "</p>";
|
|
12411
|
+
sectionUserInfo += "<p class=\"agreement-date\"><b>" + ((t ? t(lang === null || lang === void 0 ? void 0 : lang.end_date) : lang === null || lang === void 0 ? void 0 : lang.end_date) || "") + ":</b> " + endDate(proposal, company || {}, momentLocale) + "</p>";
|
|
12412
12412
|
sectionUserInfo += "<div style=\"margin: 6px 0\">";
|
|
12413
12413
|
sectionUserInfo += "<span>" + ((t ? t(lang === null || lang === void 0 ? void 0 : lang.details_line_4) : lang === null || lang === void 0 ? void 0 : lang.details_line_4) || "") + "</span><br />";
|
|
12414
12414
|
sectionUserInfo += "</div>";
|
|
@@ -12421,7 +12421,7 @@ var contractHtml = (function (props) {
|
|
|
12421
12421
|
sectionServices += '<table class="table-service"><tbody>';
|
|
12422
12422
|
if (items && items.length > 0) {
|
|
12423
12423
|
items.forEach(function (it) {
|
|
12424
|
-
var taxTitle = getTaxTitle(it, true);
|
|
12424
|
+
var taxTitle = getTaxTitle(it, true).replace('including', t('including')).replace('excluding', t('excluding')).replace('Add Tax', t('Add Tax'));
|
|
12425
12425
|
sectionServices += "<tr><td>";
|
|
12426
12426
|
if (it.billingType !== "none") {
|
|
12427
12427
|
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 +12445,7 @@ var contractHtml = (function (props) {
|
|
|
12445
12445
|
sectionServices += "</div>";
|
|
12446
12446
|
}
|
|
12447
12447
|
sectionServices += '</td><td align="right">';
|
|
12448
|
-
sectionServices += "<p>" + getBilling(it, proposal, company) + "</p>";
|
|
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>";
|
|
12449
12449
|
sectionServices += "</td></tr>";
|
|
12450
12450
|
});
|
|
12451
12451
|
} else {
|