@bookipi/htmlgenerator 1.12.0-alpha6 → 1.12.0-alpha8
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 +86 -16
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +86 -16
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -140,6 +140,7 @@ var en = (_deposit_due$terms$pr = {
|
|
|
140
140
|
enter_date: 'Enter date',
|
|
141
141
|
add_customer: 'Add Customer',
|
|
142
142
|
item: 'Item',
|
|
143
|
+
items: 'Items',
|
|
143
144
|
add_item: 'Add Item',
|
|
144
145
|
total: 'Total',
|
|
145
146
|
subtotal: 'Subtotal',
|
|
@@ -9047,7 +9048,7 @@ var invoiceStyle = function invoiceStyle(_ref) {
|
|
|
9047
9048
|
signItIntegration = _ref.signItIntegration,
|
|
9048
9049
|
_ref$isFullScreen = _ref.isFullScreen,
|
|
9049
9050
|
isFullScreen = _ref$isFullScreen === void 0 ? false : _ref$isFullScreen;
|
|
9050
|
-
return html(_templateObject || (_templateObject = _taggedTemplateLiteralLoose([" <style>\n * {\n -webkit-print-color-adjust: exact !important;\n color-adjust: exact !important;\n }\n body {\n font-size: 18px;\n -webkit-hyphens: auto;\n -ms-hyphens: auto;\n hyphens: auto;\n word-break: break-word;\n }\n\n #invoice {\n position: relative;\n }\n\n .invoice-body {\n background: #fff;\n padding: 30px 50px;\n }\n\n .invoice-company {\n font-size: 20px\n }\n\n .invoice-header {\n /* margin: 0 -50px; */\n background: #f0f3f4;\n padding: 25px 50px;\n }\n .invoice-content {\n padding: 20px 38px 10px;\n }\n\n .company-einvoicing,\n .customer-einvoicing {\n margin-bottom: 8px;\n }\n .company-einvoicing .einvoicing-row,\n .customer-einvoicing .einvoicing-row {\n line-height: 1.5;\n }\n .company-einvoicing .einvoicing-label,\n .customer-einvoicing .einvoicing-label {\n margin-right: 6px;\n }\n .service-delivery-date {\n padding-top: 22.5px;\n }\n .service-delivery-date-value {\n font-weight: 500;\n }\n\n .invoice-date,\n .invoice-from,\n .invoice-to {\n /* display: table-cell; */\n /* width: 1% */\n }\n\n .table td, .table th {\n padding: .50rem .75rem;\n }\n\n .invoice-from,\n .invoice-to {\n padding-right: 20px\n }\n\n .invoice-date .date,\n .invoice-from strong,\n .invoice-to strong {\n font-size: 18px;\n font-weight: 600\n }\n\n .invoice-date {\n /* text-align: right; */\n padding-left: 15px\n }\n\n .invoice-price{\n /* background: #f0f3f4; */\n display: table;\n width: 100%\n }\n\n .invoice-price .invoice-price-left,\n .invoice-price .invoice-price-right {\n display: table-cell;\n // padding: 20px 12px 16px;\n font-size: 20px;\n font-weight: 600;\n width: 70%;\n position: relative;\n vertical-align: middle\n }\n\n .invoice-price .invoice-price-row{\n display: table;\n float: left;\n }\n\n .invoice-price .invoice-price-right {\n width: 30%;\n background: #f0f3f4;\n color: black;\n font-size: 28px;\n text-align: right;\n vertical-align: bottom;\n font-weight: 300;\n right: 38px;\n padding: 28px 12px 16px;\n }\n\n .bookipay-payment-pay-btn {\n right: 0;\n width: 220px;\n text-align: center;\n border-radius: 5px;\n font-size: 17px;\n font-weight: 700;\n background: #067EED;\n border: none;\n color: white;\n padding-top: 10px;\n padding-bottom: 10px;\n text-transform: uppercase;\n }\n\n .bookipay-payment-pay-btn:hover {\n background: #0571d6;\n color: #fff;\n }\n\n .invoice-price .invoice-price-right .bookipay-payment-with-span {\n font-size: 12px;\n margin-top: 13px;\n margin-bottom: 10px;\n font-size: 12px;\n width: 140px;\n right: 0;\n float: right;\n text-align:center;\n }\n\n .invoice-price .invoice-price-right small {\n display: block;\n opacity: .7;\n position: absolute;\n top: 10px;\n left: 12px;\n font-size: 18px\n }\n\n .invoice-price .invoice-price-right span {\n display: block;\n font-weight: 400;\n }\n\n .invoice-footer {\n border-top: 1px solid #ddd;\n padding-top: 10px;\n font-size: 18px\n }\n\n .invoice-note {\n color: #999;\n margin-top: 80px;\n font-size: 85%\n }\n\n .btn-url:hover {\n cursor: pointer;\n text-decoration: none;\n }\n\n .btn.btn-white, .btn.btn-white.disabled, .btn.btn-white.disabled:focus, .btn.btn-white.disabled:hover, .btn.btn-white[disabled], .btn.btn-white[disabled]:focus, .btn.btn-white[disabled]:hover {\n color: #2d353c;\n background: #fff;\n border-color: #d9dfe3;\n }\n .table-inline-block{\n display: inline-block;\n }\n\n .page-not-break {\n page-break-before: auto;\n page-break-after: auto;\n page-break-inside: avoid;\n break-before: auto;\n break-after: auto;\n break-inside: avoid;\n }\n\n @media print {\n table {\n width: 100%;\n border-collapse: collapse;\n }\n tr, td {\n page-break-inside: auto!important;\n }\n td, th {\n word-wrap: break-word;\n white-space: normal;\n }\n .invoice-content {\n page-break-before: auto;\n }\n .col-md-6 {\n -ms-flex: 0 0 50%;\n flex: 0 0 50%;\n max-width: 50%;\n width:50%;\n float:left\n }\n .mb-md-0 {margin-bottom:0;}\n .text-md-right{text-align: right;}\n .d-md-table-cell { display: table-cell!important; }\n .d-md-block { display: block !important; }\n .d-md-none {display: none !important;}\n @page {\n size: A4;\n margin: 0.66cm 0.66cm 0.66cm 0.66cm;\n }\n body, page, html {\n width: 100%;\n box-shadow: 0;\n background-color: #fff;\n display: block;\n }\n .print {\n max-width:100%\n margin: 0 auto 0 auto;\n }\n\n .no-print {\n display: none;\n }\n\n #invoice {\n ", ";\n }\n\n .invoice-price .invoice-price-right {\n background: #f0f3f4;\n color: black;\n border: 2px solid #f0f3f4;\n }\n\n .print-footer {\n position: fixed!important;\n }\n\n .print-footer-spacer {\n height: 60px;\n }\n\n .attachment-image {\n max-height: 90vh !important;\n page-break-inside: avoid;\n page-break-before: auto;\n page-break-after: auto;\n }\n }\n\n .text-left{\n text-align: left;\n }\n .text-center{\n text-align: center;\n }\n .text-right{\n text-align: right;\n }\n\n @media only screen {\n #invoice {\n zoom: 0.8;\n ", "\n margin-right:auto;margin-left:auto;\n background: white;\n }\n .noInScreen{\n display: none;\n }\n }\n\n @media (min-width: 575.99px) {\n .invoice-detail-right {\n max-width: 200px;\n }\n }\n\n .item-last {\n width: 15%;\n }\n\n @media only screen and (max-width: 575.98px) {\n .invoice-price-right{\n width: 290px !important;\n display: block !important;\n }\n .item-last {\n width: 30%\n }\n .invoice-body {\n padding: 30px\n }\n .invoice-header {\n padding: 20px 30px;\n }\n .invoice-content {\n padding: 18px;\n }\n .invoice-price .invoice-price-right {\n right: 18px;\n }\n #invoice-logo {\n max-width: 100%;\n display: block;\n }\n .invoice-date {\n margin-top:10px;\n /*border-top: 1px solid #dee2e6;*/\n }\n }\n\n .table-small td{\n padding: 8px 12px\n }\n .table-invoice-header{\n background: #f0f3f4\n }\n .surcharge {\n margin-top: 3px;\n font-size: 12px;\n color: #999;\n }\n h1,h2,h3,h4 {margin-top:15px}\n h1 {font-size:27px}\n h2 {font-size:22px}\n .card-image {width:45px;}\n .seperate-line{\n border-top: 1px solid #dee2e6;\n margin-top: 20px;\n margin-bottom: 10px;\n }\n\n .signature-img{\n width:220px;\n margin-top:20px;\n max-height: -moz-calc(100% - 20px);\n max-height: -webkit-calc(100% - 20px);\n max-height: -o-calc(100% - 20px);\n max-height: calc(100% - 20px);\n object-fit: contain;\n }\n ", "\n </style>"])), isFromReactnative ? 'zoom: 0.8; max-width:calc(38cm - 1.32cm);margin: 0 auto 0 auto;' : '', isFullScreen ? 'border-radius: 32px !important; overflow: hidden !important; max-width: 100% !important;' : 'margin-top:10px; max-width:28cm; box-shadow: 0 0 0.5cm rgba(0,0,0,0.2);', signItIntegration ? "\n #client_signature_parent {\n padding-top: 22.5px\n }\n #signature_link {\n margin-left: 75px;\n margin-top: 0;\n }\n #client_date_signature {\n margin-left: 100px;\n }\n " : '');
|
|
9051
|
+
return html(_templateObject || (_templateObject = _taggedTemplateLiteralLoose([" <style>\n * {\n -webkit-print-color-adjust: exact !important;\n color-adjust: exact !important;\n }\n body {\n font-size: 18px;\n -webkit-hyphens: auto;\n -ms-hyphens: auto;\n hyphens: auto;\n word-break: break-word;\n }\n\n #invoice {\n position: relative;\n }\n\n .invoice-body {\n background: #fff;\n padding: 30px 50px;\n }\n\n .invoice-company {\n font-size: 20px\n }\n\n .invoice-header {\n /* margin: 0 -50px; */\n background: #f0f3f4;\n padding: 25px 50px;\n }\n .invoice-content {\n padding: 20px 38px 10px;\n }\n\n .company-einvoicing,\n .customer-einvoicing {\n margin-bottom: 8px;\n }\n .company-einvoicing .einvoicing-row,\n .customer-einvoicing .einvoicing-row {\n line-height: 1.5;\n }\n .company-einvoicing .einvoicing-label,\n .customer-einvoicing .einvoicing-label {\n margin-right: 6px;\n }\n .service-delivery-date {\n padding-top: 22.5px;\n }\n .service-delivery-date-value {\n font-weight: 500;\n }\n\n .invoice-date,\n .invoice-from,\n .invoice-to {\n /* display: table-cell; */\n /* width: 1% */\n }\n\n .table td, .table th {\n padding: .50rem .75rem;\n }\n\n .invoice-from,\n .invoice-to {\n padding-right: 20px\n }\n\n .invoice-date .date,\n .invoice-from strong,\n .invoice-to strong {\n font-size: 18px;\n font-weight: 600\n }\n\n .invoice-date {\n /* text-align: right; */\n padding-left: 15px;\n line-height: 1.5;\n }\n\n .invoice-date .invoice-detail-row {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: baseline;\n align-items: baseline;\n }\n\n .invoice-price{\n /* background: #f0f3f4; */\n display: table;\n width: 100%\n }\n\n .invoice-price .invoice-price-left,\n .invoice-price .invoice-price-right {\n display: table-cell;\n // padding: 20px 12px 16px;\n font-size: 20px;\n font-weight: 600;\n width: 70%;\n position: relative;\n vertical-align: middle\n }\n\n .invoice-price .invoice-price-row{\n display: table;\n float: left;\n }\n\n .invoice-price .invoice-price-right {\n width: 30%;\n background: #f0f3f4;\n color: black;\n font-size: 28px;\n text-align: right;\n vertical-align: bottom;\n font-weight: 300;\n right: 38px;\n padding: 28px 12px 16px;\n }\n\n .bookipay-payment-pay-btn {\n right: 0;\n width: 220px;\n text-align: center;\n border-radius: 5px;\n font-size: 17px;\n font-weight: 700;\n background: #067EED;\n border: none;\n color: white;\n padding-top: 10px;\n padding-bottom: 10px;\n text-transform: uppercase;\n }\n\n .bookipay-payment-pay-btn:hover {\n background: #0571d6;\n color: #fff;\n }\n\n .invoice-price .invoice-price-right .bookipay-payment-with-span {\n font-size: 12px;\n margin-top: 13px;\n margin-bottom: 10px;\n font-size: 12px;\n width: 140px;\n right: 0;\n float: right;\n text-align:center;\n }\n\n .invoice-price .invoice-price-right small {\n display: block;\n opacity: .7;\n position: absolute;\n top: 10px;\n left: 12px;\n font-size: 18px\n }\n\n .invoice-price .invoice-price-right span {\n display: block;\n font-weight: 400;\n }\n\n .invoice-footer {\n border-top: 1px solid #ddd;\n padding-top: 10px;\n font-size: 18px\n }\n\n .invoice-note {\n color: #999;\n margin-top: 80px;\n font-size: 85%\n }\n\n .btn-url:hover {\n cursor: pointer;\n text-decoration: none;\n }\n\n .btn.btn-white, .btn.btn-white.disabled, .btn.btn-white.disabled:focus, .btn.btn-white.disabled:hover, .btn.btn-white[disabled], .btn.btn-white[disabled]:focus, .btn.btn-white[disabled]:hover {\n color: #2d353c;\n background: #fff;\n border-color: #d9dfe3;\n }\n .table-inline-block{\n display: inline-block;\n }\n\n .page-not-break {\n page-break-before: auto;\n page-break-after: auto;\n page-break-inside: avoid;\n break-before: auto;\n break-after: auto;\n break-inside: avoid;\n }\n\n @media print {\n table {\n width: 100%;\n border-collapse: collapse;\n }\n tr, td {\n page-break-inside: auto!important;\n }\n td, th {\n word-wrap: break-word;\n white-space: normal;\n }\n .invoice-content {\n page-break-before: auto;\n }\n .col-md-6 {\n -ms-flex: 0 0 50%;\n flex: 0 0 50%;\n max-width: 50%;\n width:50%;\n float:left\n }\n .mb-md-0 {margin-bottom:0;}\n .text-md-right{text-align: right;}\n .d-md-table-cell { display: table-cell!important; }\n .d-md-block { display: block !important; }\n .d-md-none {display: none !important;}\n @page {\n size: A4;\n margin: 0.66cm 0.66cm 0.66cm 0.66cm;\n }\n body, page, html {\n width: 100%;\n box-shadow: 0;\n background-color: #fff;\n display: block;\n }\n .print {\n max-width:100%\n margin: 0 auto 0 auto;\n }\n\n .no-print {\n display: none;\n }\n\n #invoice {\n ", ";\n }\n\n .invoice-price .invoice-price-right {\n background: #f0f3f4;\n color: black;\n border: 2px solid #f0f3f4;\n }\n\n .print-footer {\n position: fixed!important;\n }\n\n .print-footer-spacer {\n height: 60px;\n }\n\n .attachment-image {\n max-height: 90vh !important;\n page-break-inside: avoid;\n page-break-before: auto;\n page-break-after: auto;\n }\n }\n\n .text-left{\n text-align: left;\n }\n .text-center{\n text-align: center;\n }\n .text-right{\n text-align: right;\n }\n\n @media only screen {\n #invoice {\n zoom: 0.8;\n ", "\n margin-right:auto;margin-left:auto;\n background: white;\n }\n .noInScreen{\n display: none;\n }\n }\n\n @media (min-width: 575.99px) {\n .invoice-detail-right {\n max-width: 200px;\n }\n }\n\n .item-last {\n width: 15%;\n }\n\n @media only screen and (max-width: 575.98px) {\n .invoice-price-right{\n width: 290px !important;\n display: block !important;\n }\n .item-last {\n width: 30%\n }\n .invoice-body {\n padding: 30px\n }\n .invoice-header {\n padding: 20px 30px;\n }\n .invoice-content {\n padding: 18px;\n }\n .invoice-price .invoice-price-right {\n right: 18px;\n }\n #invoice-logo {\n max-width: 100%;\n display: block;\n }\n .invoice-date {\n margin-top:10px;\n /*border-top: 1px solid #dee2e6;*/\n }\n }\n\n .table-small td{\n padding: 8px 12px\n }\n .table-invoice-header{\n background: #f0f3f4\n }\n .surcharge {\n margin-top: 3px;\n font-size: 12px;\n color: #999;\n }\n h1,h2,h3,h4 {margin-top:15px}\n h1 {font-size:27px}\n h2 {font-size:22px}\n .card-image {width:45px;}\n .seperate-line{\n border-top: 1px solid #dee2e6;\n margin-top: 20px;\n margin-bottom: 10px;\n }\n\n .signature-img{\n width:220px;\n margin-top:20px;\n max-height: -moz-calc(100% - 20px);\n max-height: -webkit-calc(100% - 20px);\n max-height: -o-calc(100% - 20px);\n max-height: calc(100% - 20px);\n object-fit: contain;\n }\n ", "\n </style>"])), isFromReactnative ? 'zoom: 0.8; max-width:calc(38cm - 1.32cm);margin: 0 auto 0 auto;' : '', isFullScreen ? 'border-radius: 32px !important; overflow: hidden !important; max-width: 100% !important;' : 'margin-top:10px; max-width:28cm; box-shadow: 0 0 0.5cm rgba(0,0,0,0.2);', signItIntegration ? "\n #client_signature_parent {\n padding-top: 22.5px\n }\n #signature_link {\n margin-left: 75px;\n margin-top: 0;\n }\n #client_date_signature {\n margin-left: 100px;\n }\n " : '');
|
|
9051
9052
|
};
|
|
9052
9053
|
|
|
9053
9054
|
var _templateObject$1, _templateObject2;
|
|
@@ -9245,20 +9246,29 @@ var InvoiceHeader = function InvoiceHeader(_ref) {
|
|
|
9245
9246
|
});
|
|
9246
9247
|
};
|
|
9247
9248
|
var eInvoiceConfig = getEInvoiceConfig(company.co);
|
|
9249
|
+
var getNumberLabel = function getNumberLabel() {
|
|
9250
|
+
if (document.ty === 1 || document.ty === 5) {
|
|
9251
|
+
return defaultLang['invoice_number_abbreviated'] || documentName + " #";
|
|
9252
|
+
} else if (document.ty === 2) {
|
|
9253
|
+
return defaultLang['creditNote_number_abbreviated'] || documentName + " #";
|
|
9254
|
+
} else {
|
|
9255
|
+
return defaultLang['estimate_number_abbreviated'] || documentName + " #";
|
|
9256
|
+
}
|
|
9257
|
+
};
|
|
9248
9258
|
var customerAddressLine = [customerAddress.city, customerAddress.state, customerAddress.zip].filter(Boolean).join(' ');
|
|
9249
9259
|
var shippingAddressLine = [customerShippingAddress.city, customerShippingAddress.state, customerShippingAddress.zip].filter(Boolean).join(' ');
|
|
9250
9260
|
var renderAddress = function renderAddress(address) {
|
|
9251
9261
|
return "\n " + (address.address1 ? "<div>" + address.address1 + "</div>" : '') + "\n " + (address.address2 ? "<div>" + address.address2 + "</div>" : '') + "\n " + (address.address3 ? "<div>" + address.address3 + "</div>" : '') + "\n";
|
|
9252
9262
|
};
|
|
9253
9263
|
var renderInvoiceDetail = function renderInvoiceDetail(label, value) {
|
|
9254
|
-
return "\n <div class=\"row text-md-right\">\n <div class=\"col-6 col-md\">\n <strong>" + label + "</strong>\n </div>\n <div class=\"col-6 col-md invoice-detail-right\">\n " + (value != null ? value : '') + "\n </div>\n </div>\n ";
|
|
9264
|
+
return "\n <div class=\"row text-md-right invoice-detail-row\">\n <div class=\"col-6 col-md\">\n <strong>" + label + "</strong>\n </div>\n <div class=\"col-6 col-md invoice-detail-right\">\n " + (value != null ? value : '') + "\n </div>\n </div>\n ";
|
|
9255
9265
|
};
|
|
9256
9266
|
return html$5(_templateObject$5 || (_templateObject$5 = _taggedTemplateLiteralLoose(["\n <!-- 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> ", " </strong>\n\n <div class=\"text-inverse mb-1\">\n <small style=\"font-size: 18px;\"> ", " </small>\n\n ", "\n </div>\n\n ", "\n\n <address class=\"m-t-5 m-b-5\">\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n </address>\n\n ", "\n </div>\n\n <div class=\"invoice-date col-sm-12 col-md-6\">\n ", "\n ", "\n ", "\n ", "\n ", "\n </div>\n </div>\n </div>\n <!-- end invoice-header -->\n "])), company.r_bt || defaultLang.bill_to, customerPrimaryName, customerSecondaryName ? "<div class=\"m-t-5 m-b-5\">" + customerSecondaryName + "</div>" : '', TaxRegistrations({
|
|
9257
9267
|
config: eInvoiceConfig,
|
|
9258
9268
|
taxRegistrations: customer === null || customer === void 0 ? void 0 : (_customer$eInvoicing = customer.eInvoicing) === null || _customer$eInvoicing === void 0 ? void 0 : _customer$eInvoicing.taxRegistrations,
|
|
9259
9269
|
defaultLang: defaultLang,
|
|
9260
9270
|
wrapperClass: 'customer-einvoicing'
|
|
9261
|
-
}), renderAddress(customerAddress), customerAddressLine ? "<div>" + customerAddressLine + "</div>" : '', customerAddress.country ? "<div>" + customerAddress.country + "</div>" : '', customer !== null && customer !== void 0 && customer.tfn ? "<div>" + (company.bn || 'Tax no.') + " : " + customer.tfn + "</div>" : '', customer !== null && customer !== void 0 && customer.e ? "<div>" + customer.e + "</div>" : '', customer !== null && customer !== void 0 && customer.ph ? "<div>" + customer.ph + "</div>" : '', customer !== null && customer !== void 0 && customer.ai ? "<div>" + customer.ai + "</div>" : '', shippingAddressExists ? "\n <strong style=\"margin-top:10px\">\n " + (company.r_st || defaultLang.ship_to) + "\n </strong>\n\n <address class=\"m-t-5 m-b-5\">\n " + renderAddress(customerShippingAddress) + "\n\n " + (shippingAddressLine ? "<div>" + shippingAddressLine + "</div>" : '') + "\n\n " + (customerShippingAddress.country ? "<div>" + customerShippingAddress.country + "</div>" : '') + "\n\n " + (document.asi ? "<div>" + document.asi + "</div>" : '') + "\n </address>\n " : '', renderInvoiceDetail(
|
|
9271
|
+
}), renderAddress(customerAddress), customerAddressLine ? "<div>" + customerAddressLine + "</div>" : '', customerAddress.country ? "<div>" + customerAddress.country + "</div>" : '', customer !== null && customer !== void 0 && customer.tfn ? "<div>" + (company.bn || 'Tax no.') + " : " + customer.tfn + "</div>" : '', customer !== null && customer !== void 0 && customer.e ? "<div>" + customer.e + "</div>" : '', customer !== null && customer !== void 0 && customer.ph ? "<div>" + customer.ph + "</div>" : '', customer !== null && customer !== void 0 && customer.ai ? "<div>" + customer.ai + "</div>" : '', shippingAddressExists ? "\n <strong style=\"margin-top:10px\">\n " + (company.r_st || defaultLang.ship_to) + "\n </strong>\n\n <address class=\"m-t-5 m-b-5\">\n " + renderAddress(customerShippingAddress) + "\n\n " + (shippingAddressLine ? "<div>" + shippingAddressLine + "</div>" : '') + "\n\n " + (customerShippingAddress.country ? "<div>" + customerShippingAddress.country + "</div>" : '') + "\n\n " + (document.asi ? "<div>" + document.asi + "</div>" : '') + "\n </address>\n " : '', renderInvoiceDetail("" + getNumberLabel(), document.no), (_document$proposal = document.proposal) !== null && _document$proposal !== void 0 && _document$proposal.no ? renderInvoiceDetail('Proposal #', document.proposal.no) : '', renderInvoiceDetail(company.r_d || defaultLang.date, formatDate(document.d)), document.ty === 1 && !document.rd ? renderInvoiceDetail(company.r_dd || defaultLang.due_date, document.dd ? formatDate(document.dd) : formatDate(new Date(document.d).setDate(new Date(document.d).getDate() + parseInt(document.di)))) : '', document.pon ? renderInvoiceDetail(company.r_po || defaultLang.po_number, document.pon) : '');
|
|
9262
9272
|
};
|
|
9263
9273
|
|
|
9264
9274
|
var currencies = {
|
|
@@ -11892,25 +11902,71 @@ var computeShippingTax = function computeShippingTax(document) {
|
|
|
11892
11902
|
}
|
|
11893
11903
|
return document.ti ? shipping * (1 - 1 / (1 + rate / 100)) : shipping * rate / 100;
|
|
11894
11904
|
};
|
|
11905
|
+
var computeItemTaxes = function computeItemTaxes(document) {
|
|
11906
|
+
var taxPercent1 = document.tp ? parseFloat(document.tp) : 0;
|
|
11907
|
+
var taxPercent2 = document.tp2 ? parseFloat(document.tp2) : 0;
|
|
11908
|
+
var itemTax1 = 0;
|
|
11909
|
+
var itemTax2 = 0;
|
|
11910
|
+
var items = Array.isArray(document.it) ? document.it : [];
|
|
11911
|
+
items.forEach(function (item) {
|
|
11912
|
+
var amount = Number(item === null || item === void 0 ? void 0 : item.t) || 0;
|
|
11913
|
+
var isTaxed1 = (item === null || item === void 0 ? void 0 : item.tx) != null ? item.tx : true;
|
|
11914
|
+
var isTaxed2 = (item === null || item === void 0 ? void 0 : item.tx2) != null ? item.tx2 : true;
|
|
11915
|
+
if (taxPercent1 > 0 && isTaxed1) {
|
|
11916
|
+
if (document.ti && !document.t1d) {
|
|
11917
|
+
var alsoTaxed2 = document.ttx && taxPercent2 > 0 && isTaxed2 && !document.t2d;
|
|
11918
|
+
var totalTaxRate = alsoTaxed2 ? taxPercent1 + taxPercent2 : taxPercent1;
|
|
11919
|
+
itemTax1 += amount * (1 - 1 / (1 + totalTaxRate / 100)) * (taxPercent1 / totalTaxRate);
|
|
11920
|
+
} else {
|
|
11921
|
+
itemTax1 += amount * taxPercent1 / 100;
|
|
11922
|
+
}
|
|
11923
|
+
}
|
|
11924
|
+
if (document.ttx && taxPercent2 > 0 && isTaxed2) {
|
|
11925
|
+
if (document.ti && !document.t2d) {
|
|
11926
|
+
var _totalTaxRate = isTaxed1 ? taxPercent1 + taxPercent2 : taxPercent2;
|
|
11927
|
+
itemTax2 += amount * (1 - 1 / (1 + _totalTaxRate / 100)) * (taxPercent2 / _totalTaxRate);
|
|
11928
|
+
} else {
|
|
11929
|
+
itemTax2 += amount * taxPercent2 / 100;
|
|
11930
|
+
}
|
|
11931
|
+
}
|
|
11932
|
+
});
|
|
11933
|
+
return {
|
|
11934
|
+
itemTax1: itemTax1,
|
|
11935
|
+
itemTax2: itemTax2
|
|
11936
|
+
};
|
|
11937
|
+
};
|
|
11895
11938
|
var getShippingTaxBreakdown = function getShippingTaxBreakdown(document) {
|
|
11896
11939
|
var hasShippingTaxRate = checkHasShippingTaxRate(document);
|
|
11897
11940
|
var shippingTaxRate = hasShippingTaxRate ? parseFloat(document.shippingTaxRate) : 0;
|
|
11898
11941
|
var shippingTax = computeShippingTax(document);
|
|
11899
|
-
var
|
|
11900
|
-
var
|
|
11901
|
-
var
|
|
11902
|
-
var
|
|
11903
|
-
|
|
11904
|
-
|
|
11942
|
+
var shipping = document.sp ? parseFloat(document.sp) : 0;
|
|
11943
|
+
var tax1 = document.tx ? parseFloat(document.tx) : 0;
|
|
11944
|
+
var tax2 = document.tx2 ? parseFloat(document.tx2) : 0;
|
|
11945
|
+
var _computeItemTaxes = computeItemTaxes(document),
|
|
11946
|
+
itemTax1 = _computeItemTaxes.itemTax1,
|
|
11947
|
+
itemTax2 = _computeItemTaxes.itemTax2;
|
|
11948
|
+
var shippingMatchesTax1 = hasShippingTaxRate && shippingTaxRate > 0 && !document.sntx && shippingTaxRate === parseFloat(document.tp || 0) && tax1 > 0;
|
|
11949
|
+
var shippingMatchesTax2 = hasShippingTaxRate && shippingTaxRate > 0 && !document.sntx && !!document.ttx && shippingTaxRate === parseFloat(document.tp2 || 0) && tax2 > 0 && !shippingMatchesTax1;
|
|
11950
|
+
var shippingFoldedIn = !hasShippingTaxRate && !!shipping && !document.sntx;
|
|
11951
|
+
var showTax1SubBreakdown = shippingFoldedIn && tax1 > itemTax1 || shippingMatchesTax1 && !!shippingTax;
|
|
11952
|
+
var showTax2SubBreakdown = shippingFoldedIn && !(document.t2d && document.t2di) && tax2 > itemTax2 || shippingMatchesTax2 && !!shippingTax;
|
|
11905
11953
|
var showSeparateShippingLine = hasShippingTaxRate && shippingTaxRate > 0 && !document.sntx && !shippingMatchesTax1 && !shippingMatchesTax2 && !!shippingTax;
|
|
11906
11954
|
return {
|
|
11907
11955
|
hasShippingTaxRate: hasShippingTaxRate,
|
|
11908
11956
|
shippingTaxRate: shippingTaxRate,
|
|
11909
11957
|
shippingTax: shippingTax,
|
|
11958
|
+
tax1: tax1,
|
|
11959
|
+
tax2: tax2,
|
|
11910
11960
|
itemTax1: itemTax1,
|
|
11911
11961
|
itemTax2: itemTax2,
|
|
11912
11962
|
shippingMatchesTax1: shippingMatchesTax1,
|
|
11913
11963
|
shippingMatchesTax2: shippingMatchesTax2,
|
|
11964
|
+
tax1Amount: shippingMatchesTax1 ? tax1 + shippingTax : tax1,
|
|
11965
|
+
tax2Amount: shippingMatchesTax2 ? tax2 + shippingTax : tax2,
|
|
11966
|
+
tax1ItemsAmount: shippingMatchesTax1 ? tax1 : itemTax1,
|
|
11967
|
+
tax1ShippingAmount: shippingMatchesTax1 ? shippingTax : tax1 - itemTax1,
|
|
11968
|
+
tax2ItemsAmount: shippingMatchesTax2 ? tax2 : itemTax2,
|
|
11969
|
+
tax2ShippingAmount: shippingMatchesTax2 ? shippingTax : tax2 - itemTax2,
|
|
11914
11970
|
showTax1SubBreakdown: showTax1SubBreakdown,
|
|
11915
11971
|
showTax2SubBreakdown: showTax2SubBreakdown,
|
|
11916
11972
|
showSeparateShippingLine: showSeparateShippingLine
|
|
@@ -12050,9 +12106,9 @@ var InvoiceContent = function InvoiceContent(_ref) {
|
|
|
12050
12106
|
};
|
|
12051
12107
|
var shippingLabel = company.r_sp ? company.r_sp : defaultLang['shipping'];
|
|
12052
12108
|
var subBreakdownRows = function subBreakdownRows(itemsAmount, shippingAmount) {
|
|
12053
|
-
return "<tr>\n <td class=\"text-md-right\" width=\"22%\" style=\"padding-left: 24px;\">" + defaultLang['
|
|
12109
|
+
return "<tr>\n <td class=\"text-md-right\" width=\"22%\" style=\"padding-left: 24px;\">" + defaultLang['items'] + "</td>\n <td class=\"text-right\" width=\"22%\">" + formatAmount(itemsAmount) + "</td>\n </tr>\n <tr>\n <td class=\"text-md-right\" width=\"22%\" style=\"padding-left: 24px;\">" + shippingLabel + "</td>\n <td class=\"text-right\" width=\"22%\">" + formatAmount(shippingAmount) + "</td>\n </tr>";
|
|
12054
12110
|
};
|
|
12055
|
-
var defaultTaxRows = "" + (document.tx != 0 ? "<tr>\n <td class=\"text-md-right\" width=\"22%\">" + ("" + displayTaxName1 + taxIncluded1 + "(" + document.tp + "%)") + "</td>\n <td class=\"text-right\" width=\"22%\">" + ("" + (document.t1d ? '(' : '') + formatAmount(shippingBreakdown.
|
|
12111
|
+
var defaultTaxRows = "" + (document.tx != 0 ? "<tr>\n <td class=\"text-md-right\" width=\"22%\">" + ("" + displayTaxName1 + taxIncluded1 + "(" + document.tp + "%)") + "</td>\n <td class=\"text-right\" width=\"22%\">" + ("" + (document.t1d ? '(' : '') + formatAmount(shippingBreakdown.tax1Amount) + (document.t1d ? ')' : '')) + "</td>\n </tr>" + (shippingBreakdown.showTax1SubBreakdown ? subBreakdownRows(shippingBreakdown.tax1ItemsAmount, shippingBreakdown.tax1ShippingAmount) : '') : '') + (document.ttx && document.tx2 != 0 ? "<tr>\n <td class=\"text-md-right\" width=\"22%\">" + ("" + displayTaxName2 + taxIncluded2 + "(" + document.tp2 + "%)") + "</td>\n <td class=\"text-right\" width=\"22%\">" + ("" + (document.t2d ? '(' : '') + formatAmount(shippingBreakdown.tax2Amount) + (document.t2d ? ')' : '')) + "</td>\n </tr>" + (shippingBreakdown.showTax2SubBreakdown ? subBreakdownRows(shippingBreakdown.tax2ItemsAmount, shippingBreakdown.tax2ShippingAmount) : '') : '') + (shippingBreakdown.showSeparateShippingLine ? "<tr>\n <td class=\"text-md-right\" width=\"22%\">" + (shippingLabel + " " + defaultLang['tax'] + (document.ti ? ' ' + defaultLang['included'] : '') + " (" + formatTaxRate(shippingBreakdown.shippingTaxRate, company.la) + "%)") + "</td>\n <td class=\"text-right\" width=\"22%\">" + formatAmount(shippingBreakdown.shippingTax) + "</td>\n </tr>" : '');
|
|
12056
12112
|
var taxBreakdownRows = !eInvoiceTaxLines ? defaultTaxRows : isTaxSummaryMatching(eInvoiceTaxLines, document) ? eInvoiceTaxLines.map(function (line) {
|
|
12057
12113
|
return "<tr>\n <td class=\"text-md-right\" width=\"22%\">" + (eInvoiceTaxRowLabel + " (" + formatTaxRate(line.rate, company.la) + "%)") + "</td>\n <td class=\"text-right\" width=\"22%\">" + FormatCurrency$3(line.taxAmount, effectiveCurrency, company.la, company.cf) + "</td>\n </tr>";
|
|
12058
12114
|
}).join('') : "<tr>\n <td class=\"text-md-right\" width=\"22%\">" + (defaultLang['total_tax'] || 'Total tax') + "</td>\n <td class=\"text-right\" width=\"22%\">" + FormatCurrency$3(document.tx || 0, effectiveCurrency, company.la, company.cf) + "</td>\n </tr>";
|
|
@@ -12422,6 +12478,7 @@ var getDefaultLang = function getDefaultLang(t, lang) {
|
|
|
12422
12478
|
price: t ? t('Price') : lang['price'],
|
|
12423
12479
|
quantity: t ? t('Quantity') : lang['quantity'],
|
|
12424
12480
|
item: t ? t('Item') : lang['item'],
|
|
12481
|
+
items: t ? t('Items') : lang['items'] || lang['item'],
|
|
12425
12482
|
number: t ? t('Number') : lang['number'],
|
|
12426
12483
|
po_number: t ? t('PO Number') : lang['po_number'],
|
|
12427
12484
|
due_date: t ? t('Due date') : lang['due_date'],
|
|
@@ -12444,7 +12501,10 @@ var getDefaultLang = function getDefaultLang(t, lang) {
|
|
|
12444
12501
|
serviceDeliveryDate: t ? t('service_delivery_date') : lang['service_delivery_date'],
|
|
12445
12502
|
tax_label: t ? t('tax_label') : lang['tax_label'],
|
|
12446
12503
|
total_tax: t ? t('total_tax') : lang['total_tax'],
|
|
12447
|
-
tax: t ? t('tax') : lang['tax']
|
|
12504
|
+
tax: t ? t('tax') : lang['tax'],
|
|
12505
|
+
invoice_number_abbreviated: t ? t('invoice_number_abbreviated') : lang['invoice_number_abbreviated'],
|
|
12506
|
+
creditNote_number_abbreviated: t ? t('creditNote_number_abbreviated') : lang['creditNote_number_abbreviated'],
|
|
12507
|
+
estimate_number_abbreviated: t ? t('estimate_number_abbreviated') : lang['estimate_number_abbreviated']
|
|
12448
12508
|
};
|
|
12449
12509
|
};
|
|
12450
12510
|
|
|
@@ -12752,12 +12812,21 @@ var InvoiceHeader$1 = function InvoiceHeader(_ref) {
|
|
|
12752
12812
|
});
|
|
12753
12813
|
};
|
|
12754
12814
|
var eInvoiceConfig = getEInvoiceConfig(company.co);
|
|
12755
|
-
|
|
12815
|
+
var getNumberLabel = function getNumberLabel() {
|
|
12816
|
+
if (document.ty === 1 || document.ty === 5) {
|
|
12817
|
+
return defaultLang['invoice_number_abbreviated'] || documentName + " " + defaultLang['number'];
|
|
12818
|
+
} else if (document.ty === 2) {
|
|
12819
|
+
return defaultLang['creditNote_number_abbreviated'] || documentName + " " + defaultLang['number'];
|
|
12820
|
+
} else {
|
|
12821
|
+
return documentName + " " + defaultLang['number'];
|
|
12822
|
+
}
|
|
12823
|
+
};
|
|
12824
|
+
return html$n(_templateObject$o || (_templateObject$o = _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 ", "\n ", "\n\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\"> ", " </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 class=\"address-text customer-secondary-name\" style=\"margin-bottom: 8px;\">" + customerSecondaryName + "</div>" : '', TaxRegistrations({
|
|
12756
12825
|
config: eInvoiceConfig,
|
|
12757
12826
|
taxRegistrations: customer === null || customer === void 0 ? void 0 : (_customer$eInvoicing = customer.eInvoicing) === null || _customer$eInvoicing === void 0 ? void 0 : _customer$eInvoicing.taxRegistrations,
|
|
12758
12827
|
defaultLang: defaultLang,
|
|
12759
12828
|
wrapperClass: 'customer-einvoicing'
|
|
12760
|
-
}), 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 " : '',
|
|
12829
|
+
}), 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 " : '', getNumberLabel(), 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 " : '');
|
|
12761
12830
|
};
|
|
12762
12831
|
|
|
12763
12832
|
var _templateObject$p, _templateObject2$b, _templateObject3$5;
|
|
@@ -12885,9 +12954,9 @@ var InvoiceContent$1 = function InvoiceContent(_ref) {
|
|
|
12885
12954
|
};
|
|
12886
12955
|
var shippingLabel = company.r_sp ? company.r_sp : defaultLang['shipping'];
|
|
12887
12956
|
var subBreakdownRows = function subBreakdownRows(itemsAmount, shippingAmount) {
|
|
12888
|
-
return "<tr>\n <td width=\"22%\" style=\"padding-left: 24px;\">" + defaultLang['
|
|
12957
|
+
return "<tr>\n <td width=\"22%\" style=\"padding-left: 24px;\">" + defaultLang['items'] + "</td>\n <td class=\"text-right\" width=\"22%\">" + formatAmount(itemsAmount) + "</td>\n </tr>\n <tr>\n <td width=\"22%\" style=\"padding-left: 24px;\">" + shippingLabel + "</td>\n <td class=\"text-right\" width=\"22%\">" + formatAmount(shippingAmount) + "</td>\n </tr>";
|
|
12889
12958
|
};
|
|
12890
|
-
var defaultTaxRows = "" + (document.tx != 0 ? "<tr>\n <td width=\"22%\">" + (displayTaxName1 + taxIncluded1 + '(' + document.tp + '%)') + "</td>\n <td class=\"text-right\" width=\"22%\">" + ((document.t1d ? '(' : '') + formatAmount(shippingBreakdown.
|
|
12959
|
+
var defaultTaxRows = "" + (document.tx != 0 ? "<tr>\n <td width=\"22%\">" + (displayTaxName1 + taxIncluded1 + '(' + document.tp + '%)') + "</td>\n <td class=\"text-right\" width=\"22%\">" + ((document.t1d ? '(' : '') + formatAmount(shippingBreakdown.tax1Amount) + (document.t1d ? ')' : '')) + "</td>\n </tr>" + (shippingBreakdown.showTax1SubBreakdown ? subBreakdownRows(shippingBreakdown.tax1ItemsAmount, shippingBreakdown.tax1ShippingAmount) : '') : '') + (document.ttx && document.tx2 != 0 ? "<tr>\n <td width=\"22%\">" + (displayTaxName2 + taxIncluded2 + '(' + document.tp2 + '%)') + "</td>\n <td class=\"text-right\" width=\"22%\">" + ((document.t2d ? '(' : '') + formatAmount(shippingBreakdown.tax2Amount) + (document.t2d ? ')' : '')) + "</td>\n </tr>" + (shippingBreakdown.showTax2SubBreakdown ? subBreakdownRows(shippingBreakdown.tax2ItemsAmount, shippingBreakdown.tax2ShippingAmount) : '') : '') + (shippingBreakdown.showSeparateShippingLine ? "<tr>\n <td width=\"22%\">" + (shippingLabel + ' ' + defaultLang['tax'] + (document.ti ? ' ' + defaultLang['included'] : '') + ' (' + formatTaxRate(shippingBreakdown.shippingTaxRate, company.la) + '%)') + "</td>\n <td class=\"text-right\" width=\"22%\">" + formatAmount(shippingBreakdown.shippingTax) + "</td>\n </tr>" : '');
|
|
12891
12960
|
var taxBreakdownRows = !eInvoiceTaxLines ? defaultTaxRows : isTaxSummaryMatching(eInvoiceTaxLines, document) ? eInvoiceTaxLines.map(function (line) {
|
|
12892
12961
|
return "<tr>\n <td width=\"22%\">" + (eInvoiceTaxRowLabel + ' (' + formatTaxRate(line.rate, company.la) + '%)') + "</td>\n <td class=\"text-right\" width=\"22%\">" + FormatCurrency$7(line.taxAmount, effectiveCurrency, company.la, company.cf) + "</td>\n </tr>";
|
|
12893
12962
|
}).join('') : "<tr>\n <td width=\"22%\">" + (defaultLang['total_tax'] || 'Total tax') + "</td>\n <td class=\"text-right\" width=\"22%\">" + FormatCurrency$7(document.tx || 0, effectiveCurrency, company.la, company.cf) + "</td>\n </tr>";
|
|
@@ -13968,6 +14037,7 @@ var langJP = (_document$invoice$est = {
|
|
|
13968
14037
|
amount: '金額',
|
|
13969
14038
|
price: '価格',
|
|
13970
14039
|
item: '項目',
|
|
14040
|
+
items: '項目',
|
|
13971
14041
|
po_number: '発注番号',
|
|
13972
14042
|
due_date: '支払期限',
|
|
13973
14043
|
due: '期限'
|