rerobe-js-orm 2.4.66 → 2.4.67
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.
|
@@ -607,7 +607,7 @@ class ProductFormState extends FormState_1.default {
|
|
|
607
607
|
onChangeHandler = (val) => this.priceInputChangeHandler(val);
|
|
608
608
|
}
|
|
609
609
|
if (fieldKey === 'reRobeCommission') {
|
|
610
|
-
inputValue = this.props[fieldKey] || '0.
|
|
610
|
+
inputValue = this.props[fieldKey] || '0.5';
|
|
611
611
|
valid = true;
|
|
612
612
|
}
|
|
613
613
|
if (fieldKey === 'discountValue') {
|
|
@@ -23,7 +23,7 @@ class ReRobeProductHelpers {
|
|
|
23
23
|
static buildReRobeEarnings(arrayLike) {
|
|
24
24
|
const products = Array.isArray(arrayLike) ? arrayLike : [arrayLike];
|
|
25
25
|
return products.reduce((acc, cur) => {
|
|
26
|
-
const commission = cur.reRobeCommission ? Number(cur.reRobeCommission) : 0.
|
|
26
|
+
const commission = cur.reRobeCommission ? Number(cur.reRobeCommission) : 0.5;
|
|
27
27
|
const priceToUse = cur.isOnSale === 'yes' && cur.salePrice ? cur.salePrice : cur.price;
|
|
28
28
|
const listingPrice = Number(Number(priceToUse) <= 1 ? cur.suggestedResalePrice : priceToUse);
|
|
29
29
|
const inventoryValue = acc[0] + listingPrice;
|