@bookipi/htmlgenerator 1.8.5-alpha1 → 1.8.5-alpha3
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 +2 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +2 -1
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -12175,6 +12175,7 @@ var getDefaultLang = function getDefaultLang(t, lang) {
|
|
|
12175
12175
|
price: t ? t('Price') : lang['price'],
|
|
12176
12176
|
quantity: t ? t('Quantity') : lang['quantity'],
|
|
12177
12177
|
item: t ? t('Item') : lang['item'],
|
|
12178
|
+
number: t ? t('Number') : lang['number'],
|
|
12178
12179
|
po_number: t ? t('PO Number') : lang['po_number'],
|
|
12179
12180
|
due_date: t ? t('Due date') : lang['due_date'],
|
|
12180
12181
|
due: t ? t('Due') : lang['due'],
|
|
@@ -12458,7 +12459,7 @@ var InvoiceHeader$1 = function InvoiceHeader(_ref) {
|
|
|
12458
12459
|
timeZone: timeZone
|
|
12459
12460
|
});
|
|
12460
12461
|
};
|
|
12461
|
-
return html$m(_templateObject$n || (_templateObject$n = _taggedTemplateLiteralLoose(["<!-- begin invoice-header -->\n <div class=\"invoice-header\">\n <div class=\"row\">\n <div class=\"invoice-to col-sm-12 col-md-6\">\n <span class=\"heading heading-title\">\n ", "</span\n >\n <div class=\"text-inverse customer-name\">", "</div>\n <address class=\"address-text\" style=\"margin-bottom: 40px;\">\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n </address>\n\n ", "\n ", "\n </div>\n\n <div class=\"invoice-date col-sm-12 col-md-6\">\n <div class=\"row text-md-right\">\n <div class=\"col-6 col-md\">\n <span class=\"label\"
|
|
12462
|
+
return html$m(_templateObject$n || (_templateObject$n = _taggedTemplateLiteralLoose(["<!-- begin invoice-header -->\n <div class=\"invoice-header\">\n <div class=\"row\">\n <div class=\"invoice-to col-sm-12 col-md-6\">\n <span class=\"heading heading-title\">\n ", "</span\n >\n <div class=\"text-inverse customer-name\">", "</div>\n <address class=\"address-text\" style=\"margin-bottom: 40px;\">\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n </address>\n\n ", "\n ", "\n </div>\n\n <div class=\"invoice-date col-sm-12 col-md-6\">\n <div class=\"row text-md-right\">\n <div class=\"col-6 col-md\">\n <span class=\"label\">\n ", " ", "\n </span>\n </div>\n <div class=\"col-6 col-md invoice-detail-right\">\n ", "\n </div>\n </div>\n ", "\n <div class=\"row text-md-right\">\n <div class=\"col-6 col-md\">\n <span class=\"label\"\n >", "</span\n >\n </div>\n <div class=\"col-6 col-md invoice-detail-right\">\n ", "\n </div>\n </div>\n ", "\n ", "\n </div>\n </div>\n </div>\n <!-- end invoice-header -->"])), company.r_bt ? company.r_bt : defaultLang['bill_to'], customerPrimaryName, customerSecondaryName ? "<div>" + customerSecondaryName + "</div>" : '', customerAddress.address1 ? "<div>" + customerAddress.address1 + "</div>" : '', customerAddress.address2 ? "<div>" + customerAddress.address2 + "</div>" : '', customerAddress.address3 ? "<div>" + customerAddress.address3 + "</div>" : '', customerAddress.city || customerAddress.state || customerAddress.zip ? "<div>" + ((customerAddress.city ? customerAddress.city + ' ' : '') + (customerAddress.state ? customerAddress.state + ' ' : '') + (customerAddress.zip ? customerAddress.zip + ' ' : '')) + "</div>" : '', customerAddress.country ? "<div>" + customerAddress.country + "</div>" : '', customer && customer.tfn ? "<div>" + (customer.tfn ? (company.bn || 'Tax no.') + ' : ' + customer.tfn : '') + "</div>" : '', customer && customer.e ? "<div>" + customer.e + "</div>" : '', customer && customer.ph ? "<div>" + customer.ph + "</div>" : '', customer && customer.ai ? "<div>" + customer.ai + "</div>" : '', shippingAddressExists ? "<span class=\"heading\" >" + (company.r_st ? company.r_st : defaultLang.ship_to) + "</span>" : '', shippingAddressExists ? "\n <address class=\"address-text\" style=\"margin-bottom: 8px;\">\n " + (customerShippingAddress.address1 ? "<div>" + customerShippingAddress.address1 + "</div>" : '') + "\n " + (customerShippingAddress.address2 ? "<div>" + customerShippingAddress.address2 + "</div>" : '') + "\n " + (customerShippingAddress.address3 ? "<div>" + customerShippingAddress.address3 + "</div>" : '') + "\n " + (customerShippingAddress.city || customerShippingAddress.state || customerShippingAddress.zip ? "<div>" + ((customerShippingAddress.city ? customerShippingAddress.city + ' ' : '') + (customerShippingAddress.state ? customerShippingAddress.state + ' ' : '') + (customerShippingAddress.zip ? customerShippingAddress.zip + ' ' : '')) + "</div>" : '') + "\n " + (customerShippingAddress.country ? "<div>" + customerShippingAddress.country + "</div>" : '') + "\n " + (document.asi ? "<div>" + document.asi + "</div>" : '') + "\n </address>\n " : '', documentName, defaultLang['number'], document.no ? document.no : '', document.proposal && document.proposal.no ? "<div class=\"row text-md-right\">\n <div class=\"col-6 col-md\">\n <span class=\"label\">Proposal #</span>\n </div>\n <div class=\"col-6 col-md invoice-detail-right\">\n " + document.proposal.no + "\n </div>\n </div>" : '', company.r_d ? company.r_d : defaultLang['issued'], formatDate(document.d), document.ty == 1 && !document.rd ? "<div class=\"row text-md-right\">\n <div class=\"col-6 col-md\">\n <span class=\"label\">" + (company.r_dd ? company.r_dd : defaultLang['due']) + "</span>\n </div>\n <div class=\"col-6 col-md invoice-detail-right\">\n " + (document.dd ? formatDate(document.dd) : formatDate(new Date(document.d).setDate(new Date(document.d).getDate() + parseInt(document.di)))) + "\n </div>\n </div>" : '', document.pon ? "<div class=\"row text-md-right\">\n <div class=\"col-6 col-md\">\n <strong>" + (company.r_po ? company.r_po : defaultLang['po_number']) + "</strong>\n </div>\n <div class=\"col-6 col-md invoice-detail-right\">" + document.pon + "</div>\n </div>\n " : '');
|
|
12462
12463
|
};
|
|
12463
12464
|
|
|
12464
12465
|
var _templateObject$o, _templateObject2$b, _templateObject3$4;
|