@things-factory/operato-wms 4.3.0-alpha.1 → 4.3.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/client/constants/index.js +1 -0
- package/client/constants/order.js +14 -0
- package/client/pages/constants/index.js +1 -0
- package/client/pages/constants/setting.js +1 -0
- package/client/pages/constants/tote.js +14 -0
- package/client/pages/inbound/putaway-product.js +3 -1
- package/client/pages/inbound/unload-product.js +21 -11
- package/client/pages/inventory/inventory-adjustment-approval.js +24 -9
- package/client/pages/inventory/inventory-adjustment.js +79 -13
- package/client/pages/master/product/product-list.js +1 -1
- package/client/pages/master/tote-list.js +740 -0
- package/client/pages/order/arrival-notice/arrival-notice-detail.js +0 -2
- package/client/pages/order/arrival-notice/receive-arrival-notice.js +0 -2
- package/client/pages/order/draft-release-good/draft-release-good-detail.js +1163 -0
- package/client/pages/order/draft-release-good/draft-release-good-list.js +546 -0
- package/client/pages/order/goods-received-note/customer-received-note.js +3 -0
- package/client/pages/order/goods-received-note/received-note-detail.js +3 -0
- package/client/pages/order/release-order/b2c/b2c-order-requests.js +21 -30
- package/client/pages/order/release-order/bulk-print-packing-list.js +4 -0
- package/client/pages/order/release-order/receive-release-order-request.js +0 -2
- package/client/pages/order/release-order/release-order-detail.js +44 -26
- package/client/pages/order/return-order/receive-return-order-requests.js +0 -2
- package/client/pages/order/transfer-order/receive-transfer-order-request.js +1 -1
- package/client/pages/order/transport-order/print-delivery-note.js +0 -1
- package/client/pages/order/transport-order/view-delivery-note.js +1 -1
- package/client/pages/order/vas-order/receive-vas-order.js +0 -2
- package/client/pages/outbound/inventory-assign-popup.js +7 -2
- package/client/pages/outbound/inventory-auto-assign-popup.js +2 -1
- package/client/pages/outbound/loading-product.js +49 -11
- package/client/pages/outbound/order-remark-popup.js +112 -0
- package/client/pages/outbound/packing-product.js +42 -6
- package/client/pages/outbound/packing-worksheet-list.js +15 -0
- package/client/pages/outbound/picking-product.js +150 -13
- package/client/pages/outbound/single-outbound-worksheet.js +10 -22
- package/client/pages/outbound/sorting-product.js +78 -15
- package/client/pages/outbound/tote-popup.js +461 -0
- package/client/pages/outbound/worksheet-batch-picking.js +9 -2
- package/client/pages/outbound/worksheet-packing.js +7 -2
- package/client/pages/outbound/worksheet-picking.js +9 -2
- package/client/pages/report/inventory-summary-report.js +8 -0
- package/client/pages/report/outbound-order-details-report.js +18 -0
- package/client/pages/vas/abstract-execute-vas.js +12 -7
- package/client/pages/vas/print-product-label.js +15 -6
- package/client/pages/vas/reverse-kitting/execute-reverse-kitting.js +3 -1
- package/client/pages/vas/reverse-kitting/popup-reverse-kitting-template.js +3 -1
- package/client/route.js +12 -0
- package/dist-server/entities/index.js +2 -1
- package/dist-server/entities/index.js.map +1 -1
- package/dist-server/entities/warehouse-bizplace-onhand-inventory.js +168 -0
- package/dist-server/entities/warehouse-bizplace-onhand-inventory.js.map +1 -0
- package/dist-server/graphql/index.js +1 -5
- package/dist-server/graphql/index.js.map +1 -1
- package/dist-server/graphql/resolvers/board-setting/board-settings.js +2 -1
- package/dist-server/graphql/resolvers/board-setting/board-settings.js.map +1 -1
- package/dist-server/graphql/resolvers/index.js +4 -7
- package/dist-server/graphql/resolvers/index.js.map +1 -1
- package/dist-server/graphql/resolvers/reports/outbound-order-details-report.js +3 -1
- package/dist-server/graphql/resolvers/reports/outbound-order-details-report.js.map +1 -1
- package/dist-server/graphql/resolvers/warehouse-inventory-adjustment/index.js +6 -0
- package/dist-server/graphql/resolvers/warehouse-inventory-adjustment/index.js.map +1 -0
- package/dist-server/graphql/resolvers/warehouse-inventory-adjustment/warehouse-intentory-adjustment.js +58 -0
- package/dist-server/graphql/resolvers/warehouse-inventory-adjustment/warehouse-intentory-adjustment.js.map +1 -0
- package/dist-server/graphql/types/index.js +5 -8
- package/dist-server/graphql/types/index.js.map +1 -1
- package/dist-server/graphql/types/reports/outbound-order-details-report.js +2 -0
- package/dist-server/graphql/types/reports/outbound-order-details-report.js.map +1 -1
- package/dist-server/graphql/types/warehouse-inventory-adjustment/index.js +9 -0
- package/dist-server/graphql/types/warehouse-inventory-adjustment/index.js.map +1 -0
- package/dist-server/index.js +2 -5
- package/dist-server/index.js.map +1 -1
- package/dist-server/opa-app-setting-constants.js +2 -1
- package/dist-server/opa-app-setting-constants.js.map +1 -1
- package/dist-server/utils/index.js +1 -5
- package/dist-server/utils/index.js.map +1 -1
- package/helps/release-note.ko.md +11 -9
- package/helps/release-note.md +11 -9
- package/helps/release-note.ms.md +11 -9
- package/helps/release-note.zh.md +11 -9
- package/package.json +50 -50
- package/server/entities/index.ts +2 -2
- package/server/entities/warehouse-bizplace-onhand-inventory.ts +141 -0
- package/server/graphql/resolvers/board-setting/board-settings.ts +4 -2
- package/server/graphql/resolvers/index.ts +3 -2
- package/server/graphql/resolvers/reports/outbound-order-details-report.ts +6 -2
- package/server/graphql/resolvers/warehouse-inventory-adjustment/index.ts +5 -0
- package/server/graphql/resolvers/warehouse-inventory-adjustment/warehouse-intentory-adjustment.ts +68 -0
- package/server/graphql/types/index.ts +4 -4
- package/server/graphql/types/reports/outbound-order-details-report.ts +2 -0
- package/server/graphql/types/warehouse-inventory-adjustment/index.ts +5 -0
- package/server/index.ts +2 -1
- package/server/opa-app-setting-constants.ts +1 -0
- package/things-factory.config.js +13 -0
- package/translations/en.json +48 -8
- package/translations/ko.json +35 -1
- package/translations/ms.json +35 -1
- package/translations/zh.json +35 -1
- package/config.development.js +0 -73
- package/config.production.js +0 -113
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
9
5
|
}) : (function(o, m, k, k2) {
|
|
10
6
|
if (k2 === undefined) k2 = k;
|
|
11
7
|
o[k2] = m[k];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/utils/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sDAAmC"}
|
package/helps/release-note.ko.md
CHANGED
|
@@ -2,34 +2,36 @@
|
|
|
2
2
|
|
|
3
3
|
<div align="center">
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## 25 April Update
|
|
6
6
|
|
|
7
|
-
####
|
|
7
|
+
#### V4.3.0 Release Note
|
|
8
8
|
|
|
9
|
-
####
|
|
9
|
+
#### Greetings to all,
|
|
10
|
+
|
|
11
|
+
#### In this holy fasting month, we have strived to bring these early Ramadhan gifts as below:
|
|
10
12
|
|
|
11
13
|
<div>
|
|
12
|
-
1.
|
|
14
|
+
1. B2C Order Remark
|
|
13
15
|
</div>
|
|
14
16
|
<div>
|
|
15
|
-
2.
|
|
17
|
+
2. Mark Missing Inventory
|
|
16
18
|
</div>
|
|
17
19
|
<div>
|
|
18
|
-
3.
|
|
20
|
+
3. Outbound Draft Order
|
|
19
21
|
</div>
|
|
20
22
|
<div>
|
|
21
|
-
4.
|
|
23
|
+
4. Loosen Restriction in Inventory Adjustment
|
|
22
24
|
</div>
|
|
23
25
|
<div>
|
|
24
26
|
5. Bug fixes and API updates!
|
|
25
27
|
</div>
|
|
26
28
|
<br>
|
|
27
|
-
https://bit.ly/
|
|
29
|
+
https://bit.ly/220424_Hatio_Release
|
|
28
30
|
<br>
|
|
29
31
|
|
|
30
32
|
Should you have any inquiry, feel free to contact support@hatio.asia!
|
|
31
33
|
<br>
|
|
32
|
-
Stay safe and positively negative!
|
|
34
|
+
With pleasure, we wish you Selamat Hari Raya Aidilfitri in advance. Stay safe and positively negative!
|
|
33
35
|
|
|
34
36
|
<br>
|
|
35
37
|
|
package/helps/release-note.md
CHANGED
|
@@ -2,34 +2,36 @@
|
|
|
2
2
|
|
|
3
3
|
<div align="center">
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## 25 April Update
|
|
6
6
|
|
|
7
|
-
####
|
|
7
|
+
#### V4.3.0 Release Note
|
|
8
8
|
|
|
9
|
-
####
|
|
9
|
+
#### Greetings to all,
|
|
10
|
+
|
|
11
|
+
#### In this holy fasting month, we have strived to bring these early Ramadhan gifts as below:
|
|
10
12
|
|
|
11
13
|
<div>
|
|
12
|
-
1.
|
|
14
|
+
1. B2C Order Remark
|
|
13
15
|
</div>
|
|
14
16
|
<div>
|
|
15
|
-
2.
|
|
17
|
+
2. Mark Missing Inventory
|
|
16
18
|
</div>
|
|
17
19
|
<div>
|
|
18
|
-
3.
|
|
20
|
+
3. Outbound Draft Order
|
|
19
21
|
</div>
|
|
20
22
|
<div>
|
|
21
|
-
4.
|
|
23
|
+
4. Loosen Restriction in Inventory Adjustment
|
|
22
24
|
</div>
|
|
23
25
|
<div>
|
|
24
26
|
5. Bug fixes and API updates!
|
|
25
27
|
</div>
|
|
26
28
|
<br>
|
|
27
|
-
https://bit.ly/
|
|
29
|
+
https://bit.ly/220424_Hatio_Release
|
|
28
30
|
<br>
|
|
29
31
|
|
|
30
32
|
Should you have any inquiry, feel free to contact support@hatio.asia!
|
|
31
33
|
<br>
|
|
32
|
-
Stay safe and positively negative!
|
|
34
|
+
With pleasure, we wish you Selamat Hari Raya Aidilfitri in advance. Stay safe and positively negative!
|
|
33
35
|
|
|
34
36
|
<br>
|
|
35
37
|
|
package/helps/release-note.ms.md
CHANGED
|
@@ -2,34 +2,36 @@
|
|
|
2
2
|
|
|
3
3
|
<div align="center">
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## 25 April Update
|
|
6
6
|
|
|
7
|
-
####
|
|
7
|
+
#### V4.3.0 Release Note
|
|
8
8
|
|
|
9
|
-
####
|
|
9
|
+
#### Greetings to all,
|
|
10
|
+
|
|
11
|
+
#### In this holy fasting month, we have strived to bring these early Ramadhan gifts as below:
|
|
10
12
|
|
|
11
13
|
<div>
|
|
12
|
-
1.
|
|
14
|
+
1. B2C Order Remark
|
|
13
15
|
</div>
|
|
14
16
|
<div>
|
|
15
|
-
2.
|
|
17
|
+
2. Mark Missing Inventory
|
|
16
18
|
</div>
|
|
17
19
|
<div>
|
|
18
|
-
3.
|
|
20
|
+
3. Outbound Draft Order
|
|
19
21
|
</div>
|
|
20
22
|
<div>
|
|
21
|
-
4.
|
|
23
|
+
4. Loosen Restriction in Inventory Adjustment
|
|
22
24
|
</div>
|
|
23
25
|
<div>
|
|
24
26
|
5. Bug fixes and API updates!
|
|
25
27
|
</div>
|
|
26
28
|
<br>
|
|
27
|
-
https://bit.ly/
|
|
29
|
+
https://bit.ly/220424_Hatio_Release
|
|
28
30
|
<br>
|
|
29
31
|
|
|
30
32
|
Should you have any inquiry, feel free to contact support@hatio.asia!
|
|
31
33
|
<br>
|
|
32
|
-
Stay safe and positively negative!
|
|
34
|
+
With pleasure, we wish you Selamat Hari Raya Aidilfitri in advance. Stay safe and positively negative!
|
|
33
35
|
|
|
34
36
|
<br>
|
|
35
37
|
|
package/helps/release-note.zh.md
CHANGED
|
@@ -2,34 +2,36 @@
|
|
|
2
2
|
|
|
3
3
|
<div align="center">
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## 25 April Update
|
|
6
6
|
|
|
7
|
-
####
|
|
7
|
+
#### V4.3.0 Release Note
|
|
8
8
|
|
|
9
|
-
####
|
|
9
|
+
#### Greetings to all,
|
|
10
|
+
|
|
11
|
+
#### In this holy fasting month, we have strived to bring these early Ramadhan gifts as below:
|
|
10
12
|
|
|
11
13
|
<div>
|
|
12
|
-
1.
|
|
14
|
+
1. B2C Order Remark
|
|
13
15
|
</div>
|
|
14
16
|
<div>
|
|
15
|
-
2.
|
|
17
|
+
2. Mark Missing Inventory
|
|
16
18
|
</div>
|
|
17
19
|
<div>
|
|
18
|
-
3.
|
|
20
|
+
3. Outbound Draft Order
|
|
19
21
|
</div>
|
|
20
22
|
<div>
|
|
21
|
-
4.
|
|
23
|
+
4. Loosen Restriction in Inventory Adjustment
|
|
22
24
|
</div>
|
|
23
25
|
<div>
|
|
24
26
|
5. Bug fixes and API updates!
|
|
25
27
|
</div>
|
|
26
28
|
<br>
|
|
27
|
-
https://bit.ly/
|
|
29
|
+
https://bit.ly/220424_Hatio_Release
|
|
28
30
|
<br>
|
|
29
31
|
|
|
30
32
|
Should you have any inquiry, feel free to contact support@hatio.asia!
|
|
31
33
|
<br>
|
|
32
|
-
Stay safe and positively negative!
|
|
34
|
+
With pleasure, we wish you Selamat Hari Raya Aidilfitri in advance. Stay safe and positively negative!
|
|
33
35
|
|
|
34
36
|
<br>
|
|
35
37
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/operato-wms",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.2",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -63,60 +63,60 @@
|
|
|
63
63
|
"@operato/scene-tab": "^0.1.6",
|
|
64
64
|
"@operato/scene-table": "^0.1.6",
|
|
65
65
|
"@operato/scene-wheel-sorter": "^0.1.6",
|
|
66
|
-
"@things-factory/apptool-ui": "^4.3.
|
|
67
|
-
"@things-factory/attachment-ui": "^4.3.
|
|
68
|
-
"@things-factory/auth-ui": "^4.3.
|
|
69
|
-
"@things-factory/barcode-ui": "^4.3.
|
|
70
|
-
"@things-factory/biz-ui": "^4.3.
|
|
71
|
-
"@things-factory/board-service": "^4.3.
|
|
72
|
-
"@things-factory/board-ui": "^4.3.
|
|
73
|
-
"@things-factory/code-ui": "^4.3.
|
|
74
|
-
"@things-factory/context-ui": "^4.3.
|
|
75
|
-
"@things-factory/export-ui": "^4.3.
|
|
76
|
-
"@things-factory/export-ui-csv": "^4.3.
|
|
77
|
-
"@things-factory/export-ui-excel": "^4.3.
|
|
78
|
-
"@things-factory/fav-base": "^4.3.
|
|
79
|
-
"@things-factory/form-ui": "^4.3.
|
|
80
|
-
"@things-factory/grist-ui": "^4.3.
|
|
81
|
-
"@things-factory/help": "^4.3.
|
|
82
|
-
"@things-factory/i18n-base": "^4.3.
|
|
83
|
-
"@things-factory/id-rule-base": "^4.3.
|
|
84
|
-
"@things-factory/import-ui": "^4.3.
|
|
85
|
-
"@things-factory/import-ui-excel": "^4.3.
|
|
86
|
-
"@things-factory/menu-ui": "^4.3.
|
|
87
|
-
"@things-factory/more-ui": "^4.3.
|
|
88
|
-
"@things-factory/notification": "^4.3.
|
|
89
|
-
"@things-factory/pdf": "^4.3.
|
|
90
|
-
"@things-factory/print-proxy-service": "^4.3.
|
|
91
|
-
"@things-factory/print-service": "^4.3.
|
|
92
|
-
"@things-factory/print-ui": "^4.3.
|
|
93
|
-
"@things-factory/product-base": "^4.3.
|
|
94
|
-
"@things-factory/resource-ui": "^4.3.
|
|
95
|
-
"@things-factory/sales-ui": "^4.3.
|
|
96
|
-
"@things-factory/scene-data-transform": "^4.3.
|
|
97
|
-
"@things-factory/scene-excel": "^4.3.
|
|
98
|
-
"@things-factory/scene-firebase": "^4.3.
|
|
99
|
-
"@things-factory/scene-form": "^4.3.
|
|
100
|
-
"@things-factory/scene-google-map": "^4.3.
|
|
101
|
-
"@things-factory/scene-graphql": "^4.3.
|
|
102
|
-
"@things-factory/scene-label": "^4.3.
|
|
103
|
-
"@things-factory/scene-marker": "^4.3.
|
|
104
|
-
"@things-factory/scene-mqtt": "^4.3.
|
|
105
|
-
"@things-factory/scene-restful": "^4.3.
|
|
106
|
-
"@things-factory/scene-visualizer": "^4.3.
|
|
107
|
-
"@things-factory/setting-ui": "^4.3.
|
|
108
|
-
"@things-factory/system-ui": "^4.3.
|
|
109
|
-
"@things-factory/transport-base": "^4.3.
|
|
110
|
-
"@things-factory/tutorial-ui": "^4.3.
|
|
111
|
-
"@things-factory/warehouse-base": "^4.3.
|
|
112
|
-
"@things-factory/worksheet-base": "^4.3.
|
|
66
|
+
"@things-factory/apptool-ui": "^4.3.2",
|
|
67
|
+
"@things-factory/attachment-ui": "^4.3.2",
|
|
68
|
+
"@things-factory/auth-ui": "^4.3.2",
|
|
69
|
+
"@things-factory/barcode-ui": "^4.3.2",
|
|
70
|
+
"@things-factory/biz-ui": "^4.3.2",
|
|
71
|
+
"@things-factory/board-service": "^4.3.2",
|
|
72
|
+
"@things-factory/board-ui": "^4.3.2",
|
|
73
|
+
"@things-factory/code-ui": "^4.3.2",
|
|
74
|
+
"@things-factory/context-ui": "^4.3.2",
|
|
75
|
+
"@things-factory/export-ui": "^4.3.2",
|
|
76
|
+
"@things-factory/export-ui-csv": "^4.3.2",
|
|
77
|
+
"@things-factory/export-ui-excel": "^4.3.2",
|
|
78
|
+
"@things-factory/fav-base": "^4.3.2",
|
|
79
|
+
"@things-factory/form-ui": "^4.3.2",
|
|
80
|
+
"@things-factory/grist-ui": "^4.3.2",
|
|
81
|
+
"@things-factory/help": "^4.3.2",
|
|
82
|
+
"@things-factory/i18n-base": "^4.3.2",
|
|
83
|
+
"@things-factory/id-rule-base": "^4.3.2",
|
|
84
|
+
"@things-factory/import-ui": "^4.3.2",
|
|
85
|
+
"@things-factory/import-ui-excel": "^4.3.2",
|
|
86
|
+
"@things-factory/menu-ui": "^4.3.2",
|
|
87
|
+
"@things-factory/more-ui": "^4.3.2",
|
|
88
|
+
"@things-factory/notification": "^4.3.2",
|
|
89
|
+
"@things-factory/pdf": "^4.3.2",
|
|
90
|
+
"@things-factory/print-proxy-service": "^4.3.2",
|
|
91
|
+
"@things-factory/print-service": "^4.3.2",
|
|
92
|
+
"@things-factory/print-ui": "^4.3.2",
|
|
93
|
+
"@things-factory/product-base": "^4.3.2",
|
|
94
|
+
"@things-factory/resource-ui": "^4.3.2",
|
|
95
|
+
"@things-factory/sales-ui": "^4.3.2",
|
|
96
|
+
"@things-factory/scene-data-transform": "^4.3.2",
|
|
97
|
+
"@things-factory/scene-excel": "^4.3.2",
|
|
98
|
+
"@things-factory/scene-firebase": "^4.3.2",
|
|
99
|
+
"@things-factory/scene-form": "^4.3.2",
|
|
100
|
+
"@things-factory/scene-google-map": "^4.3.2",
|
|
101
|
+
"@things-factory/scene-graphql": "^4.3.2",
|
|
102
|
+
"@things-factory/scene-label": "^4.3.2",
|
|
103
|
+
"@things-factory/scene-marker": "^4.3.2",
|
|
104
|
+
"@things-factory/scene-mqtt": "^4.3.2",
|
|
105
|
+
"@things-factory/scene-restful": "^4.3.2",
|
|
106
|
+
"@things-factory/scene-visualizer": "^4.3.2",
|
|
107
|
+
"@things-factory/setting-ui": "^4.3.2",
|
|
108
|
+
"@things-factory/system-ui": "^4.3.2",
|
|
109
|
+
"@things-factory/transport-base": "^4.3.2",
|
|
110
|
+
"@things-factory/tutorial-ui": "^4.3.2",
|
|
111
|
+
"@things-factory/warehouse-base": "^4.3.2",
|
|
112
|
+
"@things-factory/worksheet-base": "^4.3.2"
|
|
113
113
|
},
|
|
114
114
|
"devDependencies": {
|
|
115
|
-
"@things-factory/builder": "^4.3.
|
|
115
|
+
"@things-factory/builder": "^4.3.1",
|
|
116
116
|
"cypress": "^9.4.1",
|
|
117
117
|
"cypress-file-upload": "^5.0.8",
|
|
118
118
|
"cypress-localstorage-commands": "^1.6.1",
|
|
119
119
|
"eslint-plugin-cypress": "^2.12.1"
|
|
120
120
|
},
|
|
121
|
-
"gitHead": "
|
|
121
|
+
"gitHead": "d73cbd8a8f1e3cff5d9bbbddec1ce520d0392def"
|
|
122
122
|
}
|
package/server/entities/index.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import { WarehouseBizplaceOnhandInventory } from './warehouse-bizplace-onhand-inventory'
|
|
2
2
|
|
|
3
|
-
export
|
|
3
|
+
export const entities = [WarehouseBizplaceOnhandInventory]
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { ViewColumn, ViewEntity } from 'typeorm'
|
|
2
|
+
|
|
3
|
+
@ViewEntity({
|
|
4
|
+
expression: `
|
|
5
|
+
select d.name as "domainName", b.name as "bizplaceName", src.* from (
|
|
6
|
+
WITH oi as (
|
|
7
|
+
select
|
|
8
|
+
oi.domain_id,
|
|
9
|
+
oi.bizplace_id,
|
|
10
|
+
SUM(oi.release_qty) AS release_qty,
|
|
11
|
+
SUM(oi.release_uom_value) AS release_uom_value,
|
|
12
|
+
oi.batch_id,
|
|
13
|
+
oi.batch_id_ref,
|
|
14
|
+
oi.product_id,
|
|
15
|
+
oi.packing_type,
|
|
16
|
+
oi.packing_size,
|
|
17
|
+
oi.uom
|
|
18
|
+
FROM
|
|
19
|
+
order_inventories oi
|
|
20
|
+
WHERE
|
|
21
|
+
(oi.status = 'PENDING' or oi.status = 'PENDING_RECEIVE' or oi.status = 'PENDING_WORKSHEET' or oi.status = 'PENDING_SPLIT')
|
|
22
|
+
AND oi.batch_id NOTNULL
|
|
23
|
+
AND oi.product_id NOTNULL
|
|
24
|
+
AND oi.packing_type NOTNULL
|
|
25
|
+
AND oi.packing_size NOTNULL
|
|
26
|
+
AND oi.inventory_id IS NULL
|
|
27
|
+
GROUP BY
|
|
28
|
+
oi.domain_id,
|
|
29
|
+
oi.bizplace_id,
|
|
30
|
+
oi.batch_id,
|
|
31
|
+
oi.batch_id_ref,
|
|
32
|
+
oi.product_id,
|
|
33
|
+
oi.packing_type,
|
|
34
|
+
oi.packing_size,
|
|
35
|
+
oi.uom
|
|
36
|
+
)
|
|
37
|
+
-- SINGLE ITEM INVENTORY QUERY
|
|
38
|
+
select
|
|
39
|
+
i.domain_id as "domainId",
|
|
40
|
+
i.bizplace_id as "bizplaceId",
|
|
41
|
+
i.packing_type as "packingType",
|
|
42
|
+
i.packing_size as "packingSize",
|
|
43
|
+
i.uom,
|
|
44
|
+
i.product_id as "productId",
|
|
45
|
+
null as "productBundleId",
|
|
46
|
+
COALESCE(SUM(COALESCE(i.qty, 0)) - SUM(COALESCE(i.locked_qty, 0)) - MAX(COALESCE(oi.release_qty, 0))) AS "remainQty",
|
|
47
|
+
COALESCE(SUM(COALESCE(i.uom_value, 0)) - SUM(COALESCE(i.locked_uom_value, 0)) - MAX(COALESCE(oi.release_uom_value, 0)), 0) AS "remainUomValue",
|
|
48
|
+
'SINGLE' AS "groupType"
|
|
49
|
+
FROM inventories i
|
|
50
|
+
INNER JOIN locations l2 ON i.location_id = l2.id AND i.domain_id = l2.domain_id AND l2.type NOT IN ('QUARANTINE', 'RESERVE')
|
|
51
|
+
LEFT JOIN oi ON i.batch_id = oi.batch_id AND i.product_id = oi.product_id AND i.packing_type = oi.packing_type AND i.packing_size = oi.packing_size AND i.uom = oi.uom
|
|
52
|
+
WHERE i.status = 'STORED'
|
|
53
|
+
GROUP by
|
|
54
|
+
i.domain_id,
|
|
55
|
+
i.bizplace_id,
|
|
56
|
+
i.product_id,
|
|
57
|
+
i.packing_type,
|
|
58
|
+
i.packing_size,
|
|
59
|
+
i.uom
|
|
60
|
+
union all
|
|
61
|
+
-- BUNDLE ITEM INVENTORY QUERY
|
|
62
|
+
SELECT
|
|
63
|
+
pbs.domain_id as "domainId",
|
|
64
|
+
pbs.bizplace_id as "bizplaceId",
|
|
65
|
+
pb.packing_type as "packingType",
|
|
66
|
+
pb.packing_size as "packingSize",
|
|
67
|
+
'UNIT' AS "uom",
|
|
68
|
+
null as "productId",
|
|
69
|
+
pb.id AS "productBundleId",
|
|
70
|
+
COALESCE(MIN(FLOOR(pbs."availableQty")),0) AS "remainQty",
|
|
71
|
+
COALESCE(MIN(FLOOR(pbs."availableUomValue")),0) AS "remainUomValue",
|
|
72
|
+
'BUNDLE' AS "groupType"
|
|
73
|
+
FROM product_bundles pb
|
|
74
|
+
INNER JOIN (
|
|
75
|
+
SELECT i.domain_id, i.bizplace_id, pbs.product_id, pbs.product_bundle_id, min(pbs.bundle_qty),
|
|
76
|
+
(SUM(COALESCE(i.qty, 0)) - SUM(COALESCE(i.locked_qty, 0)) - MAX(COALESCE(oi.release_qty, 0))) / min(pbs.bundle_qty) AS "availableQty",
|
|
77
|
+
(SUM(COALESCE(i.uom_value, 0)) - SUM(COALESCE(i.locked_uom_value, 0)) - MAX(COALESCE(oi.release_uom_value, 0))) / min(pbs.bundle_qty) AS "availableUomValue"
|
|
78
|
+
FROM product_bundle_settings pbs
|
|
79
|
+
LEFT JOIN inventories i ON i.product_id = pbs.product_id AND i.status = 'STORED'
|
|
80
|
+
INNER JOIN locations l ON i.location_id = l.id AND i.domain_id = l.domain_id AND l.type NOT IN ('QUARANTINE', 'RESERVE')
|
|
81
|
+
LEFT JOIN oi ON oi.product_id = i.product_id
|
|
82
|
+
GROUP by
|
|
83
|
+
i.domain_id,
|
|
84
|
+
i.bizplace_id,
|
|
85
|
+
pbs.product_id,
|
|
86
|
+
pbs.product_bundle_id
|
|
87
|
+
) pbs ON pbs.product_bundle_id = pb.id
|
|
88
|
+
GROUP BY
|
|
89
|
+
pbs.domain_id,
|
|
90
|
+
pbs.bizplace_id,
|
|
91
|
+
pb.packing_type,
|
|
92
|
+
pb.packing_size,
|
|
93
|
+
pb.name,
|
|
94
|
+
pb.sku,
|
|
95
|
+
pb.id
|
|
96
|
+
)
|
|
97
|
+
AS src
|
|
98
|
+
inner join domains d on d.id = src."domainId"
|
|
99
|
+
inner join bizplaces b on b.id = src."bizplaceId"
|
|
100
|
+
where src."remainQty" > 0
|
|
101
|
+
order by src."domainId"
|
|
102
|
+
`
|
|
103
|
+
})
|
|
104
|
+
|
|
105
|
+
export class WarehouseBizplaceOnhandInventory {
|
|
106
|
+
@ViewColumn()
|
|
107
|
+
domainName: string
|
|
108
|
+
|
|
109
|
+
@ViewColumn()
|
|
110
|
+
bizplaceName: string
|
|
111
|
+
|
|
112
|
+
@ViewColumn()
|
|
113
|
+
domainId: string
|
|
114
|
+
|
|
115
|
+
@ViewColumn()
|
|
116
|
+
bizplaceId: string
|
|
117
|
+
|
|
118
|
+
@ViewColumn()
|
|
119
|
+
packingType: string
|
|
120
|
+
|
|
121
|
+
@ViewColumn()
|
|
122
|
+
packingSize: number
|
|
123
|
+
|
|
124
|
+
@ViewColumn()
|
|
125
|
+
uom: string
|
|
126
|
+
|
|
127
|
+
@ViewColumn()
|
|
128
|
+
productId: string
|
|
129
|
+
|
|
130
|
+
@ViewColumn()
|
|
131
|
+
productBundleId: string
|
|
132
|
+
|
|
133
|
+
@ViewColumn()
|
|
134
|
+
remainQty: number
|
|
135
|
+
|
|
136
|
+
@ViewColumn()
|
|
137
|
+
remainUomValue: number
|
|
138
|
+
|
|
139
|
+
@ViewColumn()
|
|
140
|
+
groupType: string
|
|
141
|
+
}
|
|
@@ -13,7 +13,8 @@ import {
|
|
|
13
13
|
PRODUCT_LABEL_SETTING_KEY,
|
|
14
14
|
REUSABLE_PALLET_LABEL_SETTING_KEY,
|
|
15
15
|
INTENALIZED_AWB_SETTING_KEY,
|
|
16
|
-
ROUTE_LABEL_SETTING_KEY
|
|
16
|
+
ROUTE_LABEL_SETTING_KEY,
|
|
17
|
+
TOTE_LABEL_SETTING_KEY
|
|
17
18
|
} from '../../../opa-app-setting-constants'
|
|
18
19
|
|
|
19
20
|
export const boardSettingsResolver = {
|
|
@@ -46,7 +47,8 @@ export const boardSettingsResolver = {
|
|
|
46
47
|
HOME_BOARD,
|
|
47
48
|
CARTON_LABEL_SETTING_KEY,
|
|
48
49
|
INTENALIZED_AWB_SETTING_KEY,
|
|
49
|
-
ROUTE_LABEL_SETTING_KEY
|
|
50
|
+
ROUTE_LABEL_SETTING_KEY,
|
|
51
|
+
TOTE_LABEL_SETTING_KEY
|
|
50
52
|
]
|
|
51
53
|
|
|
52
54
|
var qb = queryBuilder
|
|
@@ -7,6 +7,7 @@ import * as OpaMenu from './opa-menu'
|
|
|
7
7
|
import * as Reports from './reports'
|
|
8
8
|
import * as InventoryComparison from './inventory-comparison'
|
|
9
9
|
import * as ShippingProviders from './shipping-provider'
|
|
10
|
+
import * as WarehouseInventoryAdjustment from './warehouse-inventory-adjustment'
|
|
10
11
|
|
|
11
12
|
export const queries = [
|
|
12
13
|
BoardSetting.Query,
|
|
@@ -16,7 +17,7 @@ export const queries = [
|
|
|
16
17
|
OpaMenu.Query,
|
|
17
18
|
Reports.Query,
|
|
18
19
|
InventoryComparison.Query,
|
|
19
|
-
ShippingProviders.Query
|
|
20
|
+
ShippingProviders.Query,
|
|
20
21
|
]
|
|
21
22
|
|
|
22
|
-
export const mutations = [Extra.Mutation]
|
|
23
|
+
export const mutations = [Extra.Mutation,WarehouseInventoryAdjustment.Mutation]
|
|
@@ -54,11 +54,13 @@ export const outboundOrderDetailsReport = {
|
|
|
54
54
|
`
|
|
55
55
|
create temp table temp_outbound_order_report on commit drop as (
|
|
56
56
|
select * from (
|
|
57
|
-
select oi.id, '${bizplace.id}' AS "bizplace_id", '${bizplace.name}' AS "bizplace_name", '${
|
|
57
|
+
select oi.id, '${bizplace.id}' AS "bizplace_id", '${bizplace.name}' AS "bizplace_name", '${
|
|
58
|
+
bizplace.description
|
|
59
|
+
}' AS "bizplace_description",
|
|
58
60
|
do2.name AS "delivery_order_no", do2.delivery_date as "delivery_order_date",
|
|
59
61
|
do2."to", do2.contact_point_ref_id,
|
|
60
62
|
rg.name AS "ro_no", rg."type" as "ro_type", rg.ref_no AS "ref_no_1", rg.ref_no_2 AS "ref_no_2", rg.ref_no_3 AS "ref_no_3", rg.status as "ro_status",
|
|
61
|
-
rg.created_at AS "order_created_at", rg.accepted_at, u4.name as accepted_by,
|
|
63
|
+
rg.created_at AS "order_created_at", rg.accepted_at, u4.name as accepted_by, rg.checked_remark_by, rg.checked_remark_at,
|
|
62
64
|
p.id as "product_id", p.sku as "product_sku", p.name AS "product_name", p.description AS "product_description", p.type as "product_type",
|
|
63
65
|
i.packing_type as "pack_type", i.packing_size as "pack_size", oi.release_qty AS "release_qty",
|
|
64
66
|
oi.picked_at, oi.picked_by, oi.packed_at, oi.packed_by, oi.loaded_at, oi.loaded_by, oi.shipped_at,
|
|
@@ -188,6 +190,8 @@ export const outboundOrderDetailsReport = {
|
|
|
188
190
|
pickedBy: itm.picked_by,
|
|
189
191
|
packedAt: itm.packed_at,
|
|
190
192
|
packedBy: itm.packed_by,
|
|
193
|
+
checkedRemarkBy: itm.checked_remark_by,
|
|
194
|
+
checkedRemarkAt: itm.checked_remark_at,
|
|
191
195
|
loadedAt: itm.loaded_at,
|
|
192
196
|
loadedBy: itm.loaded_by,
|
|
193
197
|
shippedAt: itm.shipped_at
|
package/server/graphql/resolvers/warehouse-inventory-adjustment/warehouse-intentory-adjustment.ts
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { EntityManager } from 'typeorm'
|
|
2
|
+
import { InventoryChange, approveInventoryChanges } from '@things-factory/warehouse-base'
|
|
3
|
+
import { In, Not, IsNull } from 'typeorm'
|
|
4
|
+
import { OrderInventory } from '@things-factory/sales-base'
|
|
5
|
+
import { WorksheetDetail } from '@things-factory/worksheet-base'
|
|
6
|
+
|
|
7
|
+
export const warehouseInventoryAdjustment = {
|
|
8
|
+
async warehouseInventoryAdjustment(_: any, { patches }, context: any) {
|
|
9
|
+
try {
|
|
10
|
+
const item = await approveInventoryChanges(patches, context)
|
|
11
|
+
|
|
12
|
+
// Retrieve order inventory
|
|
13
|
+
const { tx }: { tx: EntityManager } = context.state
|
|
14
|
+
|
|
15
|
+
const _inventoryChanges = await tx.getRepository(InventoryChange).find({
|
|
16
|
+
where: { id: In(patches.map(item => item.id)) },
|
|
17
|
+
relations: [
|
|
18
|
+
'inventory',
|
|
19
|
+
'inventory.bizplace',
|
|
20
|
+
'inventory.bizplace.domain',
|
|
21
|
+
'inventory.product',
|
|
22
|
+
'inventory.location',
|
|
23
|
+
'inventory.warehouse',
|
|
24
|
+
'bizplace',
|
|
25
|
+
'bizplace.domain',
|
|
26
|
+
'bizplace.company',
|
|
27
|
+
'bizplace.company.domain',
|
|
28
|
+
'product',
|
|
29
|
+
'product.productDetails',
|
|
30
|
+
'product.productDetails.childProductDetail',
|
|
31
|
+
'location'
|
|
32
|
+
],
|
|
33
|
+
order: {
|
|
34
|
+
createdAt: 'ASC'
|
|
35
|
+
}
|
|
36
|
+
})
|
|
37
|
+
|
|
38
|
+
if (_inventoryChanges.length > 0) {
|
|
39
|
+
const invId: any[] = _inventoryChanges
|
|
40
|
+
.filter((ic: any) => ic.transactionType == 'MISSING')
|
|
41
|
+
.map((ic: any) => ic.inventory.id)
|
|
42
|
+
|
|
43
|
+
const orderInventory: OrderInventory[] = await tx.getRepository(OrderInventory).find({
|
|
44
|
+
where: { inventory: In(invId), status: 'PICKING' }
|
|
45
|
+
})
|
|
46
|
+
|
|
47
|
+
await tx.getRepository(OrderInventory).update(
|
|
48
|
+
{
|
|
49
|
+
inventory: In(invId),status:"PICKING"
|
|
50
|
+
},
|
|
51
|
+
{ status: 'MISSING' }
|
|
52
|
+
)
|
|
53
|
+
|
|
54
|
+
const orderInvId: any[] = orderInventory.map((oi: any) => oi.id)
|
|
55
|
+
|
|
56
|
+
await tx.getRepository(WorksheetDetail).update(
|
|
57
|
+
{
|
|
58
|
+
targetInventory: In(orderInvId),status:"EXECUTING"
|
|
59
|
+
},
|
|
60
|
+
{ status: 'MISSING' }
|
|
61
|
+
)
|
|
62
|
+
}
|
|
63
|
+
return item
|
|
64
|
+
} catch (error) {
|
|
65
|
+
throw error
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
@@ -7,7 +7,7 @@ import * as OpaMenu from './opa-menu'
|
|
|
7
7
|
import * as Reports from './reports'
|
|
8
8
|
import * as InventoryComparison from './inventory-comparison'
|
|
9
9
|
import * as ShippingProvider from './shipping-provider'
|
|
10
|
-
|
|
10
|
+
import * as WarehouseInventory from './warehouse-inventory-adjustment'
|
|
11
11
|
export const queries = [
|
|
12
12
|
BoardSetting.Query,
|
|
13
13
|
CustomElccl.Query,
|
|
@@ -16,10 +16,10 @@ export const queries = [
|
|
|
16
16
|
OpaMenu.Query,
|
|
17
17
|
Reports.Query,
|
|
18
18
|
InventoryComparison.Query,
|
|
19
|
-
ShippingProvider.Query
|
|
19
|
+
ShippingProvider.Query,
|
|
20
20
|
]
|
|
21
21
|
|
|
22
|
-
export const mutations = [Extra.Mutation]
|
|
22
|
+
export const mutations = [Extra.Mutation,WarehouseInventory.Mutation]
|
|
23
23
|
|
|
24
24
|
export const types = [
|
|
25
25
|
...BoardSetting.Types,
|
|
@@ -28,5 +28,5 @@ export const types = [
|
|
|
28
28
|
...OpaMenu.Types,
|
|
29
29
|
...Reports.Types,
|
|
30
30
|
...InventoryComparison.Types,
|
|
31
|
-
...ShippingProvider.Types
|
|
31
|
+
...ShippingProvider.Types,
|
|
32
32
|
]
|