@nuskin/ns-shop 7.8.1-pa-895.1 → 7.8.1-pa-895.2
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.
package/package.json
CHANGED
package/src/cart/cartService.js
CHANGED
|
@@ -320,7 +320,7 @@ function getCartWeight(orderType) {
|
|
|
320
320
|
let retVal = 0.0;
|
|
321
321
|
|
|
322
322
|
_getItemsByOrderType(orderType).forEach((item) => {
|
|
323
|
-
retVal += item.qty * (item.product.grossWeight || 0.0);
|
|
323
|
+
retVal += Math.round((item.qty * (item.product.grossWeight || 0.0) * 1000)) / 1000;
|
|
324
324
|
});
|
|
325
325
|
return retVal;
|
|
326
326
|
}
|
|
@@ -186,12 +186,12 @@ let PickupUtil = function() {
|
|
|
186
186
|
const storedShipData = getShipToData(storedPayload.order);
|
|
187
187
|
same = payload.country === storedPayload.country &&
|
|
188
188
|
payload.dangerousGoods === storedPayload.dangerousGoods &&
|
|
189
|
+
payload.weight === storedPayload.weight &&
|
|
189
190
|
shipData.country === storedShipData.country &&
|
|
190
191
|
shipData.postalCode === storedShipData.postalCode &&
|
|
191
192
|
shipData.line1 === storedShipData.line1 &&
|
|
192
193
|
shipData.line2 === storedShipData.line2 &&
|
|
193
|
-
shipData.city === storedShipData.city
|
|
194
|
-
shipData.weight === storedShipData.weight
|
|
194
|
+
shipData.city === storedShipData.city
|
|
195
195
|
}
|
|
196
196
|
return same
|
|
197
197
|
}
|