@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.js
CHANGED
|
@@ -13447,7 +13447,8 @@ var subscriptionInvoiceHtml = (function (_ref) {
|
|
|
13447
13447
|
billTo: t ? t('Bill to') : 'Bill to',
|
|
13448
13448
|
item: t ? t('Item') : 'Item',
|
|
13449
13449
|
amount: t ? t('Amount') : 'Amount',
|
|
13450
|
-
totalCharged: t ? t('Total charged') : 'Total charged'
|
|
13450
|
+
totalCharged: t ? t('Total charged') : 'Total charged',
|
|
13451
|
+
discount: t ? t('Discount') : 'Discount'
|
|
13451
13452
|
};
|
|
13452
13453
|
var hasDiscount = invoiceItems.some(function (item) {
|
|
13453
13454
|
return item.type === 'discount' && item.total > 0;
|
|
@@ -13464,7 +13465,7 @@ var subscriptionInvoiceHtml = (function (_ref) {
|
|
|
13464
13465
|
var isDiscount = item.type === 'discount';
|
|
13465
13466
|
var total = item.total * (isDiscount ? -1 : 1);
|
|
13466
13467
|
var color = isDiscount ? '#C81E1E' : 'inherit';
|
|
13467
|
-
var label = isDiscount ?
|
|
13468
|
+
var label = isDiscount ? defaultLang.discount + " (" + title + ")" : title;
|
|
13468
13469
|
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 ";
|
|
13469
13470
|
};
|
|
13470
13471
|
var renderItems = function renderItems(items) {
|