@nuskin/ns-shop 7.7.0-pa-87.3 → 7.7.0
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
|
@@ -6,7 +6,7 @@ import {AdrService, Product, ScanCard, CurrencyService} from '@nuskin/ns-shop';
|
|
|
6
6
|
import {UserService, AccountManager} from '@nuskin/ns-account';
|
|
7
7
|
import ProductService from './productService';
|
|
8
8
|
import Cart from './cart.js';
|
|
9
|
-
import OrderType from '../order/orderType.js';
|
|
9
|
+
import {OrderType} from '../order/orderType.js';
|
|
10
10
|
import AdrEditService from '../adr/AdrEditService.js';
|
|
11
11
|
import QualificationService from '@nuskin/exclusive-offer-sdk'
|
|
12
12
|
import {ProductStatus} from '@nuskin/ns-product-lib';
|
|
@@ -302,9 +302,9 @@ function hasPreviewItems() {
|
|
|
302
302
|
}
|
|
303
303
|
|
|
304
304
|
function _getItemsByOrderType(orderType) {
|
|
305
|
-
if (orderType.SHIP_IMMEDIATE) return
|
|
306
|
-
else if (orderType == OrderType.ADR_CREATE) return
|
|
307
|
-
else return
|
|
305
|
+
if (orderType == OrderType.SHIP_IMMEDIATE) return _getCart().getItems({cartItems: true});
|
|
306
|
+
else if (orderType == OrderType.ADR_CREATE) return _getCart().getItems({cartAdrItems: true});
|
|
307
|
+
else return _getCart().getItems({cartOrderItems: true});
|
|
308
308
|
}
|
|
309
309
|
|
|
310
310
|
function hasDangerousGoods(orderType) {
|
|
@@ -186,11 +186,9 @@ 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.orderValue === storedPayload.orderValue &&
|
|
190
189
|
shipData.country === storedShipData.country &&
|
|
191
190
|
shipData.postalCode === storedShipData.postalCode &&
|
|
192
191
|
shipData.line1 === storedShipData.line1 &&
|
|
193
|
-
shipData.line2 === storedShipData.line2 &&
|
|
194
192
|
shipData.city === storedShipData.city
|
|
195
193
|
}
|
|
196
194
|
return same
|