@things-factory/operato-wms 4.3.177 → 4.3.178
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.
|
@@ -19,7 +19,7 @@ exports.elcclDailyOrderInventoryReport = {
|
|
|
19
19
|
select rih.pallet_id, rih.seq,
|
|
20
20
|
coalesce(grn.name, do2.name, rih.order_no) as order_no , rih.order_ref_no , an.delivery_order_no as do_ref_no,
|
|
21
21
|
rih.bizplace_id, rih.ref_order_id,
|
|
22
|
-
coalesce(grn.created_at, concat(do2.delivery_date, 'T00:00:00.000Z')::timestamp, rih.created_at) as created_at,
|
|
22
|
+
coalesce(grn.created_at, case when do2.delivery_date is not null then concat(do2.delivery_date, 'T00:00:00.000Z')::timestamp else null end, rih.created_at) as created_at,
|
|
23
23
|
CASE WHEN rih.transaction_type = 'PICKING' THEN COALESCE(-oi.release_qty,rih.qty) ELSE rih.qty END AS qty,
|
|
24
24
|
inv.packing_type, inv.reusable_pallet_id, rih.transaction_type,
|
|
25
25
|
case when rih.status = 'TERMINATED' then rih.status else 'STORED' end as status,
|
|
@@ -34,8 +34,8 @@ exports.elcclDailyOrderInventoryReport = {
|
|
|
34
34
|
left join delivery_orders do2 on do2.id = oi.delivery_order_id
|
|
35
35
|
where ((rih.transaction_type <> 'PUTAWAY' and rih.transaction_type <> 'ADJUSTMENT' and rih.transaction_type <> 'RELOCATE') or rih.qty <> 0)
|
|
36
36
|
and rih.domain_id =$1 and rih.bizplace_id = $2
|
|
37
|
-
and coalesce(grn.created_at, concat(do2.delivery_date, 'T00:00:00.000Z')::timestamp, rih.created_at) < $3::timestamp + '1 month' + $4::interval
|
|
38
|
-
|
|
37
|
+
and coalesce(grn.created_at, case when do2.delivery_date is not null then concat(do2.delivery_date, 'T00:00:00.000Z')::timestamp else null end, rih.created_at) < $3::timestamp + '1 month' + $4::interval
|
|
38
|
+
)
|
|
39
39
|
`, [context.state.domain.id, bizplace.id, month, tzoffset]);
|
|
40
40
|
await tx.query(`
|
|
41
41
|
create temp table temp_invByPallet as (
|
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.178",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"@things-factory/print-ui": "^4.3.176",
|
|
92
92
|
"@things-factory/product-base": "^4.3.176",
|
|
93
93
|
"@things-factory/resource-ui": "^4.3.176",
|
|
94
|
-
"@things-factory/sales-ui": "^4.3.
|
|
94
|
+
"@things-factory/sales-ui": "^4.3.178",
|
|
95
95
|
"@things-factory/scene-data-transform": "^4.3.159",
|
|
96
96
|
"@things-factory/scene-excel": "^4.3.159",
|
|
97
97
|
"@things-factory/scene-firebase": "^4.3.159",
|
|
@@ -107,8 +107,8 @@
|
|
|
107
107
|
"@things-factory/system-ui": "^4.3.176",
|
|
108
108
|
"@things-factory/transport-base": "^4.3.176",
|
|
109
109
|
"@things-factory/tutorial-ui": "^4.3.176",
|
|
110
|
-
"@things-factory/warehouse-base": "^4.3.
|
|
111
|
-
"@things-factory/worksheet-base": "^4.3.
|
|
110
|
+
"@things-factory/warehouse-base": "^4.3.178",
|
|
111
|
+
"@things-factory/worksheet-base": "^4.3.178"
|
|
112
112
|
},
|
|
113
113
|
"devDependencies": {
|
|
114
114
|
"@things-factory/builder": "^4.3.159",
|
|
@@ -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": "f465872c9a3879f5c917fc6e50798cf707f91ec0"
|
|
121
121
|
}
|
|
@@ -25,7 +25,7 @@ export const elcclDailyOrderInventoryReport = {
|
|
|
25
25
|
select rih.pallet_id, rih.seq,
|
|
26
26
|
coalesce(grn.name, do2.name, rih.order_no) as order_no , rih.order_ref_no , an.delivery_order_no as do_ref_no,
|
|
27
27
|
rih.bizplace_id, rih.ref_order_id,
|
|
28
|
-
coalesce(grn.created_at, concat(do2.delivery_date, 'T00:00:00.000Z')::timestamp, rih.created_at) as created_at,
|
|
28
|
+
coalesce(grn.created_at, case when do2.delivery_date is not null then concat(do2.delivery_date, 'T00:00:00.000Z')::timestamp else null end, rih.created_at) as created_at,
|
|
29
29
|
CASE WHEN rih.transaction_type = 'PICKING' THEN COALESCE(-oi.release_qty,rih.qty) ELSE rih.qty END AS qty,
|
|
30
30
|
inv.packing_type, inv.reusable_pallet_id, rih.transaction_type,
|
|
31
31
|
case when rih.status = 'TERMINATED' then rih.status else 'STORED' end as status,
|
|
@@ -40,8 +40,8 @@ export const elcclDailyOrderInventoryReport = {
|
|
|
40
40
|
left join delivery_orders do2 on do2.id = oi.delivery_order_id
|
|
41
41
|
where ((rih.transaction_type <> 'PUTAWAY' and rih.transaction_type <> 'ADJUSTMENT' and rih.transaction_type <> 'RELOCATE') or rih.qty <> 0)
|
|
42
42
|
and rih.domain_id =$1 and rih.bizplace_id = $2
|
|
43
|
-
and coalesce(grn.created_at, concat(do2.delivery_date, 'T00:00:00.000Z')::timestamp, rih.created_at) < $3::timestamp + '1 month' + $4::interval
|
|
44
|
-
|
|
43
|
+
and coalesce(grn.created_at, case when do2.delivery_date is not null then concat(do2.delivery_date, 'T00:00:00.000Z')::timestamp else null end, rih.created_at) < $3::timestamp + '1 month' + $4::interval
|
|
44
|
+
)
|
|
45
45
|
`,
|
|
46
46
|
[context.state.domain.id, bizplace.id, month, tzoffset]
|
|
47
47
|
)
|