@bookipi/htmlgenerator 1.8.1 → 1.8.2
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 +42 -20
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +42 -20
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
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,6 +8931,22 @@ 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
|
+
};
|
|
8934
8950
|
var getTaxDetails = function getTaxDetails(document, company, defaultLang) {
|
|
8935
8951
|
var taxPercent1 = document.tp ? parseFloat(document.tp) : 0;
|
|
8936
8952
|
var taxPercent2 = document.tp2 ? parseFloat(document.tp2) : 0;
|
|
@@ -8941,12 +8957,12 @@ var getTaxDetails = function getTaxDetails(document, company, defaultLang) {
|
|
|
8941
8957
|
var discountOnItem = false;
|
|
8942
8958
|
var hasNonTaxableItem = false;
|
|
8943
8959
|
if (document.tx != 0) {
|
|
8944
|
-
taxName1 = document.tn ? document.tn :
|
|
8945
|
-
taxIncluded1 = document.ti ?
|
|
8960
|
+
taxName1 = document.tn ? document.tn : 'Tax';
|
|
8961
|
+
taxIncluded1 = document.ti ? ' ' + (company.r_ic ? company.r_ic : defaultLang['included']) : ' ';
|
|
8946
8962
|
}
|
|
8947
8963
|
if (document.ttx && document.tx2 != 0) {
|
|
8948
|
-
taxName2 = document.tn2 ? document.tn2 :
|
|
8949
|
-
taxIncluded2 = document.ti ?
|
|
8964
|
+
taxName2 = document.tn2 ? document.tn2 : 'Tax 2';
|
|
8965
|
+
taxIncluded2 = document.ti ? ' ' + (company.r_ic ? company.r_ic : defaultLang['included']) : ' ';
|
|
8950
8966
|
}
|
|
8951
8967
|
if (document.it) {
|
|
8952
8968
|
for (var _iterator = _createForOfIteratorHelperLoose(document.it), _step; !(_step = _iterator()).done;) {
|
|
@@ -9082,6 +9098,9 @@ var InvoiceHeader = function InvoiceHeader(_ref) {
|
|
|
9082
9098
|
var customer = document.cu;
|
|
9083
9099
|
var customerAddress = getCustomerAddress(customer);
|
|
9084
9100
|
var customerShippingAddress = getCustomerShippingAddress(customer);
|
|
9101
|
+
var _getCustomerName = getCustomerName(customer),
|
|
9102
|
+
customerPrimaryName = _getCustomerName.customerPrimaryName,
|
|
9103
|
+
customerSecondaryName = _getCustomerName.customerSecondaryName;
|
|
9085
9104
|
var documentName = getDocumentName({
|
|
9086
9105
|
document: document,
|
|
9087
9106
|
company: company,
|
|
@@ -9101,7 +9120,7 @@ var InvoiceHeader = function InvoiceHeader(_ref) {
|
|
|
9101
9120
|
timeZone: timeZone
|
|
9102
9121
|
});
|
|
9103
9122
|
};
|
|
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;\"
|
|
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 ", "\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 " : '');
|
|
9105
9124
|
};
|
|
9106
9125
|
|
|
9107
9126
|
var currencies = {
|
|
@@ -12393,6 +12412,9 @@ var InvoiceHeader$1 = function InvoiceHeader(_ref) {
|
|
|
12393
12412
|
var customer = document.cu;
|
|
12394
12413
|
var customerAddress = getCustomerAddress(customer);
|
|
12395
12414
|
var customerShippingAddress = getCustomerShippingAddress(customer);
|
|
12415
|
+
var _getCustomerName = getCustomerName(customer),
|
|
12416
|
+
customerPrimaryName = _getCustomerName.customerPrimaryName,
|
|
12417
|
+
customerSecondaryName = _getCustomerName.customerSecondaryName;
|
|
12396
12418
|
var documentName = getDocumentName({
|
|
12397
12419
|
document: document,
|
|
12398
12420
|
company: company,
|
|
@@ -12412,7 +12434,7 @@ var InvoiceHeader$1 = function InvoiceHeader(_ref) {
|
|
|
12412
12434
|
timeZone: timeZone
|
|
12413
12435
|
});
|
|
12414
12436
|
};
|
|
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\"
|
|
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\">", "</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 " : '');
|
|
12416
12438
|
};
|
|
12417
12439
|
|
|
12418
12440
|
var _templateObject$o, _templateObject2$b, _templateObject3$4;
|
|
@@ -13563,7 +13585,7 @@ var LogoContainer$2 = function LogoContainer(_ref) {
|
|
|
13563
13585
|
if (logoPath || logoBase64) {
|
|
13564
13586
|
logoContainer = html$v(_templateObject$x || (_templateObject$x = _taggedTemplateLiteralLoose(["<img\n src=\"", "\"\n id=\"invoice-logo\"\n class=\"img-fluid float-md-right mb-2 mb-md-0\"\n style=\"border-radius: 10px; width:", "px; height:auto;\"\n />"])), logoPath || logoBase64, company.ls * 2 || 200);
|
|
13565
13587
|
} else if (company.c) {
|
|
13566
|
-
logoContainer = html$v(_templateObject2$f || (_templateObject2$f = _taggedTemplateLiteralLoose([" <h1
|
|
13588
|
+
logoContainer = html$v(_templateObject2$f || (_templateObject2$f = _taggedTemplateLiteralLoose([" <h1\n class=\"float-md-right logo-text-alternative\"\n style=\"width:100%;\"\n >\n ", "\n </h1>"])), company.c);
|
|
13567
13589
|
}
|
|
13568
13590
|
return logoContainer;
|
|
13569
13591
|
};
|
|
@@ -13623,9 +13645,9 @@ var InvoiceCompany$2 = function InvoiceCompany(_ref) {
|
|
|
13623
13645
|
var customerShippingAddress = getCustomerShippingAddress(customer);
|
|
13624
13646
|
var companyAddress = getCompanyAddress(company);
|
|
13625
13647
|
var shippingAddressExists = customerShippingAddress.address1 || customerShippingAddress.address2 || customerShippingAddress.address3 || customerShippingAddress.city || customerShippingAddress.state || customerShippingAddress.zip || document.asi;
|
|
13626
|
-
var customerCompanyName = (customer.
|
|
13627
|
-
var
|
|
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 + (
|
|
13648
|
+
var customerCompanyName = (customer.individualCompanyName ? customer.individualCompanyName : '') + (customer.departmentName ? '<br />' + customer.departmentName : '');
|
|
13649
|
+
var customerPersonName = customer.c;
|
|
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 + (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>" : '');
|
|
13629
13651
|
};
|
|
13630
13652
|
|
|
13631
13653
|
var FormatCurrency$a = util.FormatCurrency;
|