@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.js
CHANGED
|
@@ -142,6 +142,7 @@ var en = (_deposit_due$terms$pr = {
|
|
|
142
142
|
enter_date: 'Enter date',
|
|
143
143
|
add_customer: 'Add Customer',
|
|
144
144
|
item: 'Item',
|
|
145
|
+
items: 'Items',
|
|
145
146
|
add_item: 'Add Item',
|
|
146
147
|
total: 'Total',
|
|
147
148
|
subtotal: 'Subtotal',
|
|
@@ -9049,7 +9050,7 @@ var invoiceStyle = function invoiceStyle(_ref) {
|
|
|
9049
9050
|
signItIntegration = _ref.signItIntegration,
|
|
9050
9051
|
_ref$isFullScreen = _ref.isFullScreen,
|
|
9051
9052
|
isFullScreen = _ref$isFullScreen === void 0 ? false : _ref$isFullScreen;
|
|
9052
|
-
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 " : '');
|
|
9053
|
+
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 " : '');
|
|
9053
9054
|
};
|
|
9054
9055
|
|
|
9055
9056
|
var _templateObject$1, _templateObject2;
|
|
@@ -9247,20 +9248,29 @@ var InvoiceHeader = function InvoiceHeader(_ref) {
|
|
|
9247
9248
|
});
|
|
9248
9249
|
};
|
|
9249
9250
|
var eInvoiceConfig = getEInvoiceConfig(company.co);
|
|
9251
|
+
var getNumberLabel = function getNumberLabel() {
|
|
9252
|
+
if (document.ty === 1 || document.ty === 5) {
|
|
9253
|
+
return defaultLang['invoice_number_abbreviated'] || documentName + " #";
|
|
9254
|
+
} else if (document.ty === 2) {
|
|
9255
|
+
return defaultLang['creditNote_number_abbreviated'] || documentName + " #";
|
|
9256
|
+
} else {
|
|
9257
|
+
return defaultLang['estimate_number_abbreviated'] || documentName + " #";
|
|
9258
|
+
}
|
|
9259
|
+
};
|
|
9250
9260
|
var customerAddressLine = [customerAddress.city, customerAddress.state, customerAddress.zip].filter(Boolean).join(' ');
|
|
9251
9261
|
var shippingAddressLine = [customerShippingAddress.city, customerShippingAddress.state, customerShippingAddress.zip].filter(Boolean).join(' ');
|
|
9252
9262
|
var renderAddress = function renderAddress(address) {
|
|
9253
9263
|
return "\n " + (address.address1 ? "<div>" + address.address1 + "</div>" : '') + "\n " + (address.address2 ? "<div>" + address.address2 + "</div>" : '') + "\n " + (address.address3 ? "<div>" + address.address3 + "</div>" : '') + "\n";
|
|
9254
9264
|
};
|
|
9255
9265
|
var renderInvoiceDetail = function renderInvoiceDetail(label, value) {
|
|
9256
|
-
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 ";
|
|
9266
|
+
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 ";
|
|
9257
9267
|
};
|
|
9258
9268
|
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({
|
|
9259
9269
|
config: eInvoiceConfig,
|
|
9260
9270
|
taxRegistrations: customer === null || customer === void 0 ? void 0 : (_customer$eInvoicing = customer.eInvoicing) === null || _customer$eInvoicing === void 0 ? void 0 : _customer$eInvoicing.taxRegistrations,
|
|
9261
9271
|
defaultLang: defaultLang,
|
|
9262
9272
|
wrapperClass: 'customer-einvoicing'
|
|
9263
|
-
}), 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(
|
|
9273
|
+
}), 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) : '');
|
|
9264
9274
|
};
|
|
9265
9275
|
|
|
9266
9276
|
var currencies = {
|
|
@@ -11893,25 +11903,71 @@ var computeShippingTax = function computeShippingTax(document) {
|
|
|
11893
11903
|
}
|
|
11894
11904
|
return document.ti ? shipping * (1 - 1 / (1 + rate / 100)) : shipping * rate / 100;
|
|
11895
11905
|
};
|
|
11906
|
+
var computeItemTaxes = function computeItemTaxes(document) {
|
|
11907
|
+
var taxPercent1 = document.tp ? parseFloat(document.tp) : 0;
|
|
11908
|
+
var taxPercent2 = document.tp2 ? parseFloat(document.tp2) : 0;
|
|
11909
|
+
var itemTax1 = 0;
|
|
11910
|
+
var itemTax2 = 0;
|
|
11911
|
+
var items = Array.isArray(document.it) ? document.it : [];
|
|
11912
|
+
items.forEach(function (item) {
|
|
11913
|
+
var amount = Number(item === null || item === void 0 ? void 0 : item.t) || 0;
|
|
11914
|
+
var isTaxed1 = (item === null || item === void 0 ? void 0 : item.tx) != null ? item.tx : true;
|
|
11915
|
+
var isTaxed2 = (item === null || item === void 0 ? void 0 : item.tx2) != null ? item.tx2 : true;
|
|
11916
|
+
if (taxPercent1 > 0 && isTaxed1) {
|
|
11917
|
+
if (document.ti && !document.t1d) {
|
|
11918
|
+
var alsoTaxed2 = document.ttx && taxPercent2 > 0 && isTaxed2 && !document.t2d;
|
|
11919
|
+
var totalTaxRate = alsoTaxed2 ? taxPercent1 + taxPercent2 : taxPercent1;
|
|
11920
|
+
itemTax1 += amount * (1 - 1 / (1 + totalTaxRate / 100)) * (taxPercent1 / totalTaxRate);
|
|
11921
|
+
} else {
|
|
11922
|
+
itemTax1 += amount * taxPercent1 / 100;
|
|
11923
|
+
}
|
|
11924
|
+
}
|
|
11925
|
+
if (document.ttx && taxPercent2 > 0 && isTaxed2) {
|
|
11926
|
+
if (document.ti && !document.t2d) {
|
|
11927
|
+
var _totalTaxRate = isTaxed1 ? taxPercent1 + taxPercent2 : taxPercent2;
|
|
11928
|
+
itemTax2 += amount * (1 - 1 / (1 + _totalTaxRate / 100)) * (taxPercent2 / _totalTaxRate);
|
|
11929
|
+
} else {
|
|
11930
|
+
itemTax2 += amount * taxPercent2 / 100;
|
|
11931
|
+
}
|
|
11932
|
+
}
|
|
11933
|
+
});
|
|
11934
|
+
return {
|
|
11935
|
+
itemTax1: itemTax1,
|
|
11936
|
+
itemTax2: itemTax2
|
|
11937
|
+
};
|
|
11938
|
+
};
|
|
11896
11939
|
var getShippingTaxBreakdown = function getShippingTaxBreakdown(document) {
|
|
11897
11940
|
var hasShippingTaxRate = checkHasShippingTaxRate(document);
|
|
11898
11941
|
var shippingTaxRate = hasShippingTaxRate ? parseFloat(document.shippingTaxRate) : 0;
|
|
11899
11942
|
var shippingTax = computeShippingTax(document);
|
|
11900
|
-
var
|
|
11901
|
-
var
|
|
11902
|
-
var
|
|
11903
|
-
var
|
|
11904
|
-
|
|
11905
|
-
|
|
11943
|
+
var shipping = document.sp ? parseFloat(document.sp) : 0;
|
|
11944
|
+
var tax1 = document.tx ? parseFloat(document.tx) : 0;
|
|
11945
|
+
var tax2 = document.tx2 ? parseFloat(document.tx2) : 0;
|
|
11946
|
+
var _computeItemTaxes = computeItemTaxes(document),
|
|
11947
|
+
itemTax1 = _computeItemTaxes.itemTax1,
|
|
11948
|
+
itemTax2 = _computeItemTaxes.itemTax2;
|
|
11949
|
+
var shippingMatchesTax1 = hasShippingTaxRate && shippingTaxRate > 0 && !document.sntx && shippingTaxRate === parseFloat(document.tp || 0) && tax1 > 0;
|
|
11950
|
+
var shippingMatchesTax2 = hasShippingTaxRate && shippingTaxRate > 0 && !document.sntx && !!document.ttx && shippingTaxRate === parseFloat(document.tp2 || 0) && tax2 > 0 && !shippingMatchesTax1;
|
|
11951
|
+
var shippingFoldedIn = !hasShippingTaxRate && !!shipping && !document.sntx;
|
|
11952
|
+
var showTax1SubBreakdown = shippingFoldedIn && tax1 > itemTax1 || shippingMatchesTax1 && !!shippingTax;
|
|
11953
|
+
var showTax2SubBreakdown = shippingFoldedIn && !(document.t2d && document.t2di) && tax2 > itemTax2 || shippingMatchesTax2 && !!shippingTax;
|
|
11906
11954
|
var showSeparateShippingLine = hasShippingTaxRate && shippingTaxRate > 0 && !document.sntx && !shippingMatchesTax1 && !shippingMatchesTax2 && !!shippingTax;
|
|
11907
11955
|
return {
|
|
11908
11956
|
hasShippingTaxRate: hasShippingTaxRate,
|
|
11909
11957
|
shippingTaxRate: shippingTaxRate,
|
|
11910
11958
|
shippingTax: shippingTax,
|
|
11959
|
+
tax1: tax1,
|
|
11960
|
+
tax2: tax2,
|
|
11911
11961
|
itemTax1: itemTax1,
|
|
11912
11962
|
itemTax2: itemTax2,
|
|
11913
11963
|
shippingMatchesTax1: shippingMatchesTax1,
|
|
11914
11964
|
shippingMatchesTax2: shippingMatchesTax2,
|
|
11965
|
+
tax1Amount: shippingMatchesTax1 ? tax1 + shippingTax : tax1,
|
|
11966
|
+
tax2Amount: shippingMatchesTax2 ? tax2 + shippingTax : tax2,
|
|
11967
|
+
tax1ItemsAmount: shippingMatchesTax1 ? tax1 : itemTax1,
|
|
11968
|
+
tax1ShippingAmount: shippingMatchesTax1 ? shippingTax : tax1 - itemTax1,
|
|
11969
|
+
tax2ItemsAmount: shippingMatchesTax2 ? tax2 : itemTax2,
|
|
11970
|
+
tax2ShippingAmount: shippingMatchesTax2 ? shippingTax : tax2 - itemTax2,
|
|
11915
11971
|
showTax1SubBreakdown: showTax1SubBreakdown,
|
|
11916
11972
|
showTax2SubBreakdown: showTax2SubBreakdown,
|
|
11917
11973
|
showSeparateShippingLine: showSeparateShippingLine
|
|
@@ -12051,9 +12107,9 @@ var InvoiceContent = function InvoiceContent(_ref) {
|
|
|
12051
12107
|
};
|
|
12052
12108
|
var shippingLabel = company.r_sp ? company.r_sp : defaultLang['shipping'];
|
|
12053
12109
|
var subBreakdownRows = function subBreakdownRows(itemsAmount, shippingAmount) {
|
|
12054
|
-
return "<tr>\n <td class=\"text-md-right\" width=\"22%\" style=\"padding-left: 24px;\">" + defaultLang['
|
|
12110
|
+
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>";
|
|
12055
12111
|
};
|
|
12056
|
-
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.
|
|
12112
|
+
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>" : '');
|
|
12057
12113
|
var taxBreakdownRows = !eInvoiceTaxLines ? defaultTaxRows : isTaxSummaryMatching(eInvoiceTaxLines, document) ? eInvoiceTaxLines.map(function (line) {
|
|
12058
12114
|
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>";
|
|
12059
12115
|
}).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>";
|
|
@@ -12423,6 +12479,7 @@ var getDefaultLang = function getDefaultLang(t, lang) {
|
|
|
12423
12479
|
price: t ? t('Price') : lang['price'],
|
|
12424
12480
|
quantity: t ? t('Quantity') : lang['quantity'],
|
|
12425
12481
|
item: t ? t('Item') : lang['item'],
|
|
12482
|
+
items: t ? t('Items') : lang['items'] || lang['item'],
|
|
12426
12483
|
number: t ? t('Number') : lang['number'],
|
|
12427
12484
|
po_number: t ? t('PO Number') : lang['po_number'],
|
|
12428
12485
|
due_date: t ? t('Due date') : lang['due_date'],
|
|
@@ -12445,7 +12502,10 @@ var getDefaultLang = function getDefaultLang(t, lang) {
|
|
|
12445
12502
|
serviceDeliveryDate: t ? t('service_delivery_date') : lang['service_delivery_date'],
|
|
12446
12503
|
tax_label: t ? t('tax_label') : lang['tax_label'],
|
|
12447
12504
|
total_tax: t ? t('total_tax') : lang['total_tax'],
|
|
12448
|
-
tax: t ? t('tax') : lang['tax']
|
|
12505
|
+
tax: t ? t('tax') : lang['tax'],
|
|
12506
|
+
invoice_number_abbreviated: t ? t('invoice_number_abbreviated') : lang['invoice_number_abbreviated'],
|
|
12507
|
+
creditNote_number_abbreviated: t ? t('creditNote_number_abbreviated') : lang['creditNote_number_abbreviated'],
|
|
12508
|
+
estimate_number_abbreviated: t ? t('estimate_number_abbreviated') : lang['estimate_number_abbreviated']
|
|
12449
12509
|
};
|
|
12450
12510
|
};
|
|
12451
12511
|
|
|
@@ -12753,12 +12813,21 @@ var InvoiceHeader$1 = function InvoiceHeader(_ref) {
|
|
|
12753
12813
|
});
|
|
12754
12814
|
};
|
|
12755
12815
|
var eInvoiceConfig = getEInvoiceConfig(company.co);
|
|
12756
|
-
|
|
12816
|
+
var getNumberLabel = function getNumberLabel() {
|
|
12817
|
+
if (document.ty === 1 || document.ty === 5) {
|
|
12818
|
+
return defaultLang['invoice_number_abbreviated'] || documentName + " " + defaultLang['number'];
|
|
12819
|
+
} else if (document.ty === 2) {
|
|
12820
|
+
return defaultLang['creditNote_number_abbreviated'] || documentName + " " + defaultLang['number'];
|
|
12821
|
+
} else {
|
|
12822
|
+
return documentName + " " + defaultLang['number'];
|
|
12823
|
+
}
|
|
12824
|
+
};
|
|
12825
|
+
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({
|
|
12757
12826
|
config: eInvoiceConfig,
|
|
12758
12827
|
taxRegistrations: customer === null || customer === void 0 ? void 0 : (_customer$eInvoicing = customer.eInvoicing) === null || _customer$eInvoicing === void 0 ? void 0 : _customer$eInvoicing.taxRegistrations,
|
|
12759
12828
|
defaultLang: defaultLang,
|
|
12760
12829
|
wrapperClass: 'customer-einvoicing'
|
|
12761
|
-
}), 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 " : '',
|
|
12830
|
+
}), 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 " : '');
|
|
12762
12831
|
};
|
|
12763
12832
|
|
|
12764
12833
|
var _templateObject$p, _templateObject2$b, _templateObject3$5;
|
|
@@ -12886,9 +12955,9 @@ var InvoiceContent$1 = function InvoiceContent(_ref) {
|
|
|
12886
12955
|
};
|
|
12887
12956
|
var shippingLabel = company.r_sp ? company.r_sp : defaultLang['shipping'];
|
|
12888
12957
|
var subBreakdownRows = function subBreakdownRows(itemsAmount, shippingAmount) {
|
|
12889
|
-
return "<tr>\n <td width=\"22%\" style=\"padding-left: 24px;\">" + defaultLang['
|
|
12958
|
+
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>";
|
|
12890
12959
|
};
|
|
12891
|
-
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.
|
|
12960
|
+
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>" : '');
|
|
12892
12961
|
var taxBreakdownRows = !eInvoiceTaxLines ? defaultTaxRows : isTaxSummaryMatching(eInvoiceTaxLines, document) ? eInvoiceTaxLines.map(function (line) {
|
|
12893
12962
|
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>";
|
|
12894
12963
|
}).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>";
|
|
@@ -13969,6 +14038,7 @@ var langJP = (_document$invoice$est = {
|
|
|
13969
14038
|
amount: '金額',
|
|
13970
14039
|
price: '価格',
|
|
13971
14040
|
item: '項目',
|
|
14041
|
+
items: '項目',
|
|
13972
14042
|
po_number: '発注番号',
|
|
13973
14043
|
due_date: '支払期限',
|
|
13974
14044
|
due: '期限'
|