@nuskin/ns-shop 6.7.7 → 6.8.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 +2 -2
- package/src/order/orderAdapter.js +10 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuskin/ns-shop",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.8.0",
|
|
4
4
|
"description": "The description that will amaze and astound your audience when they read it",
|
|
5
5
|
"main": "src/shop.js",
|
|
6
6
|
"scripts": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@nuskin/ns-common-lib": "1.4.5",
|
|
27
27
|
"@nuskin/ns-feature-flags": "1.4.2",
|
|
28
28
|
"@nuskin/ns-loyalty-web": "1.5.6",
|
|
29
|
-
"@nuskin/ns-product-lib": "2.
|
|
29
|
+
"@nuskin/ns-product-lib": "2.12.0",
|
|
30
30
|
"@nuskin/nuskinjquery": "2.3.1",
|
|
31
31
|
"axios": "0.21.1",
|
|
32
32
|
"decimal.js": "10.2.1",
|
|
@@ -113,6 +113,14 @@ const populateItem = (order, salesOrder, shipImmediate, includeSapItems) => {
|
|
|
113
113
|
});
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
+
if (item.subPriceFlag) {
|
|
117
|
+
sendItem.Custom.push({
|
|
118
|
+
Type: "SUB_PRICE",
|
|
119
|
+
Key: "SUB_PRICE",
|
|
120
|
+
Value: "X"
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
|
|
116
124
|
salesOrder["Item"].push(sendItem);
|
|
117
125
|
|
|
118
126
|
if (splitItemByPoints) {
|
|
@@ -602,6 +610,8 @@ const syncProductItems = async (order, sapProducts, adr, includeSapItems) => {
|
|
|
602
610
|
name = custom.Value;
|
|
603
611
|
} else if (custom.Key === "LABEL") {
|
|
604
612
|
label = custom.Value;
|
|
613
|
+
} else if (custom.Key === 'SUB_PRICE') {
|
|
614
|
+
newItem.subPriceFlag = true;
|
|
605
615
|
}
|
|
606
616
|
});
|
|
607
617
|
if (code != null || name !== null || label != null) {
|