@things-factory/operato-wms 4.3.555 → 4.3.557

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.
@@ -136,7 +136,7 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
136
136
  }
137
137
 
138
138
  if (this._selectedOrderProduct && this._isRequireSerialNumberScanningInbound) {
139
- if(this._selectedOrderProduct.sku != this._previousSelectedOrderProduct.sku){
139
+ if (this._selectedOrderProduct.sku != this._previousSelectedOrderProduct.sku) {
140
140
  this._previousSelectedOrderProduct = this._selectedOrderProduct
141
141
  this._productBarcodeScanned = null
142
142
  }
@@ -305,7 +305,7 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
305
305
  ?scan-only=${this._pageSettings?.cameraScanOnly}
306
306
  @keypress="${async e => {
307
307
  if (e.keyCode === 13) {
308
- e.preventDefault()
308
+ e.preventDefault()
309
309
  await this._transactionHandler(e)
310
310
  }
311
311
  }}"
@@ -789,11 +789,11 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
789
789
  ...worksheetDetailInfo,
790
790
  validity:
791
791
  worksheetDetailInfo.packQty > 0 //check new packQty after edit approved
792
- ? worksheetDetailInfo.actualPackQty === worksheetDetailInfo.packQty &&
793
- (worksheetDetailInfo.palletQty
794
- ? worksheetDetailInfo.actualPalletQty === worksheetDetailInfo.palletQty
795
- : true)
796
- : worksheetDetailInfo.packQty === 0
792
+ ? worksheetDetailInfo.actualPackQty === worksheetDetailInfo.packQty &&
793
+ (worksheetDetailInfo.palletQty
794
+ ? worksheetDetailInfo.actualPalletQty === worksheetDetailInfo.palletQty
795
+ : true)
796
+ : worksheetDetailInfo.packQty === 0
797
797
  ? true // if 0
798
798
  : false, // if undefined or null
799
799
  sku: worksheetDetailInfo.product.sku
@@ -1038,7 +1038,7 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
1038
1038
  if (e.keyCode !== 13) return
1039
1039
  e.preventDefault()
1040
1040
  try {
1041
- if (this._enableProductScanning){
1041
+ if (this._enableProductScanning) {
1042
1042
  this._productBarcode = this.productBarcodeInput.value
1043
1043
  }
1044
1044
  if (!this._enableCartonLabel) return this._unloadSelected()
@@ -1235,7 +1235,11 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
1235
1235
  expirationDate: this._isRequiredCheckExpiry ? this.expDateInput.value : null,
1236
1236
  reusablePallet: this._usingReusablePallet ? this._reusablePallet : null
1237
1237
  },
1238
- productBarcode: this._enableProductScanning ? this._productBarcodeScanned ? this._productBarcodeScanned : this._productBarcode : null
1238
+ productBarcode: this._enableProductScanning
1239
+ ? this._productBarcodeScanned
1240
+ ? this._productBarcodeScanned
1241
+ : this._productBarcode
1242
+ : null
1239
1243
  }
1240
1244
  })
1241
1245
  if (!response.errors) {
@@ -1317,13 +1321,15 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
1317
1321
 
1318
1322
  async _checkedScannedProduct() {
1319
1323
  //fetch any product details that has entered gtin
1320
- const response = await this.fetchProductDetails(this._productBarcode.trim() || '')
1324
+ const response = await this.fetchProductDetails(
1325
+ this._productBarcodeScanned ? this._productBarcodeScanned : this._productBarcode.trim() || ''
1326
+ )
1321
1327
 
1322
1328
  if (!response.errors) {
1323
1329
  let orderProductData = this.orderProductData.records
1324
1330
  let checkedProductDetails = response.data.checkGtin.items
1325
1331
  this.productBarcodeInput.value = `${checkedProductDetails[0].gtin} (${checkedProductDetails[0].packingType})`
1326
- this._productBarcodeScanned = checkedProductDetails[0].gtin
1332
+ this._productBarcodeScanned = checkedProductDetails[0].gtin
1327
1333
  this._previousSelectedOrderProduct = this._selectedOrderProduct
1328
1334
 
1329
1335
  //check from grist if any is matched
@@ -1363,8 +1369,7 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
1363
1369
  this._selectedOrderProduct = null
1364
1370
 
1365
1371
  if (foundOrderProducts?.length > 1) {
1366
- if (foundOrderProducts.some(op => op.product.isRequiredCheckExpiry))
1367
- this._isRequiredCheckExpiry = true
1372
+ if (foundOrderProducts.some(op => op.product.isRequiredCheckExpiry)) this._isRequiredCheckExpiry = true
1368
1373
 
1369
1374
  if (this._isRequireSerialNumberScanningInbound) {
1370
1375
  if (!this._selectedOrderProduct) {
@@ -1821,9 +1826,11 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
1821
1826
 
1822
1827
  if (
1823
1828
  !this.orderProductData.records
1824
- .filter(
1825
- task =>
1826
- task.packQty === 0 ? false : (task.palletQty ? task.actualPalletQty !== task.palletQty : false) || task.actualPackQty !== task.packQty
1829
+ .filter(task =>
1830
+ task.packQty === 0
1831
+ ? false
1832
+ : (task.palletQty ? task.actualPalletQty !== task.palletQty : false) ||
1833
+ task.actualPackQty !== task.packQty
1827
1834
  )
1828
1835
  .every(task => task.issue)
1829
1836
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/operato-wms",
3
- "version": "4.3.555",
3
+ "version": "4.3.557",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -117,5 +117,5 @@
117
117
  "cypress-localstorage-commands": "^1.6.1",
118
118
  "eslint-plugin-cypress": "^2.12.1"
119
119
  },
120
- "gitHead": "c6eddad571d6c8f5bb84f4964f3184e51dd4525c"
120
+ "gitHead": "5f28856db7a8d5ec5bdff6a19c3e6440a403a77f"
121
121
  }