@things-factory/operato-wms 4.3.166 → 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.
@@ -22,7 +22,7 @@ import { isMobileDevice } from '@things-factory/utils'
22
22
  import { fetchLocationSortingRule } from '../../fetch-location-sorting-rule'
23
23
  import { fetchSettingRule } from '../../fetch-setting-value'
24
24
  import { showToast } from '../../util/index'
25
- import { BATCH_PICKING, LOCATION_SORTING_RULE, LOCATION_TYPE, ORDER_SOURCES, PICKING, RO_TYPES } from '../constants'
25
+ import { BATCH_PICKING, LOCATION_SORTING_RULE, LOCATION_TYPE, ORDER_SOURCES, PICKING } from '../constants'
26
26
 
27
27
  const PICKING_TYPES = { PICKING, BATCH_PICKING }
28
28
  class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
@@ -576,7 +576,7 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
576
576
  } else {
577
577
  updatedRecords.status = 'PICKING'
578
578
  }
579
- this._selectedOrderInventory = record
579
+ this.updateSelectedItemProp(record)
580
580
  this.updateContext()
581
581
  }
582
582
  } catch (ex) {
@@ -798,16 +798,22 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
798
798
  if (this._hasBinPicking && (!this.toteNo || this.tote == '')) {
799
799
  this._currentBinLocation = this.binLocationInput.value
800
800
  }
801
- if (this._isRequireSerialNumberScanningOutbound) this.serialInput.value = ''
802
- else if (this._enableProductScanning) this.productBarcodeInput.value = ''
803
- else this.releaseQtyInput.value = ''
801
+ if (this._isRequireSerialNumberScanningOutbound) {
802
+ this.serialInput.value = ''
803
+ } else if (this._enableProductScanning) {
804
+ this.productBarcodeInput.value = ''
805
+ } else {
806
+ this.releaseQtyInput.value = ''
807
+ }
804
808
 
805
809
  if (!this._isCartonLabel && !this._isRequireSerialNumberScanningOutbound) {
806
810
  this.palletInput.value = ''
807
811
  }
808
812
 
809
- if (!this.isWholePicking && !this._crossDocking && !this._isCartonLabel && this.locationInput)
813
+ if (!this.isWholePicking && !this._crossDocking && !this._isCartonLabel && this.locationInput) {
810
814
  this.locationInput.value = ''
815
+ this._locationName = null
816
+ }
811
817
  }
812
818
 
813
819
  await this.fetchInventories(orderNo)
