@things-factory/integration-sftp 4.0.35 → 4.0.36
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.
|
@@ -45,15 +45,15 @@ function getOutboundOrder() {
|
|
|
45
45
|
email: '-'
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
|
-
let OrderLine = Order.
|
|
49
|
-
let totalItems = parseFloat(Order.
|
|
48
|
+
let OrderLine = Order.PickList;
|
|
49
|
+
let totalItems = parseFloat(Order.PickList.LinesInPickList._text);
|
|
50
50
|
let orderItems = totalItems == 1
|
|
51
51
|
? [
|
|
52
52
|
{
|
|
53
53
|
product: {
|
|
54
54
|
sku: OrderLine.Item.StockingSKU._text
|
|
55
55
|
},
|
|
56
|
-
releaseQty: parseFloat(OrderLine.Item.
|
|
56
|
+
releaseQty: parseFloat(OrderLine.Item.QuantityReleased._text)
|
|
57
57
|
}
|
|
58
58
|
]
|
|
59
59
|
: OrderLine.Item.map(line => {
|
|
@@ -61,7 +61,7 @@ function getOutboundOrder() {
|
|
|
61
61
|
product: {
|
|
62
62
|
sku: line.StockingSKU._text
|
|
63
63
|
},
|
|
64
|
-
releaseQty: parseFloat(line.
|
|
64
|
+
releaseQty: parseFloat(line.QuantityReleased._text)
|
|
65
65
|
};
|
|
66
66
|
});
|
|
67
67
|
let result = Object.assign(Object.assign({}, orderInfo), { orderInventories: orderItems });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-outbound-order.js","sourceRoot":"","sources":["../../../../server/controllers/herbalife/apis/get-outbound-order.ts"],"names":[],"mappings":";;;AAAA,SAAgB,gBAAgB;IAC9B,OAAO;QACL,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,0DAA0D;QAChE,WAAW,CAAC,GAAG;YACb,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,GAAG,CAAA;YAC/C,OAAO;gBACL,QAAQ,EAAE,EAAE,UAAU,EAAE,UAAU,E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AC1C,KAAK,EAAE,kBAAkB,CAAC,MAAM,CAAC,WAAW,CAAC,KAAK;oBAClD,UAAU,EAAE,kBAAkB,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK;oBACnD,OAAO,EAAE,kBAAkB,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK;oBAChD,MAAM,EAAE,kBAAkB,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK;oBAC7C,MAAM,EAAE,GAAG;oBACX,KAAK,EAAE,GAAG;iBACX;aACF,CAAA;YAED,IAAI,SAAS,GAAG,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"get-outbound-order.js","sourceRoot":"","sources":["../../../../server/controllers/herbalife/apis/get-outbound-order.ts"],"names":[],"mappings":";;;AAAA,SAAgB,gBAAgB;IAC9B,OAAO;QACL,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,0DAA0D;QAChE,WAAW,CAAC,GAAG;YACb,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,GAAG,CAAA;YAC/C,OAAO;gBACL,QAAQ,EAAE,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE;aAC9C,CAAA;QACH,CAAC;QACD,SAAS,CAAC,GAAG;YACX,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,CAAA;YAErB,IAAI,WAAW,GAAQ,KAAK,CAAC,WAAW,CAAA;YACxC,IAAI,WAAW,GAAQ,WAAW,CAAC,OAAO,CAAA;YAC1C,IAAI,kBAAkB,GAAQ,WAAW,CAAC,kBAAkB,CAAA;YAC5D,IAAI,YAAY,GAAG,WAAW,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;YACxD,IAAI,WAAW,GAAW,YAAY,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,YAAY,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,YAAY,CAAC,CAAC,CAAC,CAAA;YACzF,IAAI,SAAS,GAAQ;gBACnB,KAAK,E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AAO,EAAE;4BACP,GAAG,EAAE,SAAS,CAAC,IAAI,CAAC,WAAW,CAAC,KAAK;yBACtC;wBACD,UAAU,EAAE,UAAU,CAAC,SAAS,CAAC,IAAI,CAAC,gBAAgB,CAAC,KAAK,CAAC;qBAC9D;iBACF;gBACH,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBACxB,OAAO;wBACL,OAAO,EAAE;4BACP,GAAG,EAAE,IAAI,CAAC,WAAW,CAAC,KAAK;yBAC5B;wBACD,UAAU,EAAE,UAAU,CAAC,IAAI,CAAC,gBAAgB,CAAC,KAAK,CAAC;qBACpD,CAAA;gBACH,CAAC,CAAC,CAAA;YAER,IAAI,MAAM,mCACL,SAAS,KACZ,gBAAgB,EAAE,UAAU,GAC7B,CAAA;YAED,OAAO,MAAM,CAAA;QACf,CAAC;KACF,CAAA;AACH,CAAC;AA3ED,4CA2EC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/integration-sftp",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.36",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -24,13 +24,13 @@
|
|
|
24
24
|
"migration:create": "node ../../node_modules/typeorm/cli.js migration:create -d ./server/migrations"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@things-factory/auth-base": "^4.0.
|
|
28
|
-
"@things-factory/biz-base": "^4.0.
|
|
29
|
-
"@things-factory/env": "^4.0.
|
|
30
|
-
"@things-factory/integration-fulfillment": "^4.0.
|
|
31
|
-
"@things-factory/shell": "^4.0.
|
|
27
|
+
"@things-factory/auth-base": "^4.0.36",
|
|
28
|
+
"@things-factory/biz-base": "^4.0.36",
|
|
29
|
+
"@things-factory/env": "^4.0.36",
|
|
30
|
+
"@things-factory/integration-fulfillment": "^4.0.36",
|
|
31
|
+
"@things-factory/shell": "^4.0.36",
|
|
32
32
|
"aws-sdk": "^2.960.0",
|
|
33
33
|
"xml-js": "^1.6.11"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "132ab9f8af8c34f73bcd81a9776769a6929e13ee"
|
|
36
36
|
}
|
|
@@ -44,8 +44,8 @@ export function getOutboundOrder() {
|
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
let OrderLine = Order.
|
|
48
|
-
let totalItems: number = parseFloat(Order.
|
|
47
|
+
let OrderLine = Order.PickList
|
|
48
|
+
let totalItems: number = parseFloat(Order.PickList.LinesInPickList._text)
|
|
49
49
|
let orderItems: any[] =
|
|
50
50
|
totalItems == 1
|
|
51
51
|
? [
|
|
@@ -53,7 +53,7 @@ export function getOutboundOrder() {
|
|
|
53
53
|
product: {
|
|
54
54
|
sku: OrderLine.Item.StockingSKU._text
|
|
55
55
|
},
|
|
56
|
-
releaseQty: parseFloat(OrderLine.Item.
|
|
56
|
+
releaseQty: parseFloat(OrderLine.Item.QuantityReleased._text)
|
|
57
57
|
}
|
|
58
58
|
]
|
|
59
59
|
: OrderLine.Item.map(line => {
|
|
@@ -61,7 +61,7 @@ export function getOutboundOrder() {
|
|
|
61
61
|
product: {
|
|
62
62
|
sku: line.StockingSKU._text
|
|
63
63
|
},
|
|
64
|
-
releaseQty: parseFloat(line.
|
|
64
|
+
releaseQty: parseFloat(line.QuantityReleased._text)
|
|
65
65
|
}
|
|
66
66
|
})
|
|
67
67
|
|