@bookipi/htmlgenerator 1.1.30-alpha1 → 1.1.30-alpha2
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 -2
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +2 -2
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -9688,7 +9688,7 @@ var invoiceHtmlWithDetails = (function (_ref) {
|
|
|
9688
9688
|
if (document.it) {
|
|
9689
9689
|
for (var _iterator2 = _createForOfIteratorHelperLoose(document.it), _step2; !(_step2 = _iterator2()).done;) {
|
|
9690
9690
|
var _item = _step2.value;
|
|
9691
|
-
itemsContainer = itemsContainer + ("<tr>\n <td>\n <span class=\"text-inverse\"><strong>" + (_item.n || "") + "</strong></span>\n " + (_item.
|
|
9691
|
+
itemsContainer = itemsContainer + ("<tr>\n <td>\n <span class=\"text-inverse\"><strong>" + (_item.n || "") + "</strong></span>\n " + (_item.productCode ? "<div class=\"text-inverse\">" + _item.productCode + "</div>" : "") + "\n <div class=\"mt-2\">" + (nl2br(_item.dsc) || "") + "</div>\n <div class=\"d-block d-md-none mt-1\">\n " + ((_item.p || _item.p == 0) && (_item.q || _item.q == 0) ? FormatCurrency$1(_item.p, company.cr, company.la, company.cf, {
|
|
9692
9692
|
forceDecimal: forceItemUnitPriceDecimal
|
|
9693
9693
|
}) + " ✕ " + (_item.q || "0") : "") + "\n " + (discountOnItem && (_item.p || _item.p == 0) && _item.dc ? "" + (_item.dc > 0 ? " - " : " + ") + FormatCurrency$1(Math.abs(_item.dc), company.cr, company.la, company.cf, {
|
|
9694
9694
|
forceDecimal: forceItemUnitPriceDecimal
|
|
@@ -9792,7 +9792,7 @@ var invoiceHtml = (function (_ref) {
|
|
|
9792
9792
|
var docTypeMapping = new Map([[0, "estimate"], [1, "invoice"], [2, "credit_note"], [3, "delivery_note"], [4, "purchase_order"], ["estimate", 0], ["invoice", 1], ["credit_note", 2], ["delivery_note", 3], ["purchase_order", 4]]);
|
|
9793
9793
|
var ItemCompat = function ItemCompat(item) {
|
|
9794
9794
|
if (item == null) return null;
|
|
9795
|
-
var mapping = new Map([["name", "n"], ["productCode", "
|
|
9795
|
+
var mapping = new Map([["name", "n"], ["productCode", "productCode"], ["description", "dsc"], ["price", "p"], ["quantity", "q"], ["tax", "tx"], ["tax2", "tx2"], ["discount", "dc"], ["total", "t"]]);
|
|
9796
9796
|
return Object.fromEntries(Object.entries(item).map(function (_ref) {
|
|
9797
9797
|
var k = _ref[0],
|
|
9798
9798
|
v = _ref[1];
|