rerobe-js-orm 3.6.6 → 3.6.7

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.
@@ -429,7 +429,7 @@ class OrderHelpers {
429
429
  };
430
430
  }
431
431
  const subtotalPricePresentmentWithSalePrice = lineItems
432
- .map((i) => { var _a; return Number((_a = i.presentmentTotalPrice) === null || _a === void 0 ? void 0 : _a.amount); })
432
+ .map((i) => { var _a, _b; return Number((_a = i.presentmentTotalPrice) === null || _a === void 0 ? void 0 : _a.amount) + Number(((_b = i.presentmentTaxPrice) === null || _b === void 0 ? void 0 : _b.amount) || 0); })
433
433
  .reduce((a, b) => a + b, 0);
434
434
  const saleDiscountPresentmentAmount = subtotalOriginalPresentment - subtotalPricePresentmentWithSalePrice;
435
435
  const creditDiscountPresentmentAmount = convertAndFixPrice(creditDiscountAmount || 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rerobe-js-orm",
3
- "version": "3.6.6",
3
+ "version": "3.6.7",
4
4
  "description": "ReRobe's Javascript ORM Framework",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",