@bookipi/htmlgenerator 1.5.25-alpha3 → 1.5.25-alpha5
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 +4 -14
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +4 -14
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -13512,7 +13512,7 @@ var langJP = (_document$invoice$est = {
|
|
|
13512
13512
|
due: '期限'
|
|
13513
13513
|
}, _document$invoice$est["due_date"] = 'お支払い期限', _document$invoice$est.issued = '請求日', _document$invoice$est.date = '日付', _document$invoice$est.ship_to = '配送先', _document$invoice$est.bill_to = '宛先', _document$invoice$est.san = '様', _document$invoice$est.gochuu = '御中', _document$invoice$est.pay_online_now = 'お支払いに進む', _document$invoice$est.impose_surcharge = function impose_surcharge(surcharge) {
|
|
13514
13514
|
return "\u5225\u9014\u624B\u6570\u6599\uFF08" + surcharge + "\uFF05\uFF09\u304C\u304B\u304B\u308A\u307E\u3059\u3002";
|
|
13515
|
-
}, _document$invoice$est.payment_instruction = 'お支払いのご案内', _document$invoice$est.upgradeRequired = '無料版', _document$invoice$est.business_number = '法人番号', _document$invoice$est.tax_regulation_number = '登錄番号', _document$invoice$est.issue_from = '発行元', _document$invoice$est.invoice_details = '下記の通りご請求申し上げます。', _document$invoice$est.contact_person = '担当', _document$invoice$est.tax_included = '
|
|
13515
|
+
}, _document$invoice$est.payment_instruction = 'お支払いのご案内', _document$invoice$est.upgradeRequired = '無料版', _document$invoice$est.business_number = '法人番号', _document$invoice$est.tax_regulation_number = '登錄番号', _document$invoice$est.issue_from = '発行元', _document$invoice$est.invoice_details = '下記の通りご請求申し上げます。', _document$invoice$est.contact_person = '担当', _document$invoice$est.tax_included = '税込', _document$invoice$est.item_unit_piece = '個', _document$invoice$est.product_code_item_name = '品番・品名', _document$invoice$est.quantity = '数量', _document$invoice$est["price"] = '単価', _document$invoice$est.item_total = '金額', _document$invoice$est.brand_footer_title = '無料の請求書アプリで作成', _document$invoice$est.download_app = 'Bookipiアプリを入手', _document$invoice$est.document_no = '書類番号', _document$invoice$est.sent_date = '送信日', _document$invoice$est.item_date = '日付', _document$invoice$est.reduced_rate = '軽減税率', _document$invoice$est.tax_rate = '税率', _document$invoice$est.tax_excluded = '(税抜)', _document$invoice$est.tax_rate_category = '税率区分', _document$invoice$est.consumption_tax = '消費税', _document$invoice$est.amount_of_tax = '金額(税抜)', _document$invoice$est.tax_subject = '対象', _document$invoice$est.reduced_tax_description = '※は軽減税率対象です。', _document$invoice$est.reduced = '軽減', _document$invoice$est);
|
|
13516
13516
|
|
|
13517
13517
|
var _templateObject$w;
|
|
13518
13518
|
var html$u = String.raw;
|
|
@@ -13571,7 +13571,6 @@ var InvoiceHeading = function InvoiceHeading(_ref) {
|
|
|
13571
13571
|
invoice = _ref.invoice,
|
|
13572
13572
|
companyLogoBase = _ref.companyLogoBase,
|
|
13573
13573
|
defaultLang = _ref.defaultLang,
|
|
13574
|
-
sentDate = _ref.sentDate,
|
|
13575
13574
|
isQIS = _ref.isQIS;
|
|
13576
13575
|
if (!company || !invoice) return '';
|
|
13577
13576
|
var document = (_invoice$document = invoice.document) != null ? _invoice$document : {};
|
|
@@ -13590,7 +13589,7 @@ var InvoiceHeading = function InvoiceHeading(_ref) {
|
|
|
13590
13589
|
company: company,
|
|
13591
13590
|
logoPath: logoPath,
|
|
13592
13591
|
logoBase64: logoBase64
|
|
13593
|
-
}), documentName, defaultLang['issued'], formatDateJapan(document.d, company.tz),
|
|
13592
|
+
}), documentName, defaultLang['issued'], formatDateJapan(document.d, company.tz), document.sent ? "\n <div class=\"date-and-number\" style=\"margin-bottom: 8px;\">\n <span class=\"date-and-number-label\"\n >" + defaultLang['sent_date'] + ":\n </span>\n <span>" + formatDateJapan(document.sent, company.tz) + "</span>\n </div>" : '', defaultLang['document_no'], document.no ? document.no : '', isQIS && company.tfn ? "\n <div class=\"date-and-number\" style=\"margin-bottom: 8px;\">\n <span class=\"date-and-number-label\"\n >" + (company.bn ? company.bn : defaultLang['tax_regulation_number']) + ":\n </span>\n <span>" + (company.tfn ? company.tfn : '') + "</span>\n </div>\n " : '', document.pon ? "\n <div class=\"date-and-number\">\n <span class=\"date-and-number-label\">" + defaultLang['po_number'] + ": </span>\n <span>" + document.pon + "</span>\n </div>\n " : '');
|
|
13594
13593
|
};
|
|
13595
13594
|
|
|
13596
13595
|
var _templateObject$z, _templateObject2$g;
|
|
@@ -13706,7 +13705,7 @@ var TaxTable = function TaxTable(_ref) {
|
|
|
13706
13705
|
return acc;
|
|
13707
13706
|
}
|
|
13708
13707
|
}, 0);
|
|
13709
|
-
var taxTable = html$B(_templateObject$D || (_templateObject$D = _taggedTemplateLiteralLoose(["\n <div>", "</div>\n <div class=\"tax-table-wrapper mt-2 mb-5\">\n <table class=\"tax-table table table-sm\">\n <thead>\n <tr>\n <th>", "</th>\n <th>", "</th>\n <th>", "</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <td style=\"border-top: none;\">\n ", "%", "\n </td>\n <td style=\"border-top: none;\">\n ", "\n </td>\n <td style=\"border-top: none;\">\n ", "\n </td>\n </tr>\n <tr>\n <td
|
|
13708
|
+
var taxTable = html$B(_templateObject$D || (_templateObject$D = _taggedTemplateLiteralLoose(["\n <div>", "</div>\n <div class=\"tax-table-wrapper mt-2 mb-5\">\n <table class=\"tax-table table table-sm\">\n <thead>\n <tr>\n <th>", "</th>\n <th>", "</th>\n <th>", "</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <td style=\"border-top: none;\">\n ", "%", "\n </td>\n <td style=\"border-top: none;\">\n ", "\n </td>\n <td style=\"border-top: none;\">\n ", "\n </td>\n </tr>\n <tr>\n <td>\n ", "", "%", "\n </td>\n <td>\n ", "\n </td>\n <td>\n ", "\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n "])), defaultLang['reduced_tax_description'], defaultLang['tax_rate_category'], taxName1 || defaultLang['consumption_tax'], defaultLang['amount_of_tax'], document.tp, defaultLang['tax_subject'], FormatCurrencyJP(document.tx, company.cr, company.la, company.cf), FormatCurrencyJP(amountOf10Tax, company.cr, company.la, company.cf), defaultLang['reduced'], document.tp2, defaultLang['tax_subject'], FormatCurrencyJP(document.tx2, company.cr, company.la, company.cf), FormatCurrencyJP(amountOf8Tax, company.cr, company.la, company.cf));
|
|
13710
13709
|
return taxTable;
|
|
13711
13710
|
};
|
|
13712
13711
|
|
|
@@ -13739,7 +13738,7 @@ var InvoiceContent$2 = function InvoiceContent(_ref) {
|
|
|
13739
13738
|
document: document,
|
|
13740
13739
|
company: company,
|
|
13741
13740
|
defaultLang: defaultLang
|
|
13742
|
-
}) : '', defaultLang['subtotal'], FormatCurrencyJP(document.st, company.cr, company.la, company.cf), document.dc ? "<tr>\n <td width=\"22%\">" + (defaultLang['discount'] + (document.dcpo && document.dcp ? ' (' + document.dcp + '%)' : '')) + "</td>\n <td class=\"text-right\" width=\"22%\">" + ('(' + FormatCurrencyJP(document.dc, company.cr, company.la, company.cf) + ')') + "</td>\n </tr>" : '', document.sp && !document.sntx ? "<tr>\n <td width=\"22%\">" + defaultLang['shipping'] + "</td>\n <td class=\"text-right\" width=\"22%\">" + FormatCurrencyJP(document.sp, company.cr, company.la, company.cf) + "</td>\n </tr>" : '', document.tx != 0 ? "<tr>\n <td width=\"22%\">\n " + taxName1 +
|
|
13741
|
+
}) : '', defaultLang['subtotal'], FormatCurrencyJP(document.st, company.cr, company.la, company.cf), document.dc ? "<tr>\n <td width=\"22%\">" + (defaultLang['discount'] + (document.dcpo && document.dcp ? ' (' + document.dcp + '%)' : '')) + "</td>\n <td class=\"text-right\" width=\"22%\">" + ('(' + FormatCurrencyJP(document.dc, company.cr, company.la, company.cf) + ')') + "</td>\n </tr>" : '', document.sp && !document.sntx ? "<tr>\n <td width=\"22%\">" + defaultLang['shipping'] + "</td>\n <td class=\"text-right\" width=\"22%\">" + FormatCurrencyJP(document.sp, company.cr, company.la, company.cf) + "</td>\n </tr>" : '', document.tx != 0 ? "<tr>\n <td width=\"22%\">\n " + taxName1 + (document.ti ? "" + defaultLang['tax_included'] : '') + "\uFF08" + document.tp + "\uFF05\uFF09\n </td>\n <td class=\"text-right\" width=\"22%\">" + FormatCurrencyJP(document.tx, company.cr, company.la, company.cf) + "</td>\n </tr>" : '', document.ttx && document.tx2 != 0 ? "<tr>\n <td width=\"22%\">\n " + taxName2 + (document.ti ? "" + defaultLang['tax_included'] : '') + "\uFF08" + document.tp2 + "\uFF05\uFF09\n </td>\n <td class=\"text-right\" width=\"22%\">" + FormatCurrencyJP(document.tx2, company.cr, company.la, company.cf) + "</td>\n </tr>" : '', document.sp && document.sntx ? "<tr>\n <td width=\"22%\">" + defaultLang['shipping'] + "</td>\n <td class=\"text-right\" width=\"22%\">" + FormatCurrencyJP(document.sp, company.cr, company.la, company.cf) + "</td>\n </tr>" : '', defaultLang['total'], FormatCurrencyJP(document.tt ? document.tt : 0, company.cr, company.la, company.cf), document.sca ? "<tr>\n <td width=\"22%\">" + defaultLang['credit_card_surcharge'] + "</td>\n <td class=\"text-right\" width=\"22%\">" + FormatCurrencyJP(document.sca, company.cr, company.la, company.cf) + "</td>\n </tr>" : '', document.hangingAmount && document.hangingAmount > 0 ? "<tr>\n <td width=\"22%\" style=\"border-top: 1px solid #E5E7EB\">" + defaultLang['payment_in_progress'] + "</td>\n <td class=\"text-right\" width=\"22%\" style=\"border-top: 1px solid #E5E7EB\">" + FormatCurrencyJP(document.hangingAmount || 0, company.cr, company.la, company.cf) + "</td>\n </tr>" : '', document.ty == 1 && document.pma && document.pm ? paymentContainer : '', document.ty == 1 && isDeposit && document.depositAmount > 0 ? "\n <tr>\n <td width=\"22%\" style=\"border-top: 1px solid #E5E7EB;\">" + (document.ty == 1 ? defaultLang['amount_due'] : defaultLang['grand_total']) + "</td>\n <td class=\"text-right\" width=\"22%\" style=\"border-top: 1px solid #E5E7EB\">" + FormatCurrencyJP(document.ad - (document.hangingAmount || 0), company.cr, company.la, company.cf) + "</td>\n </tr>" : '');
|
|
13743
13742
|
};
|
|
13744
13743
|
|
|
13745
13744
|
var _templateObject$F, _templateObject2$i, _templateObject3$7;
|
|
@@ -13894,8 +13893,6 @@ var renderLayout = (function (_ref) {
|
|
|
13894
13893
|
showActions = _ref$showActions === void 0 ? false : _ref$showActions,
|
|
13895
13894
|
_ref$isFullScreen = _ref.isFullScreen,
|
|
13896
13895
|
isFullScreen = _ref$isFullScreen === void 0 ? false : _ref$isFullScreen,
|
|
13897
|
-
_ref$sentDate = _ref.sentDate,
|
|
13898
|
-
sentDate = _ref$sentDate === void 0 ? null : _ref$sentDate,
|
|
13899
13896
|
_ref$isQIS = _ref.isQIS,
|
|
13900
13897
|
isQIS = _ref$isQIS === void 0 ? false : _ref$isQIS;
|
|
13901
13898
|
var defaultLang = langJP;
|
|
@@ -13935,7 +13932,6 @@ var renderLayout = (function (_ref) {
|
|
|
13935
13932
|
invoice: invoice,
|
|
13936
13933
|
companyLogoBase: companyLogoBase,
|
|
13937
13934
|
defaultLang: defaultLang,
|
|
13938
|
-
sentDate: sentDate,
|
|
13939
13935
|
isQIS: isQIS
|
|
13940
13936
|
}), InvoiceCompany$2({
|
|
13941
13937
|
document: document,
|
|
@@ -14013,8 +14009,6 @@ var invoiceHtml$1 = (function (_ref) {
|
|
|
14013
14009
|
showActions = _ref$showActions === void 0 ? false : _ref$showActions,
|
|
14014
14010
|
_ref$isFullScreen = _ref.isFullScreen,
|
|
14015
14011
|
isFullScreen = _ref$isFullScreen === void 0 ? false : _ref$isFullScreen,
|
|
14016
|
-
_ref$sentDate = _ref.sentDate,
|
|
14017
|
-
sentDate = _ref$sentDate === void 0 ? null : _ref$sentDate,
|
|
14018
14012
|
_ref$isQIS = _ref.isQIS,
|
|
14019
14013
|
isQIS = _ref$isQIS === void 0 ? false : _ref$isQIS;
|
|
14020
14014
|
return renderLayout({
|
|
@@ -14035,7 +14029,6 @@ var invoiceHtml$1 = (function (_ref) {
|
|
|
14035
14029
|
showWatermark: showWatermark,
|
|
14036
14030
|
showActions: showActions,
|
|
14037
14031
|
isFullScreen: isFullScreen,
|
|
14038
|
-
sentDate: sentDate,
|
|
14039
14032
|
isQIS: isQIS
|
|
14040
14033
|
}).html;
|
|
14041
14034
|
});
|
|
@@ -14063,8 +14056,6 @@ var InvoiceCompatHtml$1 = function InvoiceCompatHtml(_ref) {
|
|
|
14063
14056
|
showActions = _ref$showActions === void 0 ? false : _ref$showActions,
|
|
14064
14057
|
_ref$isFullScreen = _ref.isFullScreen,
|
|
14065
14058
|
isFullScreen = _ref$isFullScreen === void 0 ? false : _ref$isFullScreen,
|
|
14066
|
-
_ref$sentDate = _ref.sentDate,
|
|
14067
|
-
sentDate = _ref$sentDate === void 0 ? null : _ref$sentDate,
|
|
14068
14059
|
_ref$isQIS = _ref.isQIS,
|
|
14069
14060
|
isQIS = _ref$isQIS === void 0 ? false : _ref$isQIS;
|
|
14070
14061
|
return invoiceHtml$1({
|
|
@@ -14083,7 +14074,6 @@ var InvoiceCompatHtml$1 = function InvoiceCompatHtml(_ref) {
|
|
|
14083
14074
|
showWatermark: showWatermark,
|
|
14084
14075
|
showActions: showActions,
|
|
14085
14076
|
isFullScreen: isFullScreen,
|
|
14086
|
-
sentDate: sentDate,
|
|
14087
14077
|
isQIS: isQIS
|
|
14088
14078
|
});
|
|
14089
14079
|
};
|