@things-factory/operato-wms 4.3.584 → 4.3.587

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.
@@ -411,15 +411,14 @@ class ValidateGanPopup extends localize(i18next)(LitElement) {
411
411
  throw new Error(i18next.t('text.please_recheck_your_request_data'))
412
412
  }
413
413
  if (this._enableLotIdInput == false) {
414
- let batchIds = this.records
415
- .map(item => item.batchId)
416
- .filter(batchId => batchId !== null)
417
- .map(batchId => batchId.toLowerCase())
418
-
419
- let uniqueBatchIds = new Set(batchIds)
420
- if (uniqueBatchIds.size !== batchIds.length) {
421
- throw new Error(i18next.t('text.duplicated_batch_id'))
422
- }
414
+ let batchSkuPairs = this.records
415
+ .filter(item => item.batchId !== null && item.sku !== null) // Filter out items with null batchId or sku
416
+ .map(item => `${item.batchId.toLowerCase()}-${item.sku.toLowerCase()}`) // Create a combined key of batchId and sku
417
+
418
+ let uniqueBatchSkuPairs = new Set(batchSkuPairs)
419
+ if (uniqueBatchSkuPairs.size !== batchSkuPairs.length) {
420
+ throw new Error(i18next.t('text.duplicated_batch_id_and_sku'))
421
+ }
423
422
  } else {
424
423
  let palletIds = this.records
425
424
  .map(item => item.palletId)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/operato-wms",
3
- "version": "4.3.584",
3
+ "version": "4.3.587",
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.582",
93
93
  "@things-factory/resource-ui": "^4.3.582",
94
- "@things-factory/sales-ui": "^4.3.584",
94
+ "@things-factory/sales-ui": "^4.3.587",
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.582",
109
109
  "@things-factory/tutorial-ui": "^4.3.582",
110
- "@things-factory/warehouse-base": "^4.3.582",
111
- "@things-factory/worksheet-base": "^4.3.584"
110
+ "@things-factory/warehouse-base": "^4.3.587",
111
+ "@things-factory/worksheet-base": "^4.3.587"
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": "6c7a965eb017c8268a11dc026cc94a4dfd41d3da"
120
+ "gitHead": "362e543962ff889673b2775ced4517eafd876cdc"
121
121
  }