@things-factory/operato-wms 4.3.628 → 4.3.629

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.
@@ -424,9 +424,10 @@ class ValidateGanPopup extends localize(i18next)(LitElement) {
424
424
  throw new Error(i18next.t('text.please_recheck_your_request_data'))
425
425
  }
426
426
  if (this._enableLotIdInput == false) {
427
+ //make sure no batchId and sku pair is duplicated in the same gan
427
428
  let batchSkuPairs = this.records
428
429
  .filter(item => item.batchId !== null && item.sku !== null) // Filter out items with null batchId or sku
429
- .map(item => `${item.batchId.toLowerCase()}-${item.sku.toLowerCase()}`) // Create a combined key of batchId and sku
430
+ .map(item => `${item.batchId.toLowerCase()}-${item.sku.toLowerCase()}-${item.refNo.toLowerCase()}`) // Create a combined key of batchId and sku
430
431
 
431
432
  let uniqueBatchSkuPairs = new Set(batchSkuPairs)
432
433
  if (uniqueBatchSkuPairs.size !== batchSkuPairs.length) {
@@ -138,7 +138,7 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
138
138
  }
139
139
 
140
140
  if (this._selectedOrderProduct && this._isRequireSerialNumberScanningInbound) {
141
- if (this._selectedOrderProduct.sku != this._previousSelectedOrderProduct.sku) {
141
+ if (this._selectedOrderProduct.sku != this._previousSelectedOrderProduct?.sku) {
142
142
  this._previousSelectedOrderProduct = this._selectedOrderProduct
143
143
  this._productBarcodeScanned = null
144
144
  }
@@ -839,6 +839,11 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
839
839
  this._selectedOrderProduct = null
840
840
  if (this._isRequireSerialNumberScanningInbound) {
841
841
  this.serialNumberInput.value = ''
842
+
843
+ if (this.expDateInput?.value) {
844
+ this.expDateInput.value = null
845
+ }
846
+
842
847
  if (this._enableCartonLabel) {
843
848
  this.cartonInput.value = ''
844
849
  this.productBarcodeInput.value = ''
@@ -1005,9 +1010,10 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
1005
1010
  }
1006
1011
 
1007
1012
  _resetInput() {
1008
- if (this._selectedOrderProduct?.isRequiredCheckExpiry) this.expDateInput.value = null
1013
+ if (this._selectedOrderProduct?.isRequiredCheckExpiry && !this._isRequireSerialNumberScanningInbound)
1014
+ this.expDateInput.value = null
1009
1015
 
1010
- if (this._isRequiredCheckExpiry) {
1016
+ if (this._isRequiredCheckExpiry && !this._isRequireSerialNumberScanningInbound) {
1011
1017
  this.expDateInput.value = null
1012
1018
  this._focusOnExpiryDateInput()
1013
1019
  }
@@ -1532,11 +1538,9 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
1532
1538
  throw new Error(i18next.t('text.qty_should_be_positive'))
1533
1539
  }
1534
1540
  } else if (this._isRequireSerialNumberScanningInbound) {
1535
- if (this.serialNumberInput) {
1536
- if (!this.serialNumberInput.value) {
1537
- this._focusOnSerialNumberInput()
1538
- throw new Error(i18next.t('text.enter_serial_number'))
1539
- }
1541
+ if (!this.serialNumberInput?.value) {
1542
+ this._focusOnSerialNumberInput()
1543
+ throw new Error(i18next.t('text.enter_serial_number'))
1540
1544
  }
1541
1545
  }
1542
1546
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/operato-wms",
3
- "version": "4.3.628",
3
+ "version": "4.3.629",
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.591",
92
92
  "@things-factory/product-base": "^4.3.595",
93
93
  "@things-factory/resource-ui": "^4.3.591",
94
- "@things-factory/sales-ui": "^4.3.626",
94
+ "@things-factory/sales-ui": "^4.3.629",
95
95
  "@things-factory/scene-data-transform": "^4.3.591",
96
96
  "@things-factory/scene-excel": "^4.3.591",
97
97
  "@things-factory/scene-firebase": "^4.3.591",
@@ -108,7 +108,7 @@
108
108
  "@things-factory/transport-base": "^4.3.595",
109
109
  "@things-factory/tutorial-ui": "^4.3.591",
110
110
  "@things-factory/warehouse-base": "^4.3.626",
111
- "@things-factory/worksheet-base": "^4.3.628"
111
+ "@things-factory/worksheet-base": "^4.3.629"
112
112
  },
113
113
  "devDependencies": {
114
114
  "@things-factory/builder": "^4.3.591",
@@ -117,5 +117,5 @@
117
117
  "cypress-localstorage-commands": "^1.6.1",
118
118
  "eslint-plugin-cypress": "^2.12.1"
119
119
  },
120
- "gitHead": "a127c5d511cda434b4c4b9fdac4fc5762c1e3686"
120
+ "gitHead": "4ddcb5a24ebd10c7729dbd3bb67907872cb2cefb"
121
121
  }
@@ -1450,6 +1450,7 @@
1450
1450
  "text.driver_is_empty": "driver name is empty",
1451
1451
  "text.driver_is_not_selected": "driver is not selected",
1452
1452
  "text.duplicate_entry_in_vas_details": "duplicate entry in vas details",
1453
+ "text.duplicated_batch_id_and_sku": "duplicated batch id and sku",
1453
1454
  "text.duplicated_lot_id": "duplicated lot id",
1454
1455
  "text.duplicated_batch_id": "duplicated batch id",
1455
1456
  "text.duplicated_romoval_on_same_sn": "duplicated removal on same serial no",
@@ -1431,6 +1431,7 @@
1431
1431
  "text.driver_and_vehicle_is_not_selected": "운송기사와 차량이 선택되지 않았습니다",
1432
1432
  "text.driver_is_empty": "[ko] driver name is empty",
1433
1433
  "text.driver_is_not_selected": "운송기사가 선택되지 않았습니다",
1434
+ "text.duplicated_batch_id_and_sku": "[ko] duplicated batch id and sku",
1434
1435
  "text.duplicated_vas_on_same_batch": "같은 배치에 동일한 서비스가 존재합니다",
1435
1436
  "text.duplicated_lot_id": "[ko] duplicated lot id",
1436
1437
  "text.duplicated_batch_id": "[ko] duplicated batch id",
@@ -1403,6 +1403,7 @@
1403
1403
  "text.driver_and_vehicle_is_not_selected": "pemandu dan kenderaan belum dipilih",
1404
1404
  "text.driver_is_empty": "[ms] driver name is empty",
1405
1405
  "text.driver_is_not_selected": "pemandu tidak dipilih",
1406
+ "text.duplicated_batch_id_and_sku": "[ms] duplicated batch id and sku",
1406
1407
  "text.duplicated_vas_on_same_batch": "salinan value added service pada kumpulan yang sama",
1407
1408
  "text.duplicated_lot_id": "[ms] duplicated lot id",
1408
1409
  "text.duplicated_batch_id": "[ms] duplicated batch id",
@@ -1368,9 +1368,10 @@
1368
1368
  "text.draft_order_success": "[zh] Draft order successfully converted to RO",
1369
1369
  "text.draft_order_insufficient": "[zh] Draft order failed: Insufficient quantity",
1370
1370
  "text.draft_order_deleted_detail": "[zh] Draft order failed: Missing Product Details",
1371
- "text.driver_and_vehicle_is_not_selected": "driver and vehicle is not selected",
1371
+ "text.driver_and_vehicle_is_not_selected": "[zh] driver and vehicle is not selected",
1372
1372
  "text.driver_is_empty": "[zh] driver name is empty",
1373
- "text.driver_is_not_selected": "driver is not selected",
1373
+ "text.driver_is_not_selected": "[zh] driver is not selected",
1374
+ "text.duplicated_batch_id_and_sku": "[zh] duplicated batch id and sku",
1374
1375
  "text.duplicated_vas_on_same_batch": "duplicated vas on same batch",
1375
1376
  "text.duplicated_lot_id": "[zh] duplicated lot id",
1376
1377
  "text.duplicated_batch_id": "[zh] duplicated batch id",
@@ -1380,12 +1381,12 @@
1380
1381
  "text.empty_product_barcode": "[zh] empty product barcode",
1381
1382
  "text.empty_serial_number": "[zh]empty serial number",
1382
1383
  "text.empty_value_in_add_product_list": "[zh]empty value in add product list",
1383
- "text.empty_value_in_list": "empty value in list",
1384
+ "text.empty_value_in_list": "[zh] empty value in list",
1384
1385
  "text.enter_qty": "输入数量",
1385
1386
  "text.enter_serial_number": "输入序列号",
1386
- "text.enter_zone_name": "enter zone name",
1387
+ "text.enter_zone_name": "[zh] enter zone name",
1387
1388
  "text.eta_date_is_required": "[zh]eta date is required",
1388
- "text.executing_release_order": "executing release order",
1389
+ "text.executing_release_order": "[zh] executing release order",
1389
1390
  "text.expiration_date_updated": "[zh]expiration date updated",
1390
1391
  "text.expiration_date_will_be_earlier_than_today": "[zh]expiration date will be earlier than today",
1391
1392
  "text.expiry_date_is_empty": "[zh]expiry date is empty",