rerobe-js-orm 2.7.22 → 2.7.23

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.
@@ -36,7 +36,7 @@ class ReRobeProductHelpers {
36
36
  static buildReRobeEarnings(arrayLike) {
37
37
  const products = Array.isArray(arrayLike) ? arrayLike : [arrayLike];
38
38
  return products.reduce((acc, cur) => {
39
- const commission = cur.reRobeCommission ? Number(cur.reRobeCommission) : 0.5;
39
+ const commission = cur.reRobeCommission ? Number(this.commissionFixer(cur.reRobeCommission)) : 0.5;
40
40
  const priceToUse = cur.isOnSale === 'yes' && cur.salePrice ? cur.salePrice : cur.price;
41
41
  const listingPrice = Number(Number(priceToUse) <= 1 ? cur.suggestedResalePrice : priceToUse);
42
42
  const inventoryValue = acc[0] + listingPrice;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rerobe-js-orm",
3
- "version": "2.7.22",
3
+ "version": "2.7.23",
4
4
  "description": "ReRobe's Javascript ORM Framework",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",