rerobe-js-orm 2.7.0 → 2.7.1

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.
@@ -319,7 +319,7 @@ class Order extends Base_1.default {
319
319
  orderNumber: this.utilities.sanitizeNumber(this.orderNumber),
320
320
  customerName: this.utilities.sanitizeString(this.customerName),
321
321
  customerEmail: this.utilities.sanitizeString(this.email),
322
- totalPrice: this.utilities.sanitizeNumber(this.totalPrice.amount),
322
+ totalPrice: this.utilities.sanitizeNumber(Number(this.totalPrice.amount) - Number(this.totalRefunded.amount)),
323
323
  state: this.utilities.sanitizeString(this.state),
324
324
  financialStatus: this.utilities.sanitizeString(this.financialStatus),
325
325
  fulfillmentStatus: this.utilities.sanitizeString(this.fulfillmentStatus),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rerobe-js-orm",
3
- "version": "2.7.0",
3
+ "version": "2.7.1",
4
4
  "description": "ReRobe's Javascript ORM Framework",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",