@things-factory/operato-wms 4.3.2 → 4.3.5
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/dist-server/entities/warehouse-bizplace-onhand-inventory.js +7 -1
- package/dist-server/entities/warehouse-bizplace-onhand-inventory.js.map +1 -1
- package/package.json +5 -5
- package/server/entities/warehouse-bizplace-onhand-inventory.ts +7 -1
- package/translations/en.json +1 -0
- package/translations/ko.json +1 -0
- package/translations/ms.json +1 -0
- package/translations/zh.json +1 -0
|
@@ -107,6 +107,8 @@ WarehouseBizplaceOnhandInventory = __decorate([
|
|
|
107
107
|
null as "productBundleId",
|
|
108
108
|
COALESCE(SUM(COALESCE(i.qty, 0)) - SUM(COALESCE(i.locked_qty, 0)) - MAX(COALESCE(oi.release_qty, 0))) AS "remainQty",
|
|
109
109
|
COALESCE(SUM(COALESCE(i.uom_value, 0)) - SUM(COALESCE(i.locked_uom_value, 0)) - MAX(COALESCE(oi.release_uom_value, 0)), 0) AS "remainUomValue",
|
|
110
|
+
COALESCE(sum(COALESCE(i.qty, 0::double precision))) AS "qty",
|
|
111
|
+
COALESCE(sum(COALESCE(i.uom_value, 0::double precision))) AS "uomValue",
|
|
110
112
|
'SINGLE' AS "groupType"
|
|
111
113
|
FROM inventories i
|
|
112
114
|
INNER JOIN locations l2 ON i.location_id = l2.id AND i.domain_id = l2.domain_id AND l2.type NOT IN ('QUARANTINE', 'RESERVE')
|
|
@@ -131,12 +133,16 @@ WarehouseBizplaceOnhandInventory = __decorate([
|
|
|
131
133
|
pb.id AS "productBundleId",
|
|
132
134
|
COALESCE(MIN(FLOOR(pbs."availableQty")),0) AS "remainQty",
|
|
133
135
|
COALESCE(MIN(FLOOR(pbs."availableUomValue")),0) AS "remainUomValue",
|
|
136
|
+
COALESCE(MIN(FLOOR(pbs."qty")), 0::double precision) AS "qty",
|
|
137
|
+
COALESCE(MIN(FLOOR(pbs."uomValue")), 0::double precision) AS "uomValue",
|
|
134
138
|
'BUNDLE' AS "groupType"
|
|
135
139
|
FROM product_bundles pb
|
|
136
140
|
INNER JOIN (
|
|
137
141
|
SELECT i.domain_id, i.bizplace_id, pbs.product_id, pbs.product_bundle_id, min(pbs.bundle_qty),
|
|
138
142
|
(SUM(COALESCE(i.qty, 0)) - SUM(COALESCE(i.locked_qty, 0)) - MAX(COALESCE(oi.release_qty, 0))) / min(pbs.bundle_qty) AS "availableQty",
|
|
139
|
-
(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"
|
|
143
|
+
(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",
|
|
144
|
+
(sum(COALESCE(i.qty, 0::double precision))) / min(pbs.bundle_qty)::double precision AS "qty",
|
|
145
|
+
(sum(COALESCE(i.uom_value, 0::double precision))) / min(pbs.bundle_qty)::double precision AS "uomValue"
|
|
140
146
|
FROM product_bundle_settings pbs
|
|
141
147
|
LEFT JOIN inventories i ON i.product_id = pbs.product_id AND i.status = 'STORED'
|
|
142
148
|
INNER JOIN locations l ON i.location_id = l.id AND i.domain_id = l.domain_id AND l.type NOT IN ('QUARANTINE', 'RESERVE')
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"warehouse-bizplace-onhand-inventory.js","sourceRoot":"","sources":["../../server/entities/warehouse-bizplace-onhand-inventory.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgD;
|
|
1
|
+
{"version":3,"file":"warehouse-bizplace-onhand-inventory.js","sourceRoot":"","sources":["../../server/entities/warehouse-bizplace-onhand-inventory.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgD;AA8GhD,IAAa,gCAAgC,GAA7C,MAAa,gCAAgC;CAoC5C,CAAA;AAlCC;IADC,IAAA,oBAAU,GAAE;;oEACK;AAGlB;IADC,IAAA,oBAAU,GAAE;;sEACO;AAGpB;IADC,IAAA,oBAAU,GAAE;;kEACG;AAGhB;IADC,IAAA,oBAAU,GAAE;;oEACK;AAGlB;IADC,IAAA,oBAAU,GAAE;;qEACM;AAGnB;IADC,IAAA,oBAAU,GAAE;;qEACM;AAGnB;IADC,IAAA,oBAAU,GAAE;;6DACF;AAGX;IADC,IAAA,oBAAU,GAAE;;mEACI;AAGjB;IADC,IAAA,oBAAU,GAAE;;yEACU;AAGvB;IADC,IAAA,oBAAU,GAAE;;mEACI;AAGjB;IADC,IAAA,oBAAU,GAAE;;wEACS;AAGtB;IADC,IAAA,oBAAU,GAAE;;mEACI;AAnCN,gCAAgC;IA5G5C,IAAA,oBAAU,EAAC;QACV,UAAU,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwGX;KACF,CAAC;GAEW,gCAAgC,CAoC5C;AApCY,4EAAgC"}
|
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.5",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"@things-factory/print-ui": "^4.3.2",
|
|
93
93
|
"@things-factory/product-base": "^4.3.2",
|
|
94
94
|
"@things-factory/resource-ui": "^4.3.2",
|
|
95
|
-
"@things-factory/sales-ui": "^4.3.
|
|
95
|
+
"@things-factory/sales-ui": "^4.3.5",
|
|
96
96
|
"@things-factory/scene-data-transform": "^4.3.2",
|
|
97
97
|
"@things-factory/scene-excel": "^4.3.2",
|
|
98
98
|
"@things-factory/scene-firebase": "^4.3.2",
|
|
@@ -108,8 +108,8 @@
|
|
|
108
108
|
"@things-factory/system-ui": "^4.3.2",
|
|
109
109
|
"@things-factory/transport-base": "^4.3.2",
|
|
110
110
|
"@things-factory/tutorial-ui": "^4.3.2",
|
|
111
|
-
"@things-factory/warehouse-base": "^4.3.
|
|
112
|
-
"@things-factory/worksheet-base": "^4.3.
|
|
111
|
+
"@things-factory/warehouse-base": "^4.3.5",
|
|
112
|
+
"@things-factory/worksheet-base": "^4.3.5"
|
|
113
113
|
},
|
|
114
114
|
"devDependencies": {
|
|
115
115
|
"@things-factory/builder": "^4.3.1",
|
|
@@ -118,5 +118,5 @@
|
|
|
118
118
|
"cypress-localstorage-commands": "^1.6.1",
|
|
119
119
|
"eslint-plugin-cypress": "^2.12.1"
|
|
120
120
|
},
|
|
121
|
-
"gitHead": "
|
|
121
|
+
"gitHead": "67b6e7dec5c062108f68b22bcb0b20c67ef61610"
|
|
122
122
|
}
|
|
@@ -45,6 +45,8 @@ import { ViewColumn, ViewEntity } from 'typeorm'
|
|
|
45
45
|
null as "productBundleId",
|
|
46
46
|
COALESCE(SUM(COALESCE(i.qty, 0)) - SUM(COALESCE(i.locked_qty, 0)) - MAX(COALESCE(oi.release_qty, 0))) AS "remainQty",
|
|
47
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
|
+
COALESCE(sum(COALESCE(i.qty, 0::double precision))) AS "qty",
|
|
49
|
+
COALESCE(sum(COALESCE(i.uom_value, 0::double precision))) AS "uomValue",
|
|
48
50
|
'SINGLE' AS "groupType"
|
|
49
51
|
FROM inventories i
|
|
50
52
|
INNER JOIN locations l2 ON i.location_id = l2.id AND i.domain_id = l2.domain_id AND l2.type NOT IN ('QUARANTINE', 'RESERVE')
|
|
@@ -69,12 +71,16 @@ import { ViewColumn, ViewEntity } from 'typeorm'
|
|
|
69
71
|
pb.id AS "productBundleId",
|
|
70
72
|
COALESCE(MIN(FLOOR(pbs."availableQty")),0) AS "remainQty",
|
|
71
73
|
COALESCE(MIN(FLOOR(pbs."availableUomValue")),0) AS "remainUomValue",
|
|
74
|
+
COALESCE(MIN(FLOOR(pbs."qty")), 0::double precision) AS "qty",
|
|
75
|
+
COALESCE(MIN(FLOOR(pbs."uomValue")), 0::double precision) AS "uomValue",
|
|
72
76
|
'BUNDLE' AS "groupType"
|
|
73
77
|
FROM product_bundles pb
|
|
74
78
|
INNER JOIN (
|
|
75
79
|
SELECT i.domain_id, i.bizplace_id, pbs.product_id, pbs.product_bundle_id, min(pbs.bundle_qty),
|
|
76
80
|
(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"
|
|
81
|
+
(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",
|
|
82
|
+
(sum(COALESCE(i.qty, 0::double precision))) / min(pbs.bundle_qty)::double precision AS "qty",
|
|
83
|
+
(sum(COALESCE(i.uom_value, 0::double precision))) / min(pbs.bundle_qty)::double precision AS "uomValue"
|
|
78
84
|
FROM product_bundle_settings pbs
|
|
79
85
|
LEFT JOIN inventories i ON i.product_id = pbs.product_id AND i.status = 'STORED'
|
|
80
86
|
INNER JOIN locations l ON i.location_id = l.id AND i.domain_id = l.domain_id AND l.type NOT IN ('QUARANTINE', 'RESERVE')
|
package/translations/en.json
CHANGED
|
@@ -1100,6 +1100,7 @@
|
|
|
1100
1100
|
"text.do_you_want_to_print": "do you want to print",
|
|
1101
1101
|
"text.do_you_want_to_proceed": "do you want to proceed",
|
|
1102
1102
|
"text.document_has_been_generated": "document has been generated",
|
|
1103
|
+
"text.draft_order_form_invalid": "draft order form invalid",
|
|
1103
1104
|
"text.driver_and_vehicle_is_not_selected": "driver and vehicle is not selected",
|
|
1104
1105
|
"text.driver_is_empty": "driver name is empty",
|
|
1105
1106
|
"text.driver_is_not_selected": "driver is not selected",
|
package/translations/ko.json
CHANGED
|
@@ -1130,6 +1130,7 @@
|
|
|
1130
1130
|
"text.do_you_want_to_print": "인쇄 하시겠습니까?",
|
|
1131
1131
|
"text.do_you_want_to_proceed": "[ko] do you want to proceed",
|
|
1132
1132
|
"text.document_has_been_generated": "[ko] document has been generated",
|
|
1133
|
+
"text.draft_order_form_invalid": "[ko] draft order form invalid",
|
|
1133
1134
|
"text.driver_and_vehicle_is_not_selected": "운송기사와 차량이 선택되지 않았습니다",
|
|
1134
1135
|
"text.driver_is_empty": "[ko] driver name is empty",
|
|
1135
1136
|
"text.driver_is_not_selected": "운송기사가 선택되지 않았습니다",
|
package/translations/ms.json
CHANGED
|
@@ -1099,6 +1099,7 @@
|
|
|
1099
1099
|
"text.do_you_want_to_print": "adakah anda mahu catak",
|
|
1100
1100
|
"text.do_you_want_to_proceed": "[ms] do you want to proceed",
|
|
1101
1101
|
"text.document_has_been_generated": "[ms] document has been generated",
|
|
1102
|
+
"text.draft_order_form_invalid": "[ms] draft order form invalid",
|
|
1102
1103
|
"text.driver_and_vehicle_is_not_selected": "pemandu dan kenderaan belum dipilih",
|
|
1103
1104
|
"text.driver_is_empty": "[ms] driver name is empty",
|
|
1104
1105
|
"text.driver_is_not_selected": "pemandu tidak dipilih",
|
package/translations/zh.json
CHANGED
|
@@ -1067,6 +1067,7 @@
|
|
|
1067
1067
|
"text.do_you_want_to_print": "do you want to print",
|
|
1068
1068
|
"text.do_you_want_to_proceed": "[zh] do you want to proceed",
|
|
1069
1069
|
"text.document_has_been_generated": "[zh] document has been generated",
|
|
1070
|
+
"text.draft_order_form_invalid": "[zh] draft order form invalid",
|
|
1070
1071
|
"text.driver_and_vehicle_is_not_selected": "driver and vehicle is not selected",
|
|
1071
1072
|
"text.driver_is_empty": "[zh] driver name is empty",
|
|
1072
1073
|
"text.driver_is_not_selected": "driver is not selected",
|