@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.modern.js
CHANGED
|
@@ -12246,11 +12246,11 @@ var getTaxTitle = function getTaxTitle(item, isShowZero) {
|
|
|
12246
12246
|
}
|
|
12247
12247
|
return (taxInclusive + enableTax1 + enableTax2).trim();
|
|
12248
12248
|
};
|
|
12249
|
-
var endDate = function endDate(proposal, company) {
|
|
12249
|
+
var endDate = function endDate(proposal, company, momentLocale) {
|
|
12250
12250
|
if ((proposal === null || proposal === void 0 ? void 0 : proposal.endDate) !== null) {
|
|
12251
|
-
return formatDate(proposal === null || proposal === void 0 ? void 0 : proposal.endDate, company);
|
|
12251
|
+
return formatDate(proposal === null || proposal === void 0 ? void 0 : proposal.endDate, company, "", momentLocale);
|
|
12252
12252
|
} else if ((proposal === null || proposal === void 0 ? void 0 : proposal.endType) === "fixed_length") {
|
|
12253
|
-
return formatDate(moment(proposal === null || proposal === void 0 ? void 0 : proposal.startDate).add(proposal === null || proposal === void 0 ? void 0 : proposal.contractLength, "month"), company);
|
|
12253
|
+
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);
|
|
12254
12254
|
}
|
|
12255
12255
|
};
|
|
12256
12256
|
var getRecurringPeriodType = function getRecurringPeriodType(recurringPeriodType, recurringPeriodFrequency) {
|
|
@@ -12407,7 +12407,7 @@ var contractHtml = (function (props) {
|
|
|
12407
12407
|
sectionUserInfo += "</td></tr></tbody></table>";
|
|
12408
12408
|
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>";
|
|
12409
12409
|
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>";
|
|
12410
|
-
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>";
|
|
12410
|
+
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>";
|
|
12411
12411
|
sectionUserInfo += "<div style=\"margin: 6px 0\">";
|
|
12412
12412
|
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 />";
|
|
12413
12413
|
sectionUserInfo += "</div>";
|
|
@@ -12420,7 +12420,7 @@ var contractHtml = (function (props) {
|
|
|
12420
12420
|
sectionServices += '<table class="table-service"><tbody>';
|
|
12421
12421
|
if (items && items.length > 0) {
|
|
12422
12422
|
items.forEach(function (it) {
|
|
12423
|
-
var taxTitle = getTaxTitle(it, true);
|
|
12423
|
+
var taxTitle = getTaxTitle(it, true).replace('including', t('including')).replace('excluding', t('excluding')).replace('Add Tax', t('Add Tax'));
|
|
12424
12424
|
sectionServices += "<tr><td>";
|
|
12425
12425
|
if (it.billingType !== "none") {
|
|
12426
12426
|
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 +12444,7 @@ var contractHtml = (function (props) {
|
|
|
12444
12444
|
sectionServices += "</div>";
|
|
12445
12445
|
}
|
|
12446
12446
|
sectionServices += '</td><td align="right">';
|
|
12447
|
-
sectionServices += "<p>" + getBilling(it, proposal, company) + "</p>";
|
|
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>";
|
|
12448
12448
|
sectionServices += "</td></tr>";
|
|
12449
12449
|
});
|
|
12450
12450
|
} else {
|