shareneus 1.7.3 → 1.7.4

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.
@@ -608,7 +608,7 @@ function resolveTotals(invoiceData, totalTax, printConfigData = {}) {
608
608
  ...(isPoSPrint ? [{ label: 'Due', amount: dueFromInvoice }] : [])
609
609
  ];
610
610
  const lines = totalLines
611
- .filter((line) => parseNumber(line === null || line === void 0 ? void 0 : line.amount) !== 0)
611
+ .filter((line) => (line === null || line === void 0 ? void 0 : line.label) === 'Due' || parseNumber(line === null || line === void 0 ? void 0 : line.amount) !== 0)
612
612
  .map((line) => ({ label: line.label, value: formatAmountFixed2(parseNumber(line === null || line === void 0 ? void 0 : line.amount)) }));
613
613
  const hasData = lines.some((line) => hasDisplayValue(line === null || line === void 0 ? void 0 : line.value));
614
614
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shareneus",
3
- "version": "1.7.03",
3
+ "version": "1.7.04",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",