@@ -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, rg.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, rg.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(`
@@ -1 +1 @@
1
- {"version":3,"file":"elccl-daily-order-inventory-report.js","sourceRoot":"","sources":["../../../../../server/graphql/resolvers/custom/elccl/elccl-daily-order-inventory-report.ts"],"names":[],"mappings":";;;AAGA,uDAAiE;AAEpD,QAAA,8BAA8B,GAAG;IAC5C,KAAK,CAA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P,KAAK;;;;;;OAMvC,CAAC,CAAA;YAEF,EAAE,CAAC,KAAK,CAAC;;OAER,CAAC,CAAA;YAEF,IAAI,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE;gBAC3B,OAAO;oBACL,GAAG,EAAE,GAAG,CAAC,GAAG;oBACZ,QAAQ,EAAE,QAAQ;oBAClB,eAAe,EAAE,GAAG,CAAC,iBAAiB;oBACtC,MAAM,EAAE,GAAG,CAAC,MAAM;oBAClB,kBAAkB,EAAE,GAAG,CAAC,oBAAoB;oBAC5C,MAAM,EAAE,GAAG,CAAC,MAAM;oBAClB,kBAAkB,EAAE,GAAG,CAAC,oBAAoB;oBAC5C,SAAS,EAAE,GAAG,CAAC,UAAU;oBACzB,OAAO,EAAE,GAAG,CAAC,SAAS;oBACtB,OAAO,EAAE,GAAG,CAAC,QAAQ;oBACrB,UAAU,EAAE,GAAG,CAAC,YAAY;oBAC5B,MAAM,EAAE,GAAG,CAAC,MAAM;oBAClB,kBAAkB,EAAE,GAAG,CAAC,oBAAoB;iBAC7C,CAAA;YACH,CAAC,CAAC,CAAA;YAEF,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,MAAM,EAAC,CAAA;SACrC;QAAC,OAAO,KAAK,EAAE;YACd,MAAM,KAAK,CAAA;SACZ;IACH,CAAC;CACF,CAAA"}
1
+ {"version":3,"file":"elccl-daily-order-inventory-report.js","sourceRoot":"","sources":["../../../../../server/graphql/resolvers/custom/elccl/elccl-daily-order-inventory-report.ts"],"names":[],"mappings":";;;AAGA,uDAAiE;AAEpD,QAAA,8BAA8B,GAAG;IAC5C,KAAK,CAAC,8BAA8B,CAAC,CAAM,EAAE,MAAiB,EAAE,OAAY;QAC1E,IAAI;YACF,MAAM,EAAE,EAAE,EAAE,GAA0B,OAAO,CAAC,KAAK,CAAA;YAEnD,IAAI,cAAc,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CA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,QAAQ,EAAE,QAAQ;oBAClB,eAAe,EAAE,GAAG,CAAC,iBAAiB;oBACtC,MAAM,EAAE,GAAG,CAAC,MAAM;oBAClB,kBAAkB,EAAE,GAAG,CAAC,oBAAoB;oBAC5C,MAAM,EAAE,GAAG,CAAC,MAAM;oBAClB,kBAAkB,EAAE,GAAG,CAAC,oBAAoB;oBAC5C,SAAS,EAAE,GAAG,CAAC,UAAU;oBACzB,OAAO,EAAE,GAAG,CAAC,SAAS;oBACtB,OAAO,EAAE,GAAG,CAAC,QAAQ;oBACrB,UAAU,EAAE,GAAG,CAAC,YAAY;oBAC5B,MAAM,EAAE,GAAG,CAAC,MAAM;oBAClB,kBAAkB,EAAE,GAAG,CAAC,oBAAoB;iBAC7C,CAAA;YACH,CAAC,CAAC,CAAA;YAEF,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,MAAM,EAAE,CAAA;SACtC;QAAC,OAAO,KAAK,EAAE;YACd,MAAM,KAAK,CAAA;SACZ;IACH,CAAC;CACF,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/operato-wms",
3
- "version": "4.3.166",
3
+ "version": "4.3.168",
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.159",
92
92
  "@things-factory/product-base": "^4.3.166",
93
93
  "@things-factory/resource-ui": "^4.3.163",
94
- "@things-factory/sales-ui": "^4.3.166",
94
+ "@things-factory/sales-ui": "^4.3.167",
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.159",
108
108
  "@things-factory/transport-base": "^4.3.163",
109
109
  "@things-factory/tutorial-ui": "^4.3.163",
110
- "@things-factory/warehouse-base": "^4.3.166",
111
- "@things-factory/worksheet-base": "^4.3.166"
110
+ "@things-factory/warehouse-base": "^4.3.167",
111
+ "@things-factory/worksheet-base": "^4.3.167"
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": "d4bb11771262388658225e7101b474a0211c8a1a"
120
+ "gitHead": "df41c2c72a32e27184497827a2d6418e88a2c18c"
121
121
  }
@@ -7,8 +7,8 @@ export const elcclDailyOrderInventoryReport = {
7
7
  async elcclDailyOrderInventoryReport(_: any, params: ListParam, context: any) {
8
8
  try {
9
9
  const { tx }: { tx: EntityManager } = context.state
10
-
11
- let bizplaceFilter = params.filters.find(data => data.name === 'bizplace')
10
+
11
+ let bizplaceFilter = params.filters.find(data => data.name === 'bizplace')
12
12
 
13
13
  let month = params.filters.find(data => data.name === 'month').value + '-01'
14
14
  let tzoffset = params.filters.find(data => data.name === 'tzoffset').value + ' seconds'
@@ -19,12 +19,13 @@ export const elcclDailyOrderInventoryReport = {
19
19
  id: bizplaceFilter.value
20
20
  })
21
21
 
22
- await tx.query(`
22
+ await tx.query(
23
+ `
23
24
  create temp table temp_invHistory as (
24
25
  select rih.pallet_id, rih.seq,
25
26
  coalesce(grn.name, do2.name, rih.order_no) as order_no , rih.order_ref_no , an.delivery_order_no as do_ref_no,
26
27
  rih.bizplace_id, rih.ref_order_id,
27
- coalesce(grn.created_at, rg.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,
28
29
  CASE WHEN rih.transaction_type = 'PICKING' THEN COALESCE(-oi.release_qty,rih.qty) ELSE rih.qty END AS qty,
29
30
  inv.packing_type, inv.reusable_pallet_id, rih.transaction_type,
30
31
  case when rih.status = 'TERMINATED' then rih.status else 'STORED' end as status,
@@ -39,7 +40,7 @@ export const elcclDailyOrderInventoryReport = {
39
40
  left join delivery_orders do2 on do2.id = oi.delivery_order_id
40
41
  where ((rih.transaction_type <> 'PUTAWAY' and rih.transaction_type <> 'ADJUSTMENT' and rih.transaction_type <> 'RELOCATE') or rih.qty <> 0)
41
42
  and rih.domain_id =$1 and rih.bizplace_id = $2
42
- and coalesce(grn.created_at, rg.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
43
44
  )
44
45
  `,
45
46
  [context.state.domain.id, bizplace.id, month, tzoffset]
@@ -140,7 +141,7 @@ export const elcclDailyOrderInventoryReport = {
140
141
  }
141
142
  })
142
143
 
143
- return { items, total: items.length}
144
+ return { items, total: items.length }
144
145
  } catch (error) {
145
146
  throw error
146
147
  }