@things-factory/operato-wms 4.3.449 → 4.3.452
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/order.js +2 -1
- package/client/pages/inbound/undo-putaway-popup.js +3 -10
- package/client/pages/inventory-check/cycle-count-report.js +9 -3
- package/client/pages/order/draft-release-good/draft-release-good-card.js +292 -0
- package/client/pages/order/draft-release-good/draft-release-good-detail.js +24 -5
- package/client/pages/order/draft-release-good/draft-release-good-list.js +79 -27
- package/client/pages/order/draft-release-good/draft-release-good-popup.js +366 -0
- package/client/pages/order/release-order/b2b/b2b-order-list.js +33 -5
- package/client/pages/order/release-order/b2c/b2c-order-requests.js +12 -0
- package/client/pages/order/release-order/create-release-order.js +63 -27
- package/client/pages/order/release-order/release-order-detail.js +90 -27
- package/client/pages/order/vas-order/popup/order-vas-popup.js +236 -0
- package/client/pages/outbound/worksheet-picking.js +14 -9
- package/client/pages/report/order-vas-report.js +101 -39
- package/client/pages/report/vas-report.js +2 -25
- package/client/pages/vas/add-vas-order-level.js +383 -0
- package/client/pages/vas/vas-execution-page.js +41 -5
- package/client/pages/vas/worksheet-ref-vas.js +20 -18
- package/dist-server/graphql/resolvers/reports/cycle-count-report.js +7 -0
- package/dist-server/graphql/resolvers/reports/cycle-count-report.js.map +1 -1
- package/dist-server/graphql/resolvers/reports/shortage-report.js +3 -2
- package/dist-server/graphql/resolvers/reports/shortage-report.js.map +1 -1
- package/dist-server/graphql/resolvers/reports/vas-report.js +199 -88
- package/dist-server/graphql/resolvers/reports/vas-report.js.map +1 -1
- package/dist-server/graphql/types/reports/cycle-count-report.js +3 -0
- package/dist-server/graphql/types/reports/cycle-count-report.js.map +1 -1
- package/helps/release-note.md +9 -6
- package/package.json +21 -21
- package/server/graphql/resolvers/reports/cycle-count-report.ts +7 -0
- package/server/graphql/resolvers/reports/shortage-report.ts +3 -2
- package/server/graphql/resolvers/reports/vas-report.ts +203 -95
- package/server/graphql/types/reports/cycle-count-report.ts +3 -0
- package/translations/en.json +13 -0
- package/translations/ko.json +13 -0
- package/translations/ms.json +13 -0
- package/translations/zh.json +13 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shortage-report.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/reports/shortage-report.ts"],"names":[],"mappings":";;;AAIa,QAAA,cAAc,GAAG;IAC5B,KAAK,CAAC,cAAc,CAAC,CAAM,EAAE,MAAiB,EAAE,OAAY;QAC1D,IAAI;YACF,MAAM,EAAE,EAAE,EAAE,GAA0B,OAAO,CAAC,KAAK,CAAA;YACnD,IAAI,cAAc,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,CAAA;YAC1D,IAAI,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,KAAK,OAAO,CAAC,CAAA;YAChE,IAAI,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,KAAK,UAAU,CAAC,CAAA;YACtE,IAAI,MAAM,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAA;YAClE,IAAI,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,KAAK,SAAS,CAAC,CAAA;YACpE,IAAI,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,KAAK,SAAS,CAAC,CAAA;YACpE,IAAI,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,KAAK,UAAU,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SACZ;IACH,CAAC;CACF,CAAA"}
|
|
@@ -12,106 +12,211 @@ exports.orderVasReport = {
|
|
|
12
12
|
let orderNo = params.filters.find(data => data.name === 'orderNo');
|
|
13
13
|
let fromDate = params.filters.find(data => data.name === 'fromDate');
|
|
14
14
|
let toDate = params.filters.find(data => data.name === 'toDate');
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
15
|
+
let vasFilter = params.filters.find(data => data.name === 'vass');
|
|
16
|
+
// if (!bizplaceFilter) {
|
|
17
|
+
// throw 'Invalid input'
|
|
18
|
+
// }
|
|
19
|
+
// const bizplace: Bizplace = await tx.getRepository(Bizplace).findOne({
|
|
20
|
+
// id: bizplaceFilter.value
|
|
21
|
+
// })
|
|
22
|
+
// await rawProductsQuery(tx, params, bizplace)
|
|
22
23
|
let extraQueryFilter = '';
|
|
23
24
|
if (productInfo) {
|
|
24
|
-
extraQueryFilter = `${extraQueryFilter}
|
|
25
|
-
old_product_name
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
25
|
+
extraQueryFilter = `${extraQueryFilter} AND (
|
|
26
|
+
old_product_name ILIKE '%${productInfo.value}%'
|
|
27
|
+
OR sku ILIKE '%${productInfo.value}%'
|
|
28
|
+
OR old_p_description ILIKE '%${productInfo.value}%'
|
|
29
|
+
OR old_p_brand ILIKE '%${productInfo.value}%'
|
|
30
|
+
OR old_p_brand_sku ILIKE '%${productInfo.value}%'
|
|
31
|
+
OR new_product_name ILIKE '%${productInfo.value}%'
|
|
32
|
+
OR new_sku ILIKE '%${productInfo.value}%'
|
|
33
|
+
OR new_p_description ILIKE '%${productInfo.value}%'
|
|
34
|
+
OR new_p_brand ILIKE '%${productInfo.value}%'
|
|
35
|
+
OR new_p_brand_sku ILIKE '%${productInfo.value}%'
|
|
35
36
|
) `;
|
|
36
37
|
}
|
|
37
38
|
if (orderNo) {
|
|
38
|
-
extraQueryFilter = `${extraQueryFilter}
|
|
39
|
+
extraQueryFilter = `${extraQueryFilter} AND order_no ILIKE '%${orderNo.value}%' `;
|
|
39
40
|
}
|
|
40
41
|
if (fromDate) {
|
|
41
|
-
extraQueryFilter = `${extraQueryFilter}
|
|
42
|
+
extraQueryFilter = `${extraQueryFilter} AND executed_at >= '%${fromDate.value}%' `;
|
|
42
43
|
}
|
|
43
44
|
if (toDate) {
|
|
44
|
-
extraQueryFilter = `${extraQueryFilter}
|
|
45
|
+
extraQueryFilter = `${extraQueryFilter} AND executed_at <= '%${toDate.value}%' `;
|
|
46
|
+
}
|
|
47
|
+
if (bizplaceFilter) {
|
|
48
|
+
extraQueryFilter = `${extraQueryFilter} AND bizplace_id = '${bizplaceFilter.value}'`;
|
|
49
|
+
}
|
|
50
|
+
if (vasFilter) {
|
|
51
|
+
extraQueryFilter = `${extraQueryFilter} AND vas_id = '${vasFilter.value}'`;
|
|
45
52
|
}
|
|
53
|
+
// (SELECT coalesce(SUM(op.release_qty), 0)
|
|
54
|
+
// FROM order_products op
|
|
55
|
+
// WHERE op.release_good_id = rg.id and p.id = op.product_id and pd.id = op.product_detail_id and op.batch_id = ov.batch_id) as "release_qty",
|
|
56
|
+
// (SELECT coalesce(SUM(ov2.qty), 0)
|
|
57
|
+
// FROM order_vass ov2
|
|
58
|
+
// WHERE ov2.id = ov.id) as "qty",
|
|
59
|
+
// (SELECT coalesce(SUM(ov3.output_qty), 0)
|
|
60
|
+
// FROM order_vass ov3
|
|
61
|
+
// WHERE ov3.id = ov.id) as "output_qty"
|
|
46
62
|
await tx.query(`
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
(
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
63
|
+
CREATE TEMP TABLE temp_vas_order_report ON COMMIT DROP AS (
|
|
64
|
+
SELECT
|
|
65
|
+
*
|
|
66
|
+
FROM
|
|
67
|
+
(
|
|
68
|
+
SELECT
|
|
69
|
+
ov.id AS "order_vas_id",
|
|
70
|
+
ov.name AS "order_vas_name",
|
|
71
|
+
b.id AS "bizplace_id",
|
|
72
|
+
b.name AS "company",
|
|
73
|
+
rg.name AS "order_no",
|
|
74
|
+
rg.ref_no AS "ref_no",
|
|
75
|
+
p.sku AS "sku",
|
|
76
|
+
ov.batch_id AS "batch_no",
|
|
77
|
+
ov.packing_type AS "packing_type",
|
|
78
|
+
ov.uom AS "uom",
|
|
79
|
+
v.id AS "vas_id",
|
|
80
|
+
v.name AS "vas_name",
|
|
81
|
+
v.description AS "vas_description",
|
|
82
|
+
ovi.vas_qty AS "vas_qty",
|
|
83
|
+
p2.sku AS "new_sku",
|
|
84
|
+
ov.new_packing_type AS "new_packing_type",
|
|
85
|
+
ov.new_uom AS "new_uom",
|
|
86
|
+
ov.new_uom_value AS "new_uom_value",
|
|
87
|
+
w.ended_at AS "completion_date",
|
|
88
|
+
p.name AS "old_product_name",
|
|
89
|
+
p.description AS "old_p_description",
|
|
90
|
+
p.brand AS "old_p_brand",
|
|
91
|
+
p.brand_sku AS "old_p_brand_sku",
|
|
92
|
+
p2.name AS "new_product_name",
|
|
93
|
+
p2.description AS "new_p_description",
|
|
94
|
+
p2.brand AS "new_p_brand",
|
|
95
|
+
p2.brand_sku AS "new_p_brand_sku",
|
|
96
|
+
ovi.executed_at AS "executed_at",
|
|
97
|
+
ov.created_at AS "created_at",
|
|
98
|
+
(
|
|
99
|
+
SELECT
|
|
100
|
+
COALESCE(SUM(op.release_qty),
|
|
101
|
+
0)
|
|
102
|
+
FROM
|
|
103
|
+
order_products op
|
|
104
|
+
WHERE
|
|
105
|
+
ov.release_good_id = op.release_good_id
|
|
106
|
+
AND ov.product_id = op.product_id
|
|
107
|
+
AND ov.product_detail_id = op.product_detail_id
|
|
108
|
+
AND op.batch_id = ov.batch_id) AS "release_qty",
|
|
109
|
+
COALESCE(SUM(ov.qty),
|
|
110
|
+
0) AS "qty",
|
|
111
|
+
COALESCE(SUM(ov.output_qty),
|
|
112
|
+
0) AS "output_qty",
|
|
113
|
+
ov.remark AS "vas_remark",
|
|
114
|
+
ovi.vas_remark AS "ovi_remark"
|
|
115
|
+
FROM
|
|
116
|
+
order_vas_items ovi
|
|
117
|
+
INNER JOIN order_vass ov ON
|
|
118
|
+
ovi.order_vas_id = ov.id
|
|
119
|
+
INNER JOIN products p ON
|
|
120
|
+
ov.product_id = p.id
|
|
121
|
+
INNER JOIN product_details pd ON
|
|
122
|
+
pd.id = ov.product_detail_id
|
|
123
|
+
LEFT JOIN products p2 ON
|
|
124
|
+
p2.id = ov.new_product_id
|
|
125
|
+
LEFT JOIN product_details pd2 ON
|
|
126
|
+
pd2.id = ov.new_product_detail_id
|
|
127
|
+
INNER JOIN vass v ON
|
|
128
|
+
v.id = ovi.vas_id
|
|
129
|
+
INNER JOIN release_goods rg ON
|
|
130
|
+
ov.release_good_id = rg.id
|
|
131
|
+
INNER JOIN worksheets w ON
|
|
132
|
+
rg.id = w.release_good_id
|
|
133
|
+
INNER JOIN bizplaces b ON
|
|
134
|
+
b.id = rg.bizplace_id
|
|
135
|
+
WHERE w.type = 'VAS'
|
|
136
|
+
AND ((w.status <> 'CANCELLED'
|
|
137
|
+
AND rg.status NOT IN ('CANCELLED', 'PENDING_CANCEL'))
|
|
138
|
+
OR (ovi.executed_at NOTNULL
|
|
139
|
+
AND rg.status IN ('CANCELLED', 'PENDING_CANCEL')))
|
|
140
|
+
GROUP BY
|
|
141
|
+
ov.id,
|
|
142
|
+
b.id,
|
|
143
|
+
b.name,
|
|
144
|
+
rg.name,
|
|
145
|
+
rg.ref_no,
|
|
146
|
+
p.sku,
|
|
147
|
+
v.id,
|
|
148
|
+
ovi.vas_qty,
|
|
149
|
+
p2.sku,
|
|
150
|
+
w.ended_at,
|
|
151
|
+
p.name,
|
|
152
|
+
p.description,
|
|
153
|
+
p.brand,
|
|
154
|
+
p.brand_sku,
|
|
155
|
+
p2.name,
|
|
156
|
+
p2.description,
|
|
157
|
+
p2.brand,
|
|
158
|
+
p2.brand_sku,
|
|
159
|
+
ovi.executed_at,
|
|
160
|
+
ov.remark,
|
|
161
|
+
ovi.vas_remark
|
|
162
|
+
UNION
|
|
163
|
+
SELECT
|
|
164
|
+
ov.id AS "order_vas_id",
|
|
165
|
+
null AS "order_vas_name",
|
|
166
|
+
b.id AS "bizplace_id",
|
|
167
|
+
b.name AS "company",
|
|
168
|
+
rg.name AS "order_no",
|
|
169
|
+
rg.ref_no AS "ref_no",
|
|
170
|
+
null AS "sku",
|
|
171
|
+
ov.batch_id AS "batch_no",
|
|
172
|
+
ov.packing_type AS "packing_type",
|
|
173
|
+
ov.uom AS "uom",
|
|
174
|
+
v.id AS "vas_id",
|
|
175
|
+
'[Add On] ' || v.name AS "vas_name",
|
|
176
|
+
v.description AS "vas_description",
|
|
177
|
+
ovi.vas_qty AS "vas_qty",
|
|
178
|
+
null AS "new_sku",
|
|
179
|
+
ov.new_packing_type AS "new_packing_type",
|
|
180
|
+
ov.new_uom AS "new_uom",
|
|
181
|
+
ov.new_uom_value AS "new_uom_value",
|
|
182
|
+
null AS "completion_date",
|
|
183
|
+
null AS "old_product_name",
|
|
184
|
+
null AS "old_p_description",
|
|
185
|
+
null AS "old_p_brand",
|
|
186
|
+
null AS "old_p_brand_sku",
|
|
187
|
+
null AS "new_product_name",
|
|
188
|
+
null AS "new_p_description",
|
|
189
|
+
null AS "new_p_brand",
|
|
190
|
+
null AS "new_p_brand_sku",
|
|
191
|
+
ovi.executed_at AS "executed_at",
|
|
192
|
+
ov.created_at AS "created_at",
|
|
193
|
+
null AS "release_qty",
|
|
194
|
+
null AS "qty",
|
|
195
|
+
null AS "output_qty",
|
|
196
|
+
ov.remark AS "vas_remark",
|
|
197
|
+
ovi.vas_remark AS "ovi_remark"
|
|
198
|
+
FROM order_vas_items ovi
|
|
199
|
+
INNER JOIN vass v ON v.id = ovi.vas_id
|
|
200
|
+
INNER JOIN order_vass ov ON ov.id = ovi.order_vas_id
|
|
201
|
+
INNER JOIN release_goods rg ON rg.id = ov.release_good_id
|
|
202
|
+
INNER JOIN bizplaces b ON b.id = rg.bizplace_id
|
|
203
|
+
where ov.batch_id isnull
|
|
204
|
+
AND ov.packing_type isnull
|
|
205
|
+
AND ov.product_id isnull
|
|
206
|
+
AND ov.product_detail_id isnull
|
|
207
|
+
) src
|
|
208
|
+
WHERE
|
|
209
|
+
1 = 1
|
|
105
210
|
${extraQueryFilter}
|
|
106
|
-
|
|
107
|
-
|
|
211
|
+
)
|
|
212
|
+
`);
|
|
108
213
|
const total = await tx.query(`
|
|
109
|
-
|
|
214
|
+
SELECT count(*) FROM temp_vas_order_report
|
|
110
215
|
`);
|
|
111
216
|
const result = await tx.query(`
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
217
|
+
SELECT * FROM temp_vas_order_report
|
|
218
|
+
ORDER BY "order_no" ASC, "created_at" ASC, "order_no", "sku", "batch_no", "order_vas_name"
|
|
219
|
+
`);
|
|
115
220
|
let items = result.map(item => {
|
|
116
221
|
let data = {
|
|
117
222
|
bizplace: {
|
|
@@ -135,12 +240,18 @@ exports.orderVasReport = {
|
|
|
135
240
|
outputQty: item.output_qty,
|
|
136
241
|
product: { sku: item.sku },
|
|
137
242
|
newProduct: { sku: item.new_sku },
|
|
138
|
-
qty: item.qty
|
|
243
|
+
qty: item.qty,
|
|
244
|
+
remark: item.vas_remark
|
|
139
245
|
},
|
|
140
246
|
orderVasItem: {
|
|
141
|
-
vas: {
|
|
247
|
+
vas: {
|
|
248
|
+
id: item.vas_id,
|
|
249
|
+
name: item.vas_name,
|
|
250
|
+
description: item.vas_description
|
|
251
|
+
},
|
|
142
252
|
vasQty: item.vas_qty,
|
|
143
|
-
executedAt: item.executed_at
|
|
253
|
+
executedAt: item.executed_at,
|
|
254
|
+
vasRemark: item.ovi_remark
|
|
144
255
|
},
|
|
145
256
|
orderInventory: {
|
|
146
257
|
releaseQty: item.release_qty
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vas-report.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/reports/vas-report.ts"],"names":[],"mappings":";;;AAEA,uDAAmD;AAGnD,0CAAiD;AAEpC,QAAA,cAAc,GAAG;IAC5B,KAAK,CAAC,cAAc,CAAC,CAAM,EAAE,MAAiB,EAAE,OAAY;QAC1D,IAAI;YACF,MAAM,EAAE,EAAE,EAAE,GAA0B,OAAO,CAAC,KAAK,CAAA;YACnD,IAAI,cAAc,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,UAAU,CAAC,CAAA;YAC1E,IAAI,WAAW,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,aAAa,CAAC,CAAA;YAC1E,IAAI,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAA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K,CAChC;;;WAGG,CACJ,CAAA;YAED,IAAI,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;gBAC5B,IAAI,IAAI,GAAG;oBACT,QAAQ,EAAE;wBACR,IAAI,EAAE,QAAQ,CAAC,IAAI;qBACpB;oBACD,YAAY,EAAE;wBACZ,GAAG,EAAE,EAAE,EAAE,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,QAAQ,EAAE,WAAW,EAAE,IAAI,CAAC,eAAe,EAAE,IAAI,EAAE,IAAI,CAAC,QAAQ,EAAE;wBACrG,MAAM,EAAE,IAAI,CAAC,OAAO;wBACpB,UAAU,EAAE,IAAI,CAAC,WAAW;qBAC7B;iBACF,CAAA;gBAED,OAAO,IAAI,CAAA;YACb,CAAC,CAAC,CAAA;YAEF,OAAO;gBACL,KAAK;gBACL,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK;aACtB,CAAA;SACF;QAAC,OAAO,KAAK,EAAE;YACd,MAAM,KAAK,CAAA;SACZ;IACH,CAAC;CACF,CAAA"}
|
|
@@ -24,6 +24,9 @@ exports.CycleCountReport = (0, graphql_tag_1.default) `
|
|
|
24
24
|
company: String
|
|
25
25
|
partnerDomainId: String
|
|
26
26
|
systemQty: Int
|
|
27
|
+
systemBatchNo: String
|
|
28
|
+
systemLocationName: String
|
|
29
|
+
systemUomValue: Float
|
|
27
30
|
}
|
|
28
31
|
`;
|
|
29
32
|
//# sourceMappingURL=cycle-count-report.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cycle-count-report.js","sourceRoot":"","sources":["../../../../server/graphql/types/reports/cycle-count-report.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA6B;AAEhB,QAAA,gBAAgB,GAAG,IAAA,qBAAG,EAAA
|
|
1
|
+
{"version":3,"file":"cycle-count-report.js","sourceRoot":"","sources":["../../../../server/graphql/types/reports/cycle-count-report.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA6B;AAEhB,QAAA,gBAAgB,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;CAuBlC,CAAA"}
|
package/helps/release-note.md
CHANGED
|
@@ -2,21 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
<div align="center">
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## 15 April Update
|
|
6
6
|
|
|
7
|
-
#### V4.3.
|
|
7
|
+
#### V4.3.450 Release Note
|
|
8
8
|
|
|
9
9
|
#### Greetings to all,
|
|
10
10
|
|
|
11
|
-
#### We
|
|
11
|
+
#### We're excited to announce the launch of our newest updates:
|
|
12
12
|
|
|
13
13
|
<div style="text-align: left; display: inline-block;">
|
|
14
|
-
|
|
14
|
+
<ol>
|
|
15
|
+
<li>VAS Enhancement</li>
|
|
16
|
+
<li>Draft Order Enhancement (Partial Release)</li>
|
|
17
|
+
</ol>
|
|
15
18
|
</div>
|
|
16
19
|
|
|
17
20
|
<br>
|
|
18
|
-
For additional information about the aspects of the release, see the following link
|
|
19
|
-
<a href="https://
|
|
21
|
+
For additional information about the aspects of the release, see the following link
|
|
22
|
+
<a href="https://shorturl.at/qATU6">V4.3.450 Release Note</a>
|
|
20
23
|
<br>
|
|
21
24
|
|
|
22
25
|
Should you have any inquiries, feel free to contact <a href="mailto: support@hatio.asia">support@hatio.asia</a>! Stay safe and positively negative!
|
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.452",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -63,35 +63,35 @@
|
|
|
63
63
|
"@operato/scene-table": "^0.1.8",
|
|
64
64
|
"@operato/scene-wheel-sorter": "^0.1.8",
|
|
65
65
|
"@things-factory/apptool-ui": "^4.3.434",
|
|
66
|
-
"@things-factory/attachment-ui": "^4.3.
|
|
67
|
-
"@things-factory/auth-ui": "^4.3.
|
|
66
|
+
"@things-factory/attachment-ui": "^4.3.452",
|
|
67
|
+
"@things-factory/auth-ui": "^4.3.452",
|
|
68
68
|
"@things-factory/barcode-ui": "^4.3.434",
|
|
69
|
-
"@things-factory/biz-ui": "^4.3.
|
|
70
|
-
"@things-factory/board-service": "^4.3.
|
|
71
|
-
"@things-factory/board-ui": "^4.3.
|
|
72
|
-
"@things-factory/code-ui": "^4.3.
|
|
69
|
+
"@things-factory/biz-ui": "^4.3.452",
|
|
70
|
+
"@things-factory/board-service": "^4.3.452",
|
|
71
|
+
"@things-factory/board-ui": "^4.3.452",
|
|
72
|
+
"@things-factory/code-ui": "^4.3.452",
|
|
73
73
|
"@things-factory/context-ui": "^4.3.434",
|
|
74
74
|
"@things-factory/export-ui": "^4.3.434",
|
|
75
75
|
"@things-factory/export-ui-csv": "^4.3.434",
|
|
76
76
|
"@things-factory/export-ui-excel": "^4.3.434",
|
|
77
|
-
"@things-factory/fav-base": "^4.3.
|
|
77
|
+
"@things-factory/fav-base": "^4.3.452",
|
|
78
78
|
"@things-factory/form-ui": "^4.3.434",
|
|
79
|
-
"@things-factory/geography": "^4.3.
|
|
79
|
+
"@things-factory/geography": "^4.3.452",
|
|
80
80
|
"@things-factory/grist-ui": "^4.3.434",
|
|
81
81
|
"@things-factory/help": "^4.3.434",
|
|
82
82
|
"@things-factory/i18n-base": "^4.3.434",
|
|
83
|
-
"@things-factory/id-rule-base": "^4.3.
|
|
83
|
+
"@things-factory/id-rule-base": "^4.3.452",
|
|
84
84
|
"@things-factory/import-ui": "^4.3.434",
|
|
85
85
|
"@things-factory/import-ui-excel": "^4.3.434",
|
|
86
|
-
"@things-factory/menu-ui": "^4.3.
|
|
86
|
+
"@things-factory/menu-ui": "^4.3.452",
|
|
87
87
|
"@things-factory/more-ui": "^4.3.434",
|
|
88
|
-
"@things-factory/notification": "^4.3.
|
|
88
|
+
"@things-factory/notification": "^4.3.452",
|
|
89
89
|
"@things-factory/pdf": "^4.3.381",
|
|
90
90
|
"@things-factory/print-proxy-service": "^4.3.434",
|
|
91
91
|
"@things-factory/print-ui": "^4.3.434",
|
|
92
|
-
"@things-factory/product-base": "^4.3.
|
|
93
|
-
"@things-factory/resource-ui": "^4.3.
|
|
94
|
-
"@things-factory/sales-ui": "^4.3.
|
|
92
|
+
"@things-factory/product-base": "^4.3.452",
|
|
93
|
+
"@things-factory/resource-ui": "^4.3.452",
|
|
94
|
+
"@things-factory/sales-ui": "^4.3.452",
|
|
95
95
|
"@things-factory/scene-data-transform": "^4.3.381",
|
|
96
96
|
"@things-factory/scene-excel": "^4.3.381",
|
|
97
97
|
"@things-factory/scene-firebase": "^4.3.381",
|
|
@@ -103,12 +103,12 @@
|
|
|
103
103
|
"@things-factory/scene-mqtt": "^4.3.381",
|
|
104
104
|
"@things-factory/scene-restful": "^4.3.381",
|
|
105
105
|
"@things-factory/scene-visualizer": "^4.3.381",
|
|
106
|
-
"@things-factory/setting-ui": "^4.3.
|
|
106
|
+
"@things-factory/setting-ui": "^4.3.452",
|
|
107
107
|
"@things-factory/system-ui": "^4.3.434",
|
|
108
|
-
"@things-factory/transport-base": "^4.3.
|
|
109
|
-
"@things-factory/tutorial-ui": "^4.3.
|
|
110
|
-
"@things-factory/warehouse-base": "^4.3.
|
|
111
|
-
"@things-factory/worksheet-base": "^4.3.
|
|
108
|
+
"@things-factory/transport-base": "^4.3.452",
|
|
109
|
+
"@things-factory/tutorial-ui": "^4.3.452",
|
|
110
|
+
"@things-factory/warehouse-base": "^4.3.452",
|
|
111
|
+
"@things-factory/worksheet-base": "^4.3.452"
|
|
112
112
|
},
|
|
113
113
|
"devDependencies": {
|
|
114
114
|
"@things-factory/builder": "^4.3.381",
|
|
@@ -117,5 +117,5 @@
|
|
|
117
117
|
"cypress-localstorage-commands": "^1.6.1",
|
|
118
118
|
"eslint-plugin-cypress": "^2.12.1"
|
|
119
119
|
},
|
|
120
|
-
"gitHead": "
|
|
120
|
+
"gitHead": "59cbeb74b3c12169baa9e76723e0952b26486d4e"
|
|
121
121
|
}
|
|
@@ -163,6 +163,9 @@ export const cycleCountReport = {
|
|
|
163
163
|
f.*,
|
|
164
164
|
fc.final_count,
|
|
165
165
|
first_count.origin_qty as "system_qty",
|
|
166
|
+
first_count.origin_batch_no as "system_batch_no",
|
|
167
|
+
first_count.origin_location_name as "system_location_name",
|
|
168
|
+
first_count.origin_uom_value as "system_uom_value",
|
|
166
169
|
row_to_json((SELECT cn FROM (SELECT ${jsonColumnNames}) cn))::varchar as "count_data",
|
|
167
170
|
CASE
|
|
168
171
|
WHEN (COALESCE(first_count.origin_batch_no, '') <> COALESCE(f.inspected_batch_no, ''))
|
|
@@ -187,6 +190,7 @@ export const cycleCountReport = {
|
|
|
187
190
|
origin_qty,
|
|
188
191
|
origin_batch_no,
|
|
189
192
|
origin_location_id,
|
|
193
|
+
origin_location_name,
|
|
190
194
|
origin_uom_value
|
|
191
195
|
FROM temp_fixed_columns
|
|
192
196
|
WHERE count_no = 1
|
|
@@ -255,6 +259,9 @@ export const cycleCountReport = {
|
|
|
255
259
|
uom: itm.pd_uom
|
|
256
260
|
},
|
|
257
261
|
systemQty: itm.system_qty,
|
|
262
|
+
systemBatchNo: itm.system_batch_no,
|
|
263
|
+
systemLocationName: itm.system_location_name,
|
|
264
|
+
systemUomValue: itm.system_uom_value,
|
|
258
265
|
originLocationId: itm.origin_location_id,
|
|
259
266
|
inspectedLocationId: itm.inspected_location_id,
|
|
260
267
|
countData: itm.count_data,
|
|
@@ -123,8 +123,9 @@ export const shortageReport = {
|
|
|
123
123
|
i.product_detail_id
|
|
124
124
|
) src ON op.product_id = src.product_id AND op.product_detail_id = src.product_detail_id
|
|
125
125
|
WHERE
|
|
126
|
-
drg.
|
|
127
|
-
AND drg.
|
|
126
|
+
drg.domain_id = $1
|
|
127
|
+
AND (drg.status = 'DRAFT' OR drg.status = 'PARTIAL RELEASED')
|
|
128
|
+
AND op.status = 'DRAFT'
|
|
128
129
|
AND COALESCE(src.av_qty - op.release_qty, 0) <= 0
|
|
129
130
|
AND op.release_qty != COALESCE(src.av_qty, 0)
|
|
130
131
|
AND drg.created_at >= $2
|