@things-factory/operato-wms 4.3.316 → 4.3.318

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.
@@ -2,27 +2,14 @@ import '@things-factory/form-ui'
2
2
  import '@things-factory/grist-ui'
3
3
 
4
4
  import gql from 'graphql-tag'
5
- import {
6
- css,
7
- html
8
- } from 'lit-element'
5
+ import { css, html } from 'lit-element'
9
6
  import { connect } from 'pwa-helpers/connect-mixin'
10
7
 
11
8
  import { getCodeByName } from '@things-factory/code-base'
12
- import {
13
- i18next,
14
- localize
15
- } from '@things-factory/i18n-base'
16
- import {
17
- client,
18
- PageView,
19
- store
20
- } from '@things-factory/shell'
9
+ import { i18next, localize } from '@things-factory/i18n-base'
10
+ import { client, PageView, store } from '@things-factory/shell'
21
11
  import { ScrollbarStyles } from '@things-factory/styles'
22
- import {
23
- flattenObject,
24
- isMobileDevice
25
- } from '@things-factory/utils'
12
+ import { flattenObject, isMobileDevice } from '@things-factory/utils'
26
13
 
27
14
  class OnhandInventory extends connect(store)(localize(i18next)(PageView)) {
28
15
  static get styles() {
@@ -436,7 +423,7 @@ class OnhandInventory extends connect(store)(localize(i18next)(PageView)) {
436
423
  packingType
437
424
  uom
438
425
  uomValue
439
- expiry
426
+ expiry
440
427
  bizplace {
441
428
  id
442
429
  name
@@ -449,7 +436,7 @@ class OnhandInventory extends connect(store)(localize(i18next)(PageView)) {
449
436
  brand
450
437
  description
451
438
  volume
452
- outboundAlert
439
+ outboundAlert
453
440
  minOutboundShelfLife
454
441
  }
455
442
  qty
@@ -497,8 +484,8 @@ class OnhandInventory extends connect(store)(localize(i18next)(PageView)) {
497
484
  }
498
485
  })
499
486
 
500
- // Logging response for debugging
501
- console.log(response);
487
+ // Logging response for debugging
488
+ console.log(response)
502
489
 
503
490
  return {
504
491
  total: response.data.onhandInventories.total || 0,
@@ -513,9 +500,9 @@ class OnhandInventory extends connect(store)(localize(i18next)(PageView)) {
513
500
  name: `${item.product.name} ${item.product.description}`,
514
501
  productBrand: `${item.product.brand}`
515
502
  },
516
- volume: parseFloat(item.product.volume * item.remainQty).toFixed(2),
503
+ volume: parseFloat(item.product.volume * item.remainQty).toFixed(4),
517
504
  // Need to move to serverside processing and fetch with db query for consistent performance
518
- condition: this.getCondition(item.location.type),
505
+ condition: this.getCondition(item.location.type)
519
506
  // Need to move to serverside processing and fetch with db query for consistent performance
520
507
  },
521
508
  '_'
@@ -210,7 +210,7 @@ class WorksheetBatchPicking extends localize(i18next)(PageView) {
210
210
  </select>
211
211
 
212
212
  <label>${i18next.t('label.release_good_no')}</label>
213
- <textarea name="releaseGoodNo" rows="${this.releaseGoodNoRows}" readonly></textarea>
213
+ <textarea name="releaseGoodNo" rows="5" readonly></textarea>
214
214
  </fieldset>
215
215
  </form>
216
216
 
@@ -1260,15 +1260,15 @@ class WorksheetBatchPicking extends localize(i18next)(PageView) {
1260
1260
  variables: { worksheetNo: this._worksheetNo }
1261
1261
  })
1262
1262
  if (!response.errors) {
1263
- this._spinner(false)
1264
1263
  this._showToast({ message: i18next.t('text.worksheet_activated') })
1265
1264
  await this.fetchOrderInventories()
1266
1265
  this.updateContext()
1267
1266
  navigate(`merged_outbound_worksheets`)
1268
1267
  }
1269
1268
  } catch (e) {
1270
- this._spinner(false)
1271
1269
  this._showToast(e)
1270
+ } finally {
1271
+ this._spinner(false)
1272
1272
  }
1273
1273
  }
1274
1274
  }
