@things-factory/operato-wms 4.3.167 → 4.3.168

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, do2.created_at, rih.created_at) as created_at,
22
+ coalesce(grn.created_at, concat(do2.delivery_date, 'T00:00:00.000Z')::timestamp, 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,7 +34,7 @@ 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, do2.created_at, rih.created_at) < $3::timestamp + '1 month' + $4::interval
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
38
  )
39
39
  `, [context.state.domain.id, bizplace.id, month, tzoffset]);
40
40
  await tx.query(`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/operato-wms",
3
- "version": "4.3.167",
3
+ "version": "4.3.168",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -117,5 +117,5 @@
117
117
  "cypress-localstorage-commands": "^1.6.1",
118
118
  "eslint-plugin-cypress": "^2.12.1"
119
119
  },
120
- "gitHead": "dd0370eeefe3491563eddcf7c24117d69f89e714"
120
+ "gitHead": "df41c2c72a32e27184497827a2d6418e88a2c18c"
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, do2.created_at, rih.created_at) as created_at,
28
+ coalesce(grn.created_at, concat(do2.delivery_date, 'T00:00:00.000Z')::timestamp, 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,7 +40,7 @@ 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, do2.created_at, rih.created_at) < $3::timestamp + '1 month' + $4::interval
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
44
  )
45
45
  `,
46
46
  [context.state.domain.id, bizplace.id, month, tzoffset]