@things-factory/operato-wms 4.3.177 → 4.3.179

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.
@@ -1766,14 +1766,26 @@ class CreateArrivalNotice extends localize(i18next)(PageView) {
1766
1766
  records = records
1767
1767
  .filter(record => record.productSKU)
1768
1768
  .map(record => {
1769
- record.unitPrice =
1770
- record.unitPrice == null && record.unitPrice !== undefined
1771
- ? '0.00'
1772
- : record.unitPrice === undefined
1773
- ? null
1774
- : parseFloat(record.unitPrice).toFixed(2)
1775
1769
  return {
1776
- ...record
1770
+ ...record,
1771
+ unitPrice:
1772
+ record.unitPrice == null && record.unitPrice !== undefined
1773
+ ? '0.00'
1774
+ : record.unitPrice === undefined
1775
+ ? null
1776
+ : parseFloat(record.unitPrice).toFixed(2),
1777
+ packQty:
1778
+ record.packQty == null && record.packQty !== undefined
1779
+ ? '0'
1780
+ : record.packQty === undefined
1781
+ ? null
1782
+ : parseInt(record.packQty),
1783
+ palletQty:
1784
+ record.palletQty == null && record.palletQty !== undefined
1785
+ ? '0'
1786
+ : record.palletQty === undefined
1787
+ ? null
1788
+ : parseInt(record.palletQty)
1777
1789
  }
1778
1790
  })
1779
1791
 
@@ -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.177",
3
+ "version": "4.3.179",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -62,60 +62,60 @@
62
62
  "@operato/scene-tab": "^0.1.8",
63
63
  "@operato/scene-table": "^0.1.8",
64
64
  "@operato/scene-wheel-sorter": "^0.1.8",
65
- "@things-factory/apptool-ui": "^4.3.176",
66
- "@things-factory/attachment-ui": "^4.3.176",
67
- "@things-factory/auth-ui": "^4.3.176",
68
- "@things-factory/barcode-ui": "^4.3.176",
69
- "@things-factory/biz-ui": "^4.3.176",
70
- "@things-factory/board-service": "^4.3.176",
71
- "@things-factory/board-ui": "^4.3.176",
72
- "@things-factory/code-ui": "^4.3.176",
73
- "@things-factory/context-ui": "^4.3.176",
74
- "@things-factory/export-ui": "^4.3.176",
75
- "@things-factory/export-ui-csv": "^4.3.176",
76
- "@things-factory/export-ui-excel": "^4.3.176",
77
- "@things-factory/fav-base": "^4.3.176",
78
- "@things-factory/form-ui": "^4.3.176",
79
- "@things-factory/geography": "^4.3.176",
80
- "@things-factory/grist-ui": "^4.3.176",
81
- "@things-factory/help": "^4.3.176",
82
- "@things-factory/i18n-base": "^4.3.176",
83
- "@things-factory/id-rule-base": "^4.3.176",
84
- "@things-factory/import-ui": "^4.3.176",
85
- "@things-factory/import-ui-excel": "^4.3.176",
86
- "@things-factory/menu-ui": "^4.3.176",
87
- "@things-factory/more-ui": "^4.3.176",
88
- "@things-factory/notification": "^4.3.176",
65
+ "@things-factory/apptool-ui": "^4.3.179",
66
+ "@things-factory/attachment-ui": "^4.3.179",
67
+ "@things-factory/auth-ui": "^4.3.179",
68
+ "@things-factory/barcode-ui": "^4.3.179",
69
+ "@things-factory/biz-ui": "^4.3.179",
70
+ "@things-factory/board-service": "^4.3.179",
71
+ "@things-factory/board-ui": "^4.3.179",
72
+ "@things-factory/code-ui": "^4.3.179",
73
+ "@things-factory/context-ui": "^4.3.179",
74
+ "@things-factory/export-ui": "^4.3.179",
75
+ "@things-factory/export-ui-csv": "^4.3.179",
76
+ "@things-factory/export-ui-excel": "^4.3.179",
77
+ "@things-factory/fav-base": "^4.3.179",
78
+ "@things-factory/form-ui": "^4.3.179",
79
+ "@things-factory/geography": "^4.3.179",
80
+ "@things-factory/grist-ui": "^4.3.179",
81
+ "@things-factory/help": "^4.3.179",
82
+ "@things-factory/i18n-base": "^4.3.179",
83
+ "@things-factory/id-rule-base": "^4.3.179",
84
+ "@things-factory/import-ui": "^4.3.179",
85
+ "@things-factory/import-ui-excel": "^4.3.179",
86
+ "@things-factory/menu-ui": "^4.3.179",
87
+ "@things-factory/more-ui": "^4.3.179",
88
+ "@things-factory/notification": "^4.3.179",
89
89
  "@things-factory/pdf": "^4.3.159",
90
- "@things-factory/print-proxy-service": "^4.3.176",
91
- "@things-factory/print-ui": "^4.3.176",
92
- "@things-factory/product-base": "^4.3.176",
93
- "@things-factory/resource-ui": "^4.3.176",
94
- "@things-factory/sales-ui": "^4.3.177",
90
+ "@things-factory/print-proxy-service": "^4.3.179",
91
+ "@things-factory/print-ui": "^4.3.179",
92
+ "@things-factory/product-base": "^4.3.179",
93
+ "@things-factory/resource-ui": "^4.3.179",
94
+ "@things-factory/sales-ui": "^4.3.179",
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",
98
98
  "@things-factory/scene-form": "^4.3.159",
99
99
  "@things-factory/scene-google-map": "^4.3.159",
100
100
  "@things-factory/scene-graphql": "^4.3.159",
101
- "@things-factory/scene-label": "^4.3.176",
101
+ "@things-factory/scene-label": "^4.3.179",
102
102
  "@things-factory/scene-marker": "^4.3.159",
103
- "@things-factory/scene-mqtt": "^4.3.159",
103
+ "@things-factory/scene-mqtt": "^4.3.179",
104
104
  "@things-factory/scene-restful": "^4.3.159",
105
105
  "@things-factory/scene-visualizer": "^4.3.159",
106
- "@things-factory/setting-ui": "^4.3.176",
107
- "@things-factory/system-ui": "^4.3.176",
108
- "@things-factory/transport-base": "^4.3.176",
109
- "@things-factory/tutorial-ui": "^4.3.176",
110
- "@things-factory/warehouse-base": "^4.3.177",
111
- "@things-factory/worksheet-base": "^4.3.177"
106
+ "@things-factory/setting-ui": "^4.3.179",
107
+ "@things-factory/system-ui": "^4.3.179",
108
+ "@things-factory/transport-base": "^4.3.179",
109
+ "@things-factory/tutorial-ui": "^4.3.179",
110
+ "@things-factory/warehouse-base": "^4.3.179",
111
+ "@things-factory/worksheet-base": "^4.3.179"
112
112
  },
113
113
  "devDependencies": {
114
- "@things-factory/builder": "^4.3.159",
114
+ "@things-factory/builder": "^4.3.179",
115
115
  "cypress": "^9.4.1",
116
116
  "cypress-file-upload": "^5.0.8",
117
117
  "cypress-localstorage-commands": "^1.6.1",
118
118
  "eslint-plugin-cypress": "^2.12.1"
119
119
  },
120
- "gitHead": "9fe26b4f1912973afbe913715116a27ba6ec0c35"
120
+ "gitHead": "4360078d5067a99c1d5e30caaef86a2e4c933b26"
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
  )