@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.modern.js
CHANGED
|
@@ -8855,9 +8855,9 @@ var getDocumentName = function getDocumentName(_ref) {
|
|
|
8855
8855
|
document = _ref$document === void 0 ? {} : _ref$document,
|
|
8856
8856
|
_ref$defaultLang = _ref.defaultLang,
|
|
8857
8857
|
defaultLang = _ref$defaultLang === void 0 ? {
|
|
8858
|
-
document:
|
|
8859
|
-
creditNote:
|
|
8860
|
-
estimate:
|
|
8858
|
+
document: "Document",
|
|
8859
|
+
creditNote: "Credit Note",
|
|
8860
|
+
estimate: "Estimate"
|
|
8861
8861
|
} : _ref$defaultLang,
|
|
8862
8862
|
t = _ref.t;
|
|
8863
8863
|
var documentName = null;
|
|
@@ -8866,11 +8866,11 @@ var getDocumentName = function getDocumentName(_ref) {
|
|
|
8866
8866
|
documentName = (_company$doc$document2 = company.doc[document.ty]) === null || _company$doc$document2 === void 0 ? void 0 : _company$doc$document2.n;
|
|
8867
8867
|
} else {
|
|
8868
8868
|
if (document.ty === 1) {
|
|
8869
|
-
documentName = company.r_inv ? company.r_inv : defaultLang[
|
|
8869
|
+
documentName = company.r_inv ? company.r_inv : defaultLang["document"];
|
|
8870
8870
|
} else if (document.ty === 2) {
|
|
8871
|
-
documentName = company.r_crd ? company.r_crd : defaultLang[
|
|
8871
|
+
documentName = company.r_crd ? company.r_crd : defaultLang["creditNote"];
|
|
8872
8872
|
} else {
|
|
8873
|
-
documentName = company.r_est ? company.r_est : defaultLang[
|
|
8873
|
+
documentName = company.r_est ? company.r_est : defaultLang["estimate"];
|
|
8874
8874
|
}
|
|
8875
8875
|
}
|
|
8876
8876
|
return t ? t(documentName) : documentName;
|
|
@@ -8895,14 +8895,14 @@ var getFormatDate = function getFormatDate(_ref3) {
|
|
|
8895
8895
|
var company = _ref3.company,
|
|
8896
8896
|
date = _ref3.date,
|
|
8897
8897
|
timeZone = _ref3.timeZone;
|
|
8898
|
-
var momentLocale = ((company === null || company === void 0 ? void 0 : company.language) || (company === null || company === void 0 ? void 0 : company.la) ||
|
|
8899
|
-
if (momentLocale ===
|
|
8900
|
-
if (momentLocale ===
|
|
8898
|
+
var momentLocale = ((company === null || company === void 0 ? void 0 : company.language) || (company === null || company === void 0 ? void 0 : company.la) || "en").toLowerCase();
|
|
8899
|
+
if (momentLocale === "zh-hans") momentLocale = "zh-cn";
|
|
8900
|
+
if (momentLocale === "zh-hant") momentLocale = "zh-tw";
|
|
8901
8901
|
var d = momentTimezone$1(date).locale(momentLocale);
|
|
8902
8902
|
if (timeZone) {
|
|
8903
8903
|
d = d.tz(timeZone);
|
|
8904
8904
|
}
|
|
8905
|
-
return d.format(company.df === 0 ?
|
|
8905
|
+
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");
|
|
8906
8906
|
};
|
|
8907
8907
|
var getCompanyAddress = function getCompanyAddress(company) {
|
|
8908
8908
|
return {
|
|
@@ -8931,22 +8931,6 @@ var getCustomerShippingAddress = function getCustomerShippingAddress(customer) {
|
|
|
8931
8931
|
address3: customer && (customer.shippingAddress && customer.shippingAddress.address3 != null ? customer.shippingAddress.address3 : customer.sa3) || null
|
|
8932
8932
|
});
|
|
8933
8933
|
};
|
|
8934
|
-
var getCustomerName = function getCustomerName(customer) {
|
|
8935
|
-
if (!customer) return {
|
|
8936
|
-
customerPrimaryName: '',
|
|
8937
|
-
customerSecondaryName: ''
|
|
8938
|
-
};
|
|
8939
|
-
if (customer.c && customer.individualCompanyName) {
|
|
8940
|
-
return {
|
|
8941
|
-
customerPrimaryName: customer.c,
|
|
8942
|
-
customerSecondaryName: customer.individualCompanyName
|
|
8943
|
-
};
|
|
8944
|
-
}
|
|
8945
|
-
return {
|
|
8946
|
-
customerPrimaryName: customer.c || customer.individualCompanyName,
|
|
8947
|
-
customerSecondaryName: ''
|
|
8948
|
-
};
|
|
8949
|
-
};
|
|
8950
8934
|
var getTaxDetails = function getTaxDetails(document, company, defaultLang) {
|
|
8951
8935
|
var taxPercent1 = document.tp ? parseFloat(document.tp) : 0;
|
|
8952
8936
|
var taxPercent2 = document.tp2 ? parseFloat(document.tp2) : 0;
|
|
@@ -8957,12 +8941,12 @@ var getTaxDetails = function getTaxDetails(document, company, defaultLang) {
|
|
|
8957
8941
|
var discountOnItem = false;
|
|
8958
8942
|
var hasNonTaxableItem = false;
|
|
8959
8943
|
if (document.tx != 0) {
|
|
8960
|
-
taxName1 = document.tn ? document.tn :
|
|
8961
|
-
taxIncluded1 = document.ti ?
|
|
8944
|
+
taxName1 = document.tn ? document.tn : "Tax";
|
|
8945
|
+
taxIncluded1 = document.ti ? " " + (company.r_ic ? company.r_ic : defaultLang["included"]) : " ";
|
|
8962
8946
|
}
|
|
8963
8947
|
if (document.ttx && document.tx2 != 0) {
|
|
8964
|
-
taxName2 = document.tn2 ? document.tn2 :
|
|
8965
|
-
taxIncluded2 = document.ti ?
|
|
8948
|
+
taxName2 = document.tn2 ? document.tn2 : "Tax 2";
|
|
8949
|
+
taxIncluded2 = document.ti ? " " + (company.r_ic ? company.r_ic : defaultLang["included"]) : " ";
|
|
8966
8950
|
}
|
|
8967
8951
|
if (document.it) {
|
|
8968
8952
|
for (var _iterator = _createForOfIteratorHelperLoose(document.it), _step; !(_step = _iterator()).done;) {
|
|
@@ -9098,9 +9082,6 @@ var InvoiceHeader = function InvoiceHeader(_ref) {
|
|
|
9098
9082
|
var customer = document.cu;
|
|
9099
9083
|
var customerAddress = getCustomerAddress(customer);
|
|
9100
9084
|
var customerShippingAddress = getCustomerShippingAddress(customer);
|
|
9101
|
-
var _getCustomerName = getCustomerName(customer),
|
|
9102
|
-
customerPrimaryName = _getCustomerName.customerPrimaryName,
|
|
9103
|
-
customerSecondaryName = _getCustomerName.customerSecondaryName;
|
|
9104
9085
|
var documentName = getDocumentName({
|
|
9105
9086
|
document: document,
|
|
9106
9087
|
company: company,
|
|
@@ -9120,7 +9101,7 @@ var InvoiceHeader = function InvoiceHeader(_ref) {
|
|
|
9120
9101
|
timeZone: timeZone
|
|
9121
9102
|
});
|
|
9122
9103
|
};
|
|
9123
|
-
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
|
|
9104
|
+
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 " : '');
|
|
9124
9105
|
};
|
|
9125
9106
|
|
|
9126
9107
|
var currencies = {
|
|
@@ -12412,9 +12393,6 @@ var InvoiceHeader$1 = function InvoiceHeader(_ref) {
|
|
|
12412
12393
|
var customer = document.cu;
|
|
12413
12394
|
var customerAddress = getCustomerAddress(customer);
|
|
12414
12395
|
var customerShippingAddress = getCustomerShippingAddress(customer);
|
|
12415
|
-
var _getCustomerName = getCustomerName(customer),
|
|
12416
|
-
customerPrimaryName = _getCustomerName.customerPrimaryName,
|
|
12417
|
-
customerSecondaryName = _getCustomerName.customerSecondaryName;
|
|
12418
12396
|
var documentName = getDocumentName({
|
|
12419
12397
|
document: document,
|
|
12420
12398
|
company: company,
|
|
@@ -12434,7 +12412,7 @@ var InvoiceHeader$1 = function InvoiceHeader(_ref) {
|
|
|
12434
12412
|
timeZone: timeZone
|
|
12435
12413
|
});
|
|
12436
12414
|
};
|
|
12437
|
-
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\"
|
|
12415
|
+
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 " : "");
|
|
12438
12416
|
};
|
|
12439
12417
|
|
|
12440
12418
|
var _templateObject$o, _templateObject2$b, _templateObject3$4;
|
|
@@ -13645,9 +13623,9 @@ var InvoiceCompany$2 = function InvoiceCompany(_ref) {
|
|
|
13645
13623
|
var customerShippingAddress = getCustomerShippingAddress(customer);
|
|
13646
13624
|
var companyAddress = getCompanyAddress(company);
|
|
13647
13625
|
var shippingAddressExists = customerShippingAddress.address1 || customerShippingAddress.address2 || customerShippingAddress.address3 || customerShippingAddress.city || customerShippingAddress.state || customerShippingAddress.zip || document.asi;
|
|
13648
|
-
var customerCompanyName = (customer.
|
|
13649
|
-
var
|
|
13650
|
-
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 + (
|
|
13626
|
+
var customerCompanyName = (customer.c ? customer.c : '') + (customer.departmentName ? '<br />' + customer.departmentName : '');
|
|
13627
|
+
var customerContactName = customer.contactName;
|
|
13628
|
+
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>" : '');
|
|
13651
13629
|
};
|
|
13652
13630
|
|
|
13653
13631
|
var FormatCurrency$a = util.FormatCurrency;
|