@@ -27,6 +27,8 @@ exports.outboundOrderByStatusResolver = {
27
27
  UNION
28
28
  SELECT 'BATCH PICKING ASSIGNED' AS status, 0 AS "count"
29
29
  UNION
30
+ SELECT 'BATCH PICKING RO ASSIGNED' AS status, 0 AS "count"
31
+ UNION
30
32
  SELECT 'PACKING' AS status, 0 AS "count"
31
33
  UNION
32
34
  SELECT 'AWAITING DISPATCH' AS status, 0 AS "count"
@@ -81,7 +83,7 @@ exports.outboundOrderByStatusResolver = {
81
83
  AND op."bizplace_id" IN (${bizplaceIds})
82
84
  UNION ALL
83
85
  SELECT 'PICKING ASSIGNED' AS "status", count(*) FROM worksheets w
84
- WHERE w."domain_id" = $1
86
+ WHERE w."domain_id" = $1
85
87
  AND w."bizplace_id" IN (${bizplaceIds})
86
88
  AND w."type" = 'PICKING'
87
89
  AND w."status" IN ('DEACTIVATED','EXECUTING')
@@ -94,6 +96,14 @@ exports.outboundOrderByStatusResolver = {
94
96
  AND w."status" IN ('DEACTIVATED','EXECUTING')
95
97
  GROUP BY w."status"
96
98
  UNION ALL
99
+ SELECT 'BATCH PICKING RO ASSIGNED' AS "status", count(distinct oi.release_good_id) FROM worksheets w
100
+ inner join order_inventories oi on oi.ref_worksheet_id = w.id
101
+ WHERE w."domain_id" = $1
102
+ AND w."bizplace_id" IN (${bizplaceIds})
103
+ AND w."type" = 'BATCH_PICKING'
104
+ AND w."status" IN ('DEACTIVATED','EXECUTING')
105
+ GROUP BY w."status"
106
+ UNION ALL
97
107
  SELECT 'PACKING' AS "status", count(*) FROM worksheets w
98
108
  WHERE w."domain_id" = $1 AND w."type" = 'PACKING'
99
109
  AND w."bizplace_id" IN (${bizplaceIds})
@@ -1 +1 @@
1
- {"version":3,"file":"outbound-order-by-status.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/dashboard/outbound-order-by-status.ts"],"names":[],"mappings":";;;AAIA,uDAAkE;AAErD,QAAA,6BAA6B,GAAG;IAC3C,KAAK,CAAC,qBAAqB,CAAC,CAAM,EAAE,MAAiB,EAAE,OAAY;;QACjE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,GAAsD,OAAO,CAAC,KAAK,CAAA;QAC7F,MAAM,UAAU,GAAW,CAAA,MAAA,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,MAAW,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,KAAK,UAAU,CAAC,0CAAE,KAAK,KAAI,KAAK,CAAA;QAC3G,MAAM,EAAE,GAAG,IAAI,MAAM,CAAC,wEAAwE,CAAC,CAAA;QAC/F,IAAI,WAAmB,CAAA;QAEvB,IAAI,UAAU,IAAI,CAAC,UAAU,IAAI,KAAK,IAAI,UAAU,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,EAAE;YAC/D,IAAI,SAAS,GACX,UAAU,IAAI,UAAU,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,MAAM,IAAA,kCAAuB,EAAC,MAAM,EAAE,IAAI,CAAC,CAAA;YAChG,WAAW,GAAG,SAAS;iBACpB,GAAG,CAAC,QAAQ,CAAC,EAAE;gBACd,OAAO,GAAG,IAAG,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,EAAE,CAAA,GAAG,GAAG,CAAA;YACrC,CAAC,CAAC;iBACD,IAAI,CAAC,GAAG,CAAC,CAAA;SACb;;YAAM,MAAM,IAAI,KAAK,CAAC,oBAAoB,CAAC,CAAA;QAE5C,MAAM,WAAW,GAAwC,MAAM,EAAE,CAAC,KAAK,CACrE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uCAsCiC,WAAW;;;;;;;;;;;uCAWX,WAAW;;;;;;;;;;qCAUb,WAAW;;;;oCAIZ,WAAW;;;;;;;oCAOX,WAAW;;;;;;;oCAOX,WAAW;;;;;;qCAMV,WAAW;;;;;;;sCAOV,WAAW;;;;;;KAM5C,EACC,CAAC,MAAM,CAAC,EAAE,CAAC,CACZ,CAAA;QAED,OAAO,WAAW,CAAA;IACpB,CAAC;CACF,CAAA"}
1
+ {"version":3,"file":"outbound-order-by-status.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/dashboard/outbound-order-by-status.ts"],"names":[],"mappings":";;;AAIA,uDAAkE;AAErD,QAAA,6BAA6B,GAAG;IAC3C,KAAK,CAAC,qBAAqB,CAAC,CAAM,EAAE,MAAiB,EAAE,OAAY;;QACjE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,GAAsD,OAAO,CAAC,KAAK,CAAA;Q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1
1
  {
2
2
  "name": "@things-factory/operato-wms",
3
- "version": "4.3.316",
3
+ "version": "4.3.318",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -89,9 +89,9 @@
89
89
  "@things-factory/pdf": "^4.3.281",
90
90
  "@things-factory/print-proxy-service": "^4.3.281",
91
91
  "@things-factory/print-ui": "^4.3.281",
92
- "@things-factory/product-base": "^4.3.301",
92
+ "@things-factory/product-base": "^4.3.318",
93
93
  "@things-factory/resource-ui": "^4.3.281",
94
- "@things-factory/sales-ui": "^4.3.316",
94
+ "@things-factory/sales-ui": "^4.3.318",
95
95
  "@things-factory/scene-data-transform": "^4.3.281",
96
96
  "@things-factory/scene-excel": "^4.3.281",
97
97
  "@things-factory/scene-firebase": "^4.3.281",
@@ -107,8 +107,8 @@
107
107
  "@things-factory/system-ui": "^4.3.281",
108
108
  "@things-factory/transport-base": "^4.3.301",
109
109
  "@things-factory/tutorial-ui": "^4.3.281",
110
- "@things-factory/warehouse-base": "^4.3.310",
111
- "@things-factory/worksheet-base": "^4.3.316"
110
+ "@things-factory/warehouse-base": "^4.3.318",
111
+ "@things-factory/worksheet-base": "^4.3.318"
112
112
  },
113
113
  "devDependencies": {
114
114
  "@things-factory/builder": "^4.3.281",
@@ -117,5 +117,5 @@
117
117
  "cypress-localstorage-commands": "^1.6.1",
118
118
  "eslint-plugin-cypress": "^2.12.1"
119
119
  },
120
- "gitHead": "b91ea3f40740e7764ba800f56d8195382361b515"
120
+ "gitHead": "e9cb9910147c1f9eb4e353a1491392fe29828ae5"
121
121
  }
@@ -30,6 +30,8 @@ export const outboundOrderByStatusResolver = {
30
30
  UNION
31
31
  SELECT 'BATCH PICKING ASSIGNED' AS status, 0 AS "count"
32
32
  UNION
33
+ SELECT 'BATCH PICKING RO ASSIGNED' AS status, 0 AS "count"
34
+ UNION
33
35
  SELECT 'PACKING' AS status, 0 AS "count"
34
36
  UNION
35
37
  SELECT 'AWAITING DISPATCH' AS status, 0 AS "count"
@@ -84,7 +86,7 @@ export const outboundOrderByStatusResolver = {
84
86
  AND op."bizplace_id" IN (${bizplaceIds})
85
87
  UNION ALL
86
88
  SELECT 'PICKING ASSIGNED' AS "status", count(*) FROM worksheets w
87
- WHERE w."domain_id" = $1
89
+ WHERE w."domain_id" = $1
88
90
  AND w."bizplace_id" IN (${bizplaceIds})
89
91
  AND w."type" = 'PICKING'
90
92
  AND w."status" IN ('DEACTIVATED','EXECUTING')
@@ -97,6 +99,14 @@ export const outboundOrderByStatusResolver = {
97
99
  AND w."status" IN ('DEACTIVATED','EXECUTING')
98
100
  GROUP BY w."status"
99
101
  UNION ALL
102
+ SELECT 'BATCH PICKING RO ASSIGNED' AS "status", count(distinct oi.release_good_id) FROM worksheets w
103
+ inner join order_inventories oi on oi.ref_worksheet_id = w.id
104
+ WHERE w."domain_id" = $1
105
+ AND w."bizplace_id" IN (${bizplaceIds})
106
+ AND w."type" = 'BATCH_PICKING'
107
+ AND w."status" IN ('DEACTIVATED','EXECUTING')
108
+ GROUP BY w."status"
109
+ UNION ALL
100
110
  SELECT 'PACKING' AS "status", count(*) FROM worksheets w
101
111
  WHERE w."domain_id" = $1 AND w."type" = 'PACKING'
102
112
  AND w."bizplace_id" IN (${bizplaceIds})