@things-factory/operato-wms 4.3.553 → 4.3.554

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.
@@ -46,6 +46,7 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
46
46
  _reusablePallet: Object,
47
47
  _scanning: Boolean,
48
48
  _selectedOrderProduct: Object,
49
+ _previousSelectedOrderProduct: Object,
49
50
  _selectedInventory: Object,
50
51
  _unloadedInventories: Array,
51
52
  _worksheetInfo: Object,
@@ -135,6 +136,10 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
135
136
  }
136
137
 
137
138
  if (this._selectedOrderProduct && this._isRequireSerialNumberScanningInbound) {
139
+ if(this._selectedOrderProduct.sku != this._previousSelectedOrderProduct.sku){
140
+ this._previousSelectedOrderProduct = this._selectedOrderProduct
141
+ this._productBarcodeScanned = null
142
+ }
138
143
  actions.push({
139
144
  title: i18next.t('button.serial_number'),
140
145
  action: this._openSerialNumberList.bind(this),
@@ -676,7 +681,6 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
676
681
  }
677
682
 
678
683
  async _fetchProducts(orderNo, response) {
679
- this._productBarcodeScanned = null
680
684
  if (this.refOrderType === AVAIL_ORDER_TYPES.ARRIVAL_NOTICE.value) {
681
685
  const response = await client.query({
682
686
  query: gql`
@@ -1026,7 +1030,6 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
1026
1030
  this._selectedOrderProduct = null
1027
1031
  this._selectedInventory = null
1028
1032
  this._unloadedInventories = null
1029
- this._productBarcodeScanned = null
1030
1033
  this.updateContext()
1031
1034
  }
1032
1035
 
@@ -1319,7 +1322,8 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
1319
1322
  let orderProductData = this.orderProductData.records
1320
1323
  let checkedProductDetails = response.data.checkGtin.items
1321
1324
  this.productBarcodeInput.value = `${checkedProductDetails[0].gtin} (${checkedProductDetails[0].packingType})`
1322
- this._productBarcodeScanned = checkedProductDetails[0].gtin
1325
+ this._productBarcodeScanned = checkedProductDetails[0].gtin
1326
+ this._previousSelectedOrderProduct = this._selectedOrderProduct
1323
1327
 
1324
1328
  //check from grist if any is matched
1325
1329
  const foundOrderProducts = orderProductData.filter(op => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/operato-wms",
3
- "version": "4.3.553",
3
+ "version": "4.3.554",
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.535",
92
92
  "@things-factory/product-base": "^4.3.535",
93
93
  "@things-factory/resource-ui": "^4.3.535",
94
- "@things-factory/sales-ui": "^4.3.552",
94
+ "@things-factory/sales-ui": "^4.3.554",
95
95
  "@things-factory/scene-data-transform": "^4.3.534",
96
96
  "@things-factory/scene-excel": "^4.3.534",
97
97
  "@things-factory/scene-firebase": "^4.3.534",
@@ -107,8 +107,8 @@
107
107
  "@things-factory/system-ui": "^4.3.535",
108
108
  "@things-factory/transport-base": "^4.3.535",
109
109
  "@things-factory/tutorial-ui": "^4.3.535",
110
- "@things-factory/warehouse-base": "^4.3.551",
111
- "@things-factory/worksheet-base": "^4.3.553"
110
+ "@things-factory/warehouse-base": "^4.3.554",
111
+ "@things-factory/worksheet-base": "^4.3.554"
112
112
  },
113
113
  "devDependencies": {
114
114
  "@things-factory/builder": "^4.3.534",
@@ -117,5 +117,5 @@
117
117
  "cypress-localstorage-commands": "^1.6.1",
118
118
  "eslint-plugin-cypress": "^2.12.1"
119
119
  },
120
- "gitHead": "e16458e0795f213e33fd9bb94b96bde1b53c1e3b"
120
+ "gitHead": "140a36c8034423a78e61a366feb9fa4d0c658301"
121
121
  }