@bookipi/htmlgenerator 1.5.12 → 1.5.14
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 +2 -6
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +2 -6
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -13433,18 +13433,14 @@ var subscriptionInvoiceHtml = (function (_ref) {
|
|
|
13433
13433
|
return item.type === 'discount' && item.total > 0;
|
|
13434
13434
|
});
|
|
13435
13435
|
var renderItem = function renderItem(item) {
|
|
13436
|
-
var title = item.
|
|
13437
|
-
var itemLang = {
|
|
13438
|
-
title: t ? t(title) : title,
|
|
13439
|
-
description: t ? t(item.description) : item.description
|
|
13440
|
-
};
|
|
13436
|
+
var title = item.name || item.description;
|
|
13441
13437
|
if (!hasDiscount && item.type === 'subtotal') {
|
|
13442
13438
|
return '';
|
|
13443
13439
|
}
|
|
13444
13440
|
var isDiscount = item.type === 'discount';
|
|
13445
13441
|
var total = item.total * (isDiscount ? -1 : 1);
|
|
13446
13442
|
var color = isDiscount ? '#C81E1E' : 'inherit';
|
|
13447
|
-
return "\n <div class=\"invoice-order-item\">\n <div class=\"invoice-order-details\">\n <div>\n <div class=\"invoice-spacing invoice-body3\">" +
|
|
13443
|
+
return "\n <div class=\"invoice-order-item\">\n <div class=\"invoice-order-details\">\n <div>\n <div class=\"invoice-spacing invoice-body3\">" + title + "</div>\n </div>\n <div style=\"font-size:16px;color:" + color + ";\">\n " + formatPrice(total, currency) + "\n </div>\n </div>\n </div>\n ";
|
|
13448
13444
|
};
|
|
13449
13445
|
var renderItems = function renderItems(items) {
|
|
13450
13446
|
var rendered = '';
|