@things-factory/operato-wms 4.3.460 → 4.3.462

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.
@@ -2127,7 +2127,7 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
2127
2127
  this.updateSelectedItemProp(this._selectedOrderInventory)
2128
2128
  if (this._selectedOrderInventory?.pickedQty == this._selectedOrderInventory?.releaseQty) {
2129
2129
  if (this._isCartonLabel) {
2130
- this.cartonInput.value = ''
2130
+ if (this.cartonInput) this.cartonInput.value = ''
2131
2131
  this._focusOnCartonNoInput()
2132
2132
  }
2133
2133
  this._selectedOrderInventory = null
@@ -6,25 +6,14 @@ import './tote-popup'
6
6
  import './sorting-same-gtin-popup'
7
7
 
8
8
  import gql from 'graphql-tag'
9
- import {
10
- css,
11
- html
12
- } from 'lit-element'
9
+ import { css, html } from 'lit-element'
13
10
  import { connect } from 'pwa-helpers/connect-mixin.js'
14
11
 
15
12
  import { sleep } from '@operato/utils'
16
13
  import { MultiColumnFormStyles } from '@things-factory/form-ui'
17
- import {
18
- i18next,
19
- localize
20
- } from '@things-factory/i18n-base'
14
+ import { i18next, localize } from '@things-factory/i18n-base'
21
15
  import { openPopup } from '@things-factory/layout-base'
22
- import {
23
- client,
24
- CustomAlert,
25
- PageView,
26
- store
27
- } from '@things-factory/shell'
16
+ import { client, CustomAlert, PageView, store } from '@things-factory/shell'
28
17
  import { CommonButtonStyles } from '@things-factory/styles'
29
18
  import { isMobileDevice } from '@things-factory/utils'
30
19
 
@@ -229,7 +218,7 @@ class SortingProduct extends connect(store)(localize(i18next)(PageView)) {
229
218
  <legend>
230
219
  ${i18next.t('title.order_no')}: ${this.taskNo}
231
220
  ${this.taskNo
232
- ? html`(${this._selectedReleaseGood?.name})
221
+ ? html`(${this._selectedReleaseGood})
233
222
  <mwc-icon @click="${this._openWorksheetInformation.bind(this)}">info</mwc-icon>`
234
223
  : ''}
235
224
  </legend>
@@ -379,6 +368,7 @@ class SortingProduct extends connect(store)(localize(i18next)(PageView)) {
379
368
  status
380
369
  sortedByUser
381
370
  }
371
+ selectedReleaseGood
382
372
  taskNo
383
373
  }
384
374
  }
@@ -387,12 +377,17 @@ class SortingProduct extends connect(store)(localize(i18next)(PageView)) {
387
377
  })
388
378
 
389
379
  if (!response.errors) {
390
- this.releaseOrders = response.data.findSortingReleaseOrdersByTaskNo.releaseGoods
391
380
  this.taskNo = response.data.findSortingReleaseOrdersByTaskNo.taskNo
392
- if (this.releaseOrders?.find(itm => itm.status == 'SORTING')) {
393
- await this._openSelectReleaseOrderPopup()
381
+ this.releaseOrders = response.data.findSortingReleaseOrdersByTaskNo.releaseGoods
382
+
383
+ if (response.data.findSortingReleaseOrdersByTaskNo?.selectedReleaseGood) {
384
+ await this._setSelectedRO(response.data.findSortingReleaseOrdersByTaskNo.selectedReleaseGood)
394
385
  } else {
395
- await this._completeSortingWorksheet()
386
+ if (this.releaseOrders?.find(itm => itm.status == 'SORTING')) {
387
+ await this._openSelectReleaseOrderPopup()
388
+ } else {
389
+ await this._completeSortingWorksheet()
390
+ }
396
391
  }
397
392
  }
398
393
  } catch (e) {
@@ -407,13 +402,7 @@ class SortingProduct extends connect(store)(localize(i18next)(PageView)) {
407
402
  <show-ro-list-popup
408
403
  .releaseOrders=${this.releaseOrders}
409
404
  @ro-selected=${e => {
410
- this._selectedReleaseGood = e.detail.ro
411
- this._fetchItemList(this._selectedReleaseGood?.name)
412
- if (this._enableProductScanning) this.productBarcodeInput.value = ''
413
- if (this.sortingQtyInput) this.sortingQtyInput.value = ''
414
- if (this.serialInput) this.serialInput.value = ''
415
- this.toteNo = ''
416
- this._lastScannedProductId = ''
405
+ this._setSelectedRO(e.detail.ro?.name)
417
406
  }}
418
407
  ></show-ro-list-popup>
419
408
  `,
@@ -425,6 +414,16 @@ class SortingProduct extends connect(store)(localize(i18next)(PageView)) {
425
414
  )
426
415
  }
427
416
 
417
+ _setSelectedRO(ro) {
418
+ this._selectedReleaseGood = ro
419
+ this._fetchItemList(this._selectedReleaseGood)
420
+ if (this._enableProductScanning) this.productBarcodeInput.value = ''
421
+ if (this.sortingQtyInput) this.sortingQtyInput.value = ''
422
+ if (this.serialInput) this.serialInput.value = ''
423
+ this.toteNo = ''
424
+ this._lastScannedProductId = ''
425
+ }
426
+
428
427
  _openWorksheetInformation() {
429
428
  openPopup(
430
429
  html`
@@ -443,7 +442,7 @@ class SortingProduct extends connect(store)(localize(i18next)(PageView)) {
443
442
  openPopup(
444
443
  html`
445
444
  <tote-popup
446
- .orderNo="${this._selectedReleaseGood?.name}"
445
+ .orderNo="${this._selectedReleaseGood}"
447
446
  .toteNo="${this.toteNo}"
448
447
  .bizplace="${this.bizplaceName}"
449
448
  @completed="${async e => {
@@ -619,7 +618,7 @@ class SortingProduct extends connect(store)(localize(i18next)(PageView)) {
619
618
  }
620
619
 
621
620
  if (!response?.errors || (this._enableProductScanning && records.length > 1)) {
622
- this._fetchItemList(this._selectedReleaseGood?.name)
621
+ this._fetchItemList(this._selectedReleaseGood)
623
622
  }
624
623
  } catch (e) {
625
624
  this._showToast(e)
@@ -649,7 +648,7 @@ class SortingProduct extends connect(store)(localize(i18next)(PageView)) {
649
648
  `,
650
649
  variables: {
651
650
  taskNo: this.taskNo,
652
- releaseGoodNo: this._selectedReleaseGood?.name,
651
+ releaseGoodNo: this._selectedReleaseGood,
653
652
  productId: this._selectedOrderInventory?.product.id,
654
653
  sortingQty: this._isRequireSerialNumberScanningOutbound ? 1 : parseFloat(this.sortingQtyInput.value),
655
654
  serialNumber: this._isRequireSerialNumberScanningOutbound ? this.serialInput.value.trim() : null,
@@ -660,7 +659,7 @@ class SortingProduct extends connect(store)(localize(i18next)(PageView)) {
660
659
 
661
660
  async scanProductSorting(productId) {
662
661
  const variables = {
663
- releaseGoodNo: this._selectedReleaseGood?.name,
662
+ releaseGoodNo: this._selectedReleaseGood,
664
663
  taskNo: this.taskNo,
665
664
  productBarcode: this.productBarcodeInput.value.trim(),
666
665
  serialNumber: this._isRequireSerialNumberScanningOutbound ? this.serialInput.value.trim() : null,
@@ -698,7 +697,7 @@ class SortingProduct extends connect(store)(localize(i18next)(PageView)) {
698
697
  })
699
698
 
700
699
  this._lastScannedProductId = productId
701
- this._fetchItemList(this._selectedReleaseGood?.name)
700
+ this._fetchItemList(this._selectedReleaseGood)
702
701
  this._clearField()
703
702
  }
704
703
 
@@ -728,7 +727,7 @@ class SortingProduct extends connect(store)(localize(i18next)(PageView)) {
728
727
  }
729
728
  `,
730
729
  variables: {
731
- releaseGoodNo: this._selectedReleaseGood?.name
730
+ releaseGoodNo: this._selectedReleaseGood
732
731
  }
733
732
  })
734
733
  if (!response.errors) {
@@ -17,17 +17,17 @@ module.exports = {
17
17
  // synchronize: false,
18
18
  // logging: true
19
19
  // },
20
- ormconfig: {
21
- name: 'default',
22
- type: 'postgres',
23
- database: 'postgres',
24
- username: 'postgres',
25
- password: 'abcd1234',
26
- host: 'operatov3.cluster-cijhm4n1hbst.ap-southeast-1.rds.amazonaws.com',
27
- port: 55432,
28
- synchronize: false,
29
- logging: true
30
- },
20
+ // ormconfig: {
21
+ // name: 'default',
22
+ // type: 'postgres',
23
+ // database: 'postgres',
24
+ // username: 'postgres',
25
+ // password: 'abcd1234',
26
+ // host: 'operatov3.cluster-cijhm4n1hbst.ap-southeast-1.rds.amazonaws.com',
27
+ // port: 55432,
28
+ // synchronize: false,
29
+ // logging: true
30
+ // },
31
31
  sellercraftIntegrationConfig: {
32
32
  apiKey: 'Et0KqtLvA6e92bDvOywy9eCCud4hpAal8akpqI90'
33
33
  },
@@ -4,7 +4,7 @@
4
4
 
5
5
  ## 6 May Update
6
6
 
7
- #### V4.3.458 Release Note
7
+ #### V4.3.459 Release Note
8
8
 
9
9
  #### Greetings to all,
10
10
 
@@ -19,7 +19,7 @@
19
19
 
20
20
  <br>
21
21
  For additional information about the aspects of the release, see the following link
22
- <a href="https://shorturl.at/ANW12">V4.3.452 Release Note</a>
22
+ <a href="https://shorturl.at/ANW12">V4.3.459 Release Note</a>
23
23
  <br>
24
24
 
25
25
  Should you have any inquiries, feel free to contact <a href="mailto: support@hatio.asia">support@hatio.asia</a>! Stay safe and positively negative!
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/operato-wms",
3
- "version": "4.3.460",
3
+ "version": "4.3.462",
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.434",
92
92
  "@things-factory/product-base": "^4.3.452",
93
93
  "@things-factory/resource-ui": "^4.3.452",
94
- "@things-factory/sales-ui": "^4.3.460",
94
+ "@things-factory/sales-ui": "^4.3.462",
95
95
  "@things-factory/scene-data-transform": "^4.3.381",
96
96
  "@things-factory/scene-excel": "^4.3.381",
97
97
  "@things-factory/scene-firebase": "^4.3.381",
@@ -107,8 +107,8 @@
107
107
  "@things-factory/system-ui": "^4.3.434",
108
108
  "@things-factory/transport-base": "^4.3.452",
109
109
  "@things-factory/tutorial-ui": "^4.3.452",
110
- "@things-factory/warehouse-base": "^4.3.460",
111
- "@things-factory/worksheet-base": "^4.3.460"
110
+ "@things-factory/warehouse-base": "^4.3.461",
111
+ "@things-factory/worksheet-base": "^4.3.462"
112
112
  },
113
113
  "devDependencies": {
114
114
  "@things-factory/builder": "^4.3.381",
@@ -117,5 +117,5 @@
117
117
  "cypress-localstorage-commands": "^1.6.1",
118
118
  "eslint-plugin-cypress": "^2.12.1"
119
119
  },
120
- "gitHead": "c4fad874a8e5bdd0341a280a68d1f465dd3ec363"
120
+ "gitHead": "3913d5eb1cbcd517e2303289386d278d35771a55"
121
121
  }