@bookipi/htmlgenerator 1.5.18 → 1.5.20
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 +3 -2
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +3 -2
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -13446,7 +13446,8 @@ var subscriptionInvoiceHtml = (function (_ref) {
|
|
|
13446
13446
|
billTo: t ? t('Bill to') : 'Bill to',
|
|
13447
13447
|
item: t ? t('Item') : 'Item',
|
|
13448
13448
|
amount: t ? t('Amount') : 'Amount',
|
|
13449
|
-
totalCharged: t ? t('Total charged') : 'Total charged'
|
|
13449
|
+
totalCharged: t ? t('Total charged') : 'Total charged',
|
|
13450
|
+
discount: t ? t('Discount') : 'Discount'
|
|
13450
13451
|
};
|
|
13451
13452
|
var hasDiscount = invoiceItems.some(function (item) {
|
|
13452
13453
|
return item.type === 'discount' && item.total > 0;
|
|
@@ -13463,7 +13464,7 @@ var subscriptionInvoiceHtml = (function (_ref) {
|
|
|
13463
13464
|
var isDiscount = item.type === 'discount';
|
|
13464
13465
|
var total = item.total * (isDiscount ? -1 : 1);
|
|
13465
13466
|
var color = isDiscount ? '#C81E1E' : 'inherit';
|
|
13466
|
-
var label = isDiscount ?
|
|
13467
|
+
var label = isDiscount ? defaultLang.discount + " (" + title + ")" : title;
|
|
13467
13468
|
return "\n <div class=\"invoice-order-item\">\n <div class=\"invoice-order-details\">\n <div>\n <div class=\"invoice-spacing invoice-body3\" style=\"color:" + color + ";\">" + label + "</div>\n </div>\n <div style=\"font-size:16px;color:" + color + ";\">\n " + formatPrice(total, currency) + "\n </div>\n </div>\n </div>\n ";
|
|
13468
13469
|
};
|
|
13469
13470
|
var renderItems = function renderItems(items) {
|