@things-factory/operato-wms 4.3.554 → 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
  }}"
@@ -756,6 +756,7 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
756
756
  const worksheetInfo = responseType.worksheetInfo
757
757
  const orderVasInfo = worksheetInfo.orderVas
758
758
 
759
+ this._productBarcodeScanned = null
759
760
  this._orderNo = orderNo
760
761
  this._orderId = worksheetInfo.arrivalNotice.id
761
762
  this._bizplaceName = worksheetInfo.bizplaceName
@@ -788,11 +789,11 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
788
789
  ...worksheetDetailInfo,
789
790
  validity:
790
791
  worksheetDetailInfo.packQty > 0 //check new packQty after edit approved
791
- ? worksheetDetailInfo.actualPackQty === worksheetDetailInfo.packQty &&
792
- (worksheetDetailInfo.palletQty
793
- ? worksheetDetailInfo.actualPalletQty === worksheetDetailInfo.palletQty
794
- : true)
795
- : worksheetDetailInfo.packQty === 0
792
+ ? worksheetDetailInfo.actualPackQty === worksheetDetailInfo.packQty &&
793
+ (worksheetDetailInfo.palletQty
794
+ ? worksheetDetailInfo.actualPalletQty === worksheetDetailInfo.palletQty
795
+ : true)
796
+ : worksheetDetailInfo.packQty === 0
796
797
  ? true // if 0
797
798
  : false, // if undefined or null
798
799
  sku: worksheetDetailInfo.product.sku
@@ -1037,7 +1038,7 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
1037
1038
  if (e.keyCode !== 13) return
1038
1039
  e.preventDefault()
1039
1040
  try {
1040
- if (this._enableProductScanning){
1041
+ if (this._enableProductScanning) {
1041
1042
  this._productBarcode = this.productBarcodeInput.value
1042
1043
  }
1043
1044
  if (!this._enableCartonLabel) return this._unloadSelected()
@@ -1234,7 +1235,11 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
1234
1235
  expirationDate: this._isRequiredCheckExpiry ? this.expDateInput.value : null,
1235
1236
  reusablePallet: this._usingReusablePallet ? this._reusablePallet : null
1236
1237
  },
1237
- 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
1238
1243
  }
1239
1244
  })
1240
1245
  if (!response.errors) {
@@ -1316,13 +1321,15 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
1316
1321
 
1317
1322
  async _checkedScannedProduct() {
1318
1323
  //fetch any product details that has entered gtin
1319
- const response = await this.fetchProductDetails(this._productBarcodeScanned ? this._productBarcodeScanned : this._productBarcode.trim() || '')
1324
+ const response = await this.fetchProductDetails(
1325
+ this._productBarcodeScanned ? this._productBarcodeScanned : this._productBarcode.trim() || ''
1326
+ )
1320
1327
 
1321
1328
  if (!response.errors) {
1322
1329
  let orderProductData = this.orderProductData.records
1323
1330
  let checkedProductDetails = response.data.checkGtin.items
1324
1331
  this.productBarcodeInput.value = `${checkedProductDetails[0].gtin} (${checkedProductDetails[0].packingType})`
1325
- this._productBarcodeScanned = checkedProductDetails[0].gtin
1332
+ this._productBarcodeScanned = checkedProductDetails[0].gtin
1326
1333
  this._previousSelectedOrderProduct = this._selectedOrderProduct
1327
1334
 
1328
1335
  //check from grist if any is matched
@@ -1362,8 +1369,7 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
1362
1369
  this._selectedOrderProduct = null
1363
1370
 
1364
1371
  if (foundOrderProducts?.length > 1) {
1365
- if (foundOrderProducts.some(op => op.product.isRequiredCheckExpiry))
1366
- this._isRequiredCheckExpiry = true
1372
+ if (foundOrderProducts.some(op => op.product.isRequiredCheckExpiry)) this._isRequiredCheckExpiry = true
1367
1373
 
1368
1374
  if (this._isRequireSerialNumberScanningInbound) {
1369
1375
  if (!this._selectedOrderProduct) {
@@ -1820,9 +1826,11 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
1820
1826
 
1821
1827
  if (
1822
1828
  !this.orderProductData.records
1823
- .filter(
1824
- task =>
1825
- 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
1826
1834
  )
1827
1835
  .every(task => task.issue)
1828
1836
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/operato-wms",
3
- "version": "4.3.554",
3
+ "version": "4.3.557",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -108,7 +108,7 @@
108
108
  "@things-factory/transport-base": "^4.3.535",
109
109
  "@things-factory/tutorial-ui": "^4.3.535",
110
110
  "@things-factory/warehouse-base": "^4.3.554",
111
- "@things-factory/worksheet-base": "^4.3.554"
111
+ "@things-factory/worksheet-base": "^4.3.555"
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": "140a36c8034423a78e61a366feb9fa4d0c658301"
120
+ "gitHead": "5f28856db7a8d5ec5bdff6a19c3e6440a403a77f"
121
121
  }