@bookipi/htmlgenerator 1.7.1-alpha1 → 1.8.1-alpha1
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 +41 -19
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +41 -19
- package/dist/index.modern.js.map +1 -1
- package/dist/watermark~rKbOnEXj.svg +11 -0
- package/package.json +1 -1
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,6 +8933,22 @@ 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
|
+
};
|
|
8936
8952
|
var getTaxDetails = function getTaxDetails(document, company, defaultLang) {
|
|
8937
8953
|
var taxPercent1 = document.tp ? parseFloat(document.tp) : 0;
|
|
8938
8954
|
var taxPercent2 = document.tp2 ? parseFloat(document.tp2) : 0;
|
|
@@ -8943,12 +8959,12 @@ var getTaxDetails = function getTaxDetails(document, company, defaultLang) {
|
|
|
8943
8959
|
var discountOnItem = false;
|
|
8944
8960
|
var hasNonTaxableItem = false;
|
|
8945
8961
|
if (document.tx != 0) {
|
|
8946
|
-
taxName1 = document.tn ? document.tn :
|
|
8947
|
-
taxIncluded1 = document.ti ?
|
|
8962
|
+
taxName1 = document.tn ? document.tn : 'Tax';
|
|
8963
|
+
taxIncluded1 = document.ti ? ' ' + (company.r_ic ? company.r_ic : defaultLang['included']) : ' ';
|
|
8948
8964
|
}
|
|
8949
8965
|
if (document.ttx && document.tx2 != 0) {
|
|
8950
|
-
taxName2 = document.tn2 ? document.tn2 :
|
|
8951
|
-
taxIncluded2 = document.ti ?
|
|
8966
|
+
taxName2 = document.tn2 ? document.tn2 : 'Tax 2';
|
|
8967
|
+
taxIncluded2 = document.ti ? ' ' + (company.r_ic ? company.r_ic : defaultLang['included']) : ' ';
|
|
8952
8968
|
}
|
|
8953
8969
|
if (document.it) {
|
|
8954
8970
|
for (var _iterator = _createForOfIteratorHelperLoose(document.it), _step; !(_step = _iterator()).done;) {
|
|
@@ -9084,6 +9100,9 @@ var InvoiceHeader = function InvoiceHeader(_ref) {
|
|
|
9084
9100
|
var customer = document.cu;
|
|
9085
9101
|
var customerAddress = getCustomerAddress(customer);
|
|
9086
9102
|
var customerShippingAddress = getCustomerShippingAddress(customer);
|
|
9103
|
+
var _getCustomerName = getCustomerName(customer),
|
|
9104
|
+
customerPrimaryName = _getCustomerName.customerPrimaryName,
|
|
9105
|
+
customerSecondaryName = _getCustomerName.customerSecondaryName;
|
|
9087
9106
|
var documentName = getDocumentName({
|
|
9088
9107
|
document: document,
|
|
9089
9108
|
company: company,
|
|
@@ -9103,7 +9122,7 @@ var InvoiceHeader = function InvoiceHeader(_ref) {
|
|
|
9103
9122
|
timeZone: timeZone
|
|
9104
9123
|
});
|
|
9105
9124
|
};
|
|
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;\"
|
|
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 ", "\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'], 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 ? "<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 " : '');
|
|
9107
9126
|
};
|
|
9108
9127
|
|
|
9109
9128
|
var currencies = {
|
|
@@ -12394,6 +12413,9 @@ var InvoiceHeader$1 = function InvoiceHeader(_ref) {
|
|
|
12394
12413
|
var customer = document.cu;
|
|
12395
12414
|
var customerAddress = getCustomerAddress(customer);
|
|
12396
12415
|
var customerShippingAddress = getCustomerShippingAddress(customer);
|
|
12416
|
+
var _getCustomerName = getCustomerName(customer),
|
|
12417
|
+
customerPrimaryName = _getCustomerName.customerPrimaryName,
|
|
12418
|
+
customerSecondaryName = _getCustomerName.customerSecondaryName;
|
|
12397
12419
|
var documentName = getDocumentName({
|
|
12398
12420
|
document: document,
|
|
12399
12421
|
company: company,
|
|
@@ -12413,7 +12435,7 @@ var InvoiceHeader$1 = function InvoiceHeader(_ref) {
|
|
|
12413
12435
|
timeZone: timeZone
|
|
12414
12436
|
});
|
|
12415
12437
|
};
|
|
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\"
|
|
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\">", "</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\">", " 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'], 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, 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 " : '');
|
|
12417
12439
|
};
|
|
12418
12440
|
|
|
12419
12441
|
var _templateObject$o, _templateObject2$b, _templateObject3$4;
|
|
@@ -13624,9 +13646,9 @@ var InvoiceCompany$2 = function InvoiceCompany(_ref) {
|
|
|
13624
13646
|
var customerShippingAddress = getCustomerShippingAddress(customer);
|
|
13625
13647
|
var companyAddress = getCompanyAddress(company);
|
|
13626
13648
|
var shippingAddressExists = customerShippingAddress.address1 || customerShippingAddress.address2 || customerShippingAddress.address3 || customerShippingAddress.city || customerShippingAddress.state || customerShippingAddress.zip || document.asi;
|
|
13627
|
-
var customerCompanyName = (customer.
|
|
13628
|
-
var
|
|
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 + (
|
|
13649
|
+
var customerCompanyName = (customer.individualCompanyName ? customer.individualCompanyName : '') + (customer.departmentName ? '<br />' + customer.departmentName : '');
|
|
13650
|
+
var customerPersonName = customer.c;
|
|
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 + (customerPersonName ? '<br />' : ' ' + defaultLang['gochuu']) + '</span>' : '', customerPersonName ? '<span>' + customerPersonName + ' ' + 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>" : '');
|
|
13630
13652
|
};
|
|
13631
13653
|
|
|
13632
13654
|
var FormatCurrency$a = util.FormatCurrency;
|