@bookipi/htmlgenerator 1.8.1-alpha1 → 1.8.1
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 +19 -41
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +19 -41
- package/dist/index.modern.js.map +1 -1
- package/package.json +2 -2
- package/.vscode/common.settings.json +0 -38
- package/dist/watermark~rKbOnEXj.svg +0 -11
package/dist/index.js
CHANGED
|
@@ -8857,9 +8857,9 @@ var getDocumentName = function getDocumentName(_ref) {
|
|
|
8857
8857
|
document = _ref$document === void 0 ? {} : _ref$document,
|
|
8858
8858
|
_ref$defaultLang = _ref.defaultLang,
|
|
8859
8859
|
defaultLang = _ref$defaultLang === void 0 ? {
|
|
8860
|
-
document:
|
|
8861
|
-
creditNote:
|
|
8862
|
-
estimate:
|
|
8860
|
+
document: "Document",
|
|
8861
|
+
creditNote: "Credit Note",
|
|
8862
|
+
estimate: "Estimate"
|
|
8863
8863
|
} : _ref$defaultLang,
|
|
8864
8864
|
t = _ref.t;
|
|
8865
8865
|
var documentName = null;
|
|
@@ -8868,11 +8868,11 @@ var getDocumentName = function getDocumentName(_ref) {
|
|
|
8868
8868
|
documentName = (_company$doc$document2 = company.doc[document.ty]) === null || _company$doc$document2 === void 0 ? void 0 : _company$doc$document2.n;
|
|
8869
8869
|
} else {
|
|
8870
8870
|
if (document.ty === 1) {
|
|
8871
|
-
documentName = company.r_inv ? company.r_inv : defaultLang[
|
|
8871
|
+
documentName = company.r_inv ? company.r_inv : defaultLang["document"];
|
|
8872
8872
|
} else if (document.ty === 2) {
|
|
8873
|
-
documentName = company.r_crd ? company.r_crd : defaultLang[
|
|
8873
|
+
documentName = company.r_crd ? company.r_crd : defaultLang["creditNote"];
|
|
8874
8874
|
} else {
|
|
8875
|
-
documentName = company.r_est ? company.r_est : defaultLang[
|
|
8875
|
+
documentName = company.r_est ? company.r_est : defaultLang["estimate"];
|
|
8876
8876
|
}
|
|
8877
8877
|
}
|
|
8878
8878
|
return t ? t(documentName) : documentName;
|
|
@@ -8897,14 +8897,14 @@ var getFormatDate = function getFormatDate(_ref3) {
|
|
|
8897
8897
|
var company = _ref3.company,
|
|
8898
8898
|
date = _ref3.date,
|
|
8899
8899
|
timeZone = _ref3.timeZone;
|
|
8900
|
-
var momentLocale = ((company === null || company === void 0 ? void 0 : company.language) || (company === null || company === void 0 ? void 0 : company.la) ||
|
|
8901
|
-
if (momentLocale ===
|
|
8902
|
-
if (momentLocale ===
|
|
8900
|
+
var momentLocale = ((company === null || company === void 0 ? void 0 : company.language) || (company === null || company === void 0 ? void 0 : company.la) || "en").toLowerCase();
|
|
8901
|
+
if (momentLocale === "zh-hans") momentLocale = "zh-cn";
|
|
8902
|
+
if (momentLocale === "zh-hant") momentLocale = "zh-tw";
|
|
8903
8903
|
var d = momentTimezone$1(date).locale(momentLocale);
|
|
8904
8904
|
if (timeZone) {
|
|
8905
8905
|
d = d.tz(timeZone);
|
|
8906
8906
|
}
|
|
8907
|
-
return d.format(company.df === 0 ?
|
|
8907
|
+
return d.format(company.df === 0 ? "D MMM YYYY" : company.df === 1 ? "DD/MM/YYYY" : company.df === 3 ? "MM/D/YYYY" : company.df === 4 ? "YYYY/MM/DD" : "MMM D, YYYY");
|
|
8908
8908
|
};
|
|
8909
8909
|
var getCompanyAddress = function getCompanyAddress(company) {
|
|
8910
8910
|
return {
|
|
@@ -8933,22 +8933,6 @@ var getCustomerShippingAddress = function getCustomerShippingAddress(customer) {
|
|
|
8933
8933
|
address3: customer && (customer.shippingAddress && customer.shippingAddress.address3 != null ? customer.shippingAddress.address3 : customer.sa3) || null
|
|
8934
8934
|
});
|
|
8935
8935
|
};
|
|
8936
|
-
var getCustomerName = function getCustomerName(customer) {
|
|
8937
|
-
if (!customer) return {
|
|
8938
|
-
customerPrimaryName: '',
|
|
8939
|
-
customerSecondaryName: ''
|
|
8940
|
-
};
|
|
8941
|
-
if (customer.c && customer.individualCompanyName) {
|
|
8942
|
-
return {
|
|
8943
|
-
customerPrimaryName: customer.c,
|
|
8944
|
-
customerSecondaryName: customer.individualCompanyName
|
|
8945
|
-
};
|
|
8946
|
-
}
|
|
8947
|
-
return {
|
|
8948
|
-
customerPrimaryName: customer.c || customer.individualCompanyName,
|
|
8949
|
-
customerSecondaryName: ''
|
|
8950
|
-
};
|
|
8951
|
-
};
|
|
8952
8936
|
var getTaxDetails = function getTaxDetails(document, company, defaultLang) {
|
|
8953
8937
|
var taxPercent1 = document.tp ? parseFloat(document.tp) : 0;
|
|
8954
8938
|
var taxPercent2 = document.tp2 ? parseFloat(document.tp2) : 0;
|
|
@@ -8959,12 +8943,12 @@ var getTaxDetails = function getTaxDetails(document, company, defaultLang) {
|
|
|
8959
8943
|
var discountOnItem = false;
|
|
8960
8944
|
var hasNonTaxableItem = false;
|
|
8961
8945
|
if (document.tx != 0) {
|
|
8962
|
-
taxName1 = document.tn ? document.tn :
|
|
8963
|
-
taxIncluded1 = document.ti ?
|
|
8946
|
+
taxName1 = document.tn ? document.tn : "Tax";
|
|
8947
|
+
taxIncluded1 = document.ti ? " " + (company.r_ic ? company.r_ic : defaultLang["included"]) : " ";
|
|
8964
8948
|
}
|
|
8965
8949
|
if (document.ttx && document.tx2 != 0) {
|
|
8966
|
-
taxName2 = document.tn2 ? document.tn2 :
|
|
8967
|
-
taxIncluded2 = document.ti ?
|
|
8950
|
+
taxName2 = document.tn2 ? document.tn2 : "Tax 2";
|
|
8951
|
+
taxIncluded2 = document.ti ? " " + (company.r_ic ? company.r_ic : defaultLang["included"]) : " ";
|
|
8968
8952
|
}
|
|
8969
8953
|
if (document.it) {
|
|
8970
8954
|
for (var _iterator = _createForOfIteratorHelperLoose(document.it), _step; !(_step = _iterator()).done;) {
|
|
@@ -9100,9 +9084,6 @@ var InvoiceHeader = function InvoiceHeader(_ref) {
|
|
|
9100
9084
|
var customer = document.cu;
|
|
9101
9085
|
var customerAddress = getCustomerAddress(customer);
|
|
9102
9086
|
var customerShippingAddress = getCustomerShippingAddress(customer);
|
|
9103
|
-
var _getCustomerName = getCustomerName(customer),
|
|
9104
|
-
customerPrimaryName = _getCustomerName.customerPrimaryName,
|
|
9105
|
-
customerSecondaryName = _getCustomerName.customerSecondaryName;
|
|
9106
9087
|
var documentName = getDocumentName({
|
|
9107
9088
|
document: document,
|
|
9108
9089
|
company: company,
|
|
@@ -9122,7 +9103,7 @@ var InvoiceHeader = function InvoiceHeader(_ref) {
|
|
|
9122
9103
|
timeZone: timeZone
|
|
9123
9104
|
});
|
|
9124
9105
|
};
|
|
9125
|
-
return html$4(_templateObject$4 || (_templateObject$4 = _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 <strong\n >", "</strong\n >\n <div class=\"text-inverse mb-1\">\n <small style=\"font-size: 18px;\">", "</small>\n </div>\n <address class=\"m-t-5 m-b-5\">\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n
|
|
9106
|
+
return html$4(_templateObject$4 || (_templateObject$4 = _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 <strong\n >", "</strong\n >\n <div class=\"text-inverse mb-1\">\n <small style=\"font-size: 18px;\"\n >", "</small\n >\n </div>\n <address class=\"m-t-5 m-b-5\">\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 <strong>", " #</strong>\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 <strong\n >", "</strong\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'], customer ? customer.c : '', 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 ? "<strong stryle=\"margin-top:10px\">" + (company.r_st ? company.r_st : defaultLang.ship_to) + "</strong>" : '', shippingAddressExists ? "\n <address class=\"m-t-5 m-b-5\">\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, document.no ? document.no : '', document.proposal && document.proposal.no ? "<div class=\"row text-md-right\">\n <div class=\"col-6 col-md\">\n <strong>Proposal #</strong>\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['date'], formatDate(document.d), document.ty == 1 && !document.rd ? "<div class=\"row text-md-right\">\n <div class=\"col-6 col-md\">\n <strong>" + (company.r_dd ? company.r_dd : defaultLang['due_date']) + "</strong>\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 " : '');
|
|
9126
9107
|
};
|
|
9127
9108
|
|
|
9128
9109
|
var currencies = {
|
|
@@ -12413,9 +12394,6 @@ var InvoiceHeader$1 = function InvoiceHeader(_ref) {
|
|
|
12413
12394
|
var customer = document.cu;
|
|
12414
12395
|
var customerAddress = getCustomerAddress(customer);
|
|
12415
12396
|
var customerShippingAddress = getCustomerShippingAddress(customer);
|
|
12416
|
-
var _getCustomerName = getCustomerName(customer),
|
|
12417
|
-
customerPrimaryName = _getCustomerName.customerPrimaryName,
|
|
12418
|
-
customerSecondaryName = _getCustomerName.customerSecondaryName;
|
|
12419
12397
|
var documentName = getDocumentName({
|
|
12420
12398
|
document: document,
|
|
12421
12399
|
company: company,
|
|
@@ -12435,7 +12413,7 @@ var InvoiceHeader$1 = function InvoiceHeader(_ref) {
|
|
|
12435
12413
|
timeZone: timeZone
|
|
12436
12414
|
});
|
|
12437
12415
|
};
|
|
12438
|
-
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\"
|
|
12416
|
+
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\">\n ", "\n </div>\n <address class=\"address-text\" style=\"margin-bottom: 40px;\">\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\">", " NUMBER</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"], customer ? customer.c : "", 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, 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 " : "");
|
|
12439
12417
|
};
|
|
12440
12418
|
|
|
12441
12419
|
var _templateObject$o, _templateObject2$b, _templateObject3$4;
|
|
@@ -13646,9 +13624,9 @@ var InvoiceCompany$2 = function InvoiceCompany(_ref) {
|
|
|
13646
13624
|
var customerShippingAddress = getCustomerShippingAddress(customer);
|
|
13647
13625
|
var companyAddress = getCompanyAddress(company);
|
|
13648
13626
|
var shippingAddressExists = customerShippingAddress.address1 || customerShippingAddress.address2 || customerShippingAddress.address3 || customerShippingAddress.city || customerShippingAddress.state || customerShippingAddress.zip || document.asi;
|
|
13649
|
-
var customerCompanyName = (customer.
|
|
13650
|
-
var
|
|
13651
|
-
return html$y(_templateObject$A || (_templateObject$A = _taggedTemplateLiteralLoose(["<!-- begin invoice-header -->\n <div class=\"invoice-company\">\n <div class=\"row\">\n <div class=\"invoice-to col-sm-12 col-md-7\">\n <span class=\"company-label\">", "</span>\n <h2 class=\"company-title\">\n ", "\n ", "\n </h2>\n <div class=\"company-address\" style=\"padding-top: 8px;\">\n <div>\n <div>\n ", "\n </div>\n <div>\n ", "\n ", "\n </div>\n ", "\n ", "\n </div>\n </div>\n\n <div class=\"company-address\" style=\"padding-top: 8px;\">\n ", "\n ", "\n ", "\n ", "\n </div>\n\n ", "\n ", "\n <div class=\"company-address\" style=\"padding-top: 8px;\">\n ", "\n </div>\n </div>\n\n <div class=\"col-sm-12 col-md-5\">\n <span class=\"company-label\">", "</span>\n <h2 class=\"company-title\">", "</h2>\n <div class=\"company-address\" style=\"padding-top: 8px;\">\n <div>\n <div>\n ", "\n </div>\n <div>\n ", "\n ", "\n </div>\n ", "\n ", "\n </div>\n </div>\n <div class=\"company-address\" style=\"padding-top: 8px;\">\n ", "\n ", "\n ", "\n ", "\n ", "\n </div>\n </div>\n </div>\n </div>\n <!-- end invoice-header -->"])), defaultLang['bill_to'], customerCompanyName ? '<span>' + customerCompanyName + (
|
|
13627
|
+
var customerCompanyName = (customer.c ? customer.c : '') + (customer.departmentName ? '<br />' + customer.departmentName : '');
|
|
13628
|
+
var customerContactName = customer.contactName;
|
|
13629
|
+
return html$y(_templateObject$A || (_templateObject$A = _taggedTemplateLiteralLoose(["<!-- begin invoice-header -->\n <div class=\"invoice-company\">\n <div class=\"row\">\n <div class=\"invoice-to col-sm-12 col-md-7\">\n <span class=\"company-label\">", "</span>\n <h2 class=\"company-title\">\n ", "\n ", "\n </h2>\n <div class=\"company-address\" style=\"padding-top: 8px;\">\n <div>\n <div>\n ", "\n </div>\n <div>\n ", "\n ", "\n </div>\n ", "\n ", "\n </div>\n </div>\n\n <div class=\"company-address\" style=\"padding-top: 8px;\">\n ", "\n ", "\n ", "\n ", "\n </div>\n\n ", "\n ", "\n <div class=\"company-address\" style=\"padding-top: 8px;\">\n ", "\n </div>\n </div>\n\n <div class=\"col-sm-12 col-md-5\">\n <span class=\"company-label\">", "</span>\n <h2 class=\"company-title\">", "</h2>\n <div class=\"company-address\" style=\"padding-top: 8px;\">\n <div>\n <div>\n ", "\n </div>\n <div>\n ", "\n ", "\n </div>\n ", "\n ", "\n </div>\n </div>\n <div class=\"company-address\" style=\"padding-top: 8px;\">\n ", "\n ", "\n ", "\n ", "\n ", "\n </div>\n </div>\n </div>\n </div>\n <!-- end invoice-header -->"])), defaultLang['bill_to'], customerCompanyName ? '<span>' + customerCompanyName + (customerContactName ? '<br />' : ' ' + defaultLang['gochuu']) + '</span>' : '', customerContactName ? '<span>' + customerContactName + ' ' + defaultLang['san'] + '</span>' : '', customerAddress.zip ? '〒 ' + customerAddress.zip + ' ' : '', customerAddress.city || customerAddress.state ? "" + ((customerAddress.state ? customerAddress.state + ' ' : '') + (customerAddress.city ? customerAddress.city + ' ' : '')) : '', customerAddress.address1 ? "" + customerAddress.address1 : '', customerAddress.address2 ? "<div>" + customerAddress.address2 + "</div>" : '', customerAddress.address3 ? "<div>" + customerAddress.address3 + "</div>" : '', customer && customer.tfn ? "<div><span style=\"font-weight: 600;\">" + (customer.tfn ? defaultLang['business_number'] + ':</span> ' + customer.tfn : '') + "</div>" : '', customer && customer.ph ? "<div><span style=\"font-weight: 600;\">TEL:</span> " + customer.ph + "</div>" : '', customer && customer.e ? "<div><span style=\"font-weight: 600;\">E-Mail:</span> " + customer.e + "</div>" : '', customer && customer.ai ? "<div>" + customer.ai + "</div>" : '', shippingAddressExists ? "<div class=\"company-address\" style=\"padding-top:8px; font-weight: 600;\" >" + defaultLang['ship_to'] + ":</div>" : '', shippingAddressExists ? "\n <div class=\"company-address\">\n <div>\n <div>\n " + (customerShippingAddress.zip ? '〒 ' + customerShippingAddress.zip + ' ' : '') + "\n </div>\n <div>\n " + (customerShippingAddress.city || customerShippingAddress.state ? "" + ((customerShippingAddress.state ? customerShippingAddress.state + ' ' : '') + (customerShippingAddress.city ? customerShippingAddress.city + ' ' : '')) : '') + "\n " + (customerShippingAddress.address1 ? "" + customerShippingAddress.address1 : '') + "\n </div>\n " + (customerShippingAddress.address2 ? "<div>" + customerShippingAddress.address2 + "</div>" : '') + "\n " + (customerShippingAddress.address3 ? "<div>" + customerShippingAddress.address3 + "</div>" : '') + "\n " + (document.asi ? "<div>" + document.asi + "</div>" : '') + "\n </div>\n </div>\n " : '', defaultLang['invoice_details'], defaultLang['issue_from'], company.c, companyAddress.zip ? '〒 ' + companyAddress.zip + ' ' : '', companyAddress.city || companyAddress.state ? "" + ((companyAddress.state ? companyAddress.state + ' ' : '') + (companyAddress.city ? companyAddress.city + ' ' : '')) : '', companyAddress.address1 ? "" + companyAddress.address1 : '', companyAddress.address2 ? "<div>" + companyAddress.address2 + "</div>" : '', companyAddress.address3 ? "<div>" + companyAddress.address3 + "</div>" : '', company.ph ? "<div><span style=\"font-weight: 600;\">TEL:</span> " + company.ph + "</div>" : '', company.fax ? "<div><span style=\"font-weight: 600;\">FAX:</span> " + company.fax + "</div>" : '', company.de ? "<div><span style=\"font-weight: 600;\">E-Mail:</span> " + company.de + "</div>" : '', company.contactName ? "<div><span style=\"font-weight: 600;\">" + defaultLang['contact_person'] + ":</span> " + company.contactName + "</div>" : '', company.ai ? "<div style=\"padding-top: 8px;\">" + company.ai + "</div>" : '');
|
|
13652
13630
|
};
|
|
13653
13631
|
|
|
13654
13632
|
var FormatCurrency$a = util.FormatCurrency;
|