@things-factory/operato-wms 4.3.213 → 4.3.215

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.
@@ -135,7 +135,7 @@ class AdjustPalletQty extends localize(i18next)(LitElement) {
135
135
  }
136
136
  }
137
137
  `,
138
- variables: { name: this.record?.opName, patch: { palletQty: parseInt(this._palletQtyInput.value) } }
138
+ variables: { name: this.record?.name, patch: { palletQty: parseInt(this._palletQtyInput.value) } }
139
139
  })
140
140
 
141
141
  if (!response.errors) {
@@ -917,7 +917,7 @@ class PutawayProduct extends connect(store)(localize(i18next)(PageView)) {
917
917
  `,
918
918
  variables: {
919
919
  arrivalNoticeNo: this._orderNo,
920
- worksheetDetailName: this._records.map(x => x.name),
920
+ worksheetDetailName: this._selectedOrderProduct.name,
921
921
  palletId: this._enableCartonLabel ? null : this.getInput(this.palletInput).value,
922
922
  cartonId: this._enableCartonLabel ? this.getInput(this.cartonInput).value : null,
923
923
  toLocation: this.locationInput ? this.locationInput.value : this._selectedLocation
@@ -1219,7 +1219,7 @@ class PutawayProduct extends connect(store)(localize(i18next)(PageView)) {
1219
1219
  if (records.length > 1) {
1220
1220
  this._openPutawaySameCartonPopup(this.getInput(this.cartonInput).value)
1221
1221
  } else {
1222
- this._records = records
1222
+ this._records = this.data.records
1223
1223
  this._transactionHandler(e)
1224
1224
  }
1225
1225
  } catch (e) {
@@ -1264,13 +1264,23 @@ class PutawayProduct extends connect(store)(localize(i18next)(PageView)) {
1264
1264
  throw new Error(i18next.t('text.unable_to_find_matching_x', { state: { x: i18next.t('label.carton') } }))
1265
1265
  }
1266
1266
  } else {
1267
- if (!this._selectedOrderProduct) throw new Error(i18next.t('text.target_is_not_selected'))
1267
+ let palletInputValue = this.getInput(this.palletInput).value
1268
+
1268
1269
  // 2. pallet id existing
1269
- if (!this.getInput(this.palletInput).value) {
1270
+ if (!palletInputValue) {
1270
1271
  this._focusOnPalletInput()
1271
1272
  throw new Error(i18next.t('text.lot_id_is_empty'))
1272
1273
  }
1273
1274
 
1275
+ if (!this._selectedOrderProduct?.palletId !== palletInputValue) {
1276
+ this._selectedOrderProduct = this.data.records.find(x => x.palletId == palletInputValue && x.status !== 'DONE')
1277
+
1278
+ if (!this._selectedOrderProduct)
1279
+ throw new Error(i18next.t('text.unable_to_find_matching_x', { state: { x: i18next.t('label.lot_id') } }))
1280
+ }
1281
+
1282
+ if (!this._selectedOrderProduct) throw new Error(i18next.t('text.target_is_not_selected'))
1283
+
1274
1284
  // 3. equality of pallet id
1275
1285
  if (this._selectedOrderProduct.reusablePalletName !== this.getInput(this.palletInput).value) {
1276
1286
  if (this._selectedOrderProduct.palletId !== this.getInput(this.palletInput).value) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/operato-wms",
3
- "version": "4.3.213",
3
+ "version": "4.3.215",
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.179",
92
92
  "@things-factory/product-base": "^4.3.204",
93
93
  "@things-factory/resource-ui": "^4.3.179",
94
- "@things-factory/sales-ui": "^4.3.213",
94
+ "@things-factory/sales-ui": "^4.3.214",
95
95
  "@things-factory/scene-data-transform": "^4.3.159",
96
96
  "@things-factory/scene-excel": "^4.3.159",
97
97
  "@things-factory/scene-firebase": "^4.3.159",
@@ -108,7 +108,7 @@
108
108
  "@things-factory/transport-base": "^4.3.179",
109
109
  "@things-factory/tutorial-ui": "^4.3.179",
110
110
  "@things-factory/warehouse-base": "^4.3.212",
111
- "@things-factory/worksheet-base": "^4.3.213"
111
+ "@things-factory/worksheet-base": "^4.3.214"
112
112
  },
113
113
  "devDependencies": {
114
114
  "@things-factory/builder": "^4.3.179",
@@ -117,5 +117,5 @@
117
117
  "cypress-localstorage-commands": "^1.6.1",
118
118
  "eslint-plugin-cypress": "^2.12.1"
119
119
  },
120
- "gitHead": "c5faf2eae4b713b81fd65f0ca79ba59b976d8c9d"
120
+ "gitHead": "6769cca108169f76d8d6c5337eb158f662ad122d"
121
121
  }