@things-factory/operato-pms 4.1.40 → 4.2.2

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.
@@ -209,7 +209,6 @@ class DispatchmentCreateRecord extends localize(i18next)(PageView) {
209
209
  const newData = data.records.filter((_, idx) => idx !== rowIndex)
210
210
  this.dispatchmentData = { ...this.dispatchmentData, records: newData }
211
211
  this.dispatchmentGrist.dirtyData.records = newData
212
- this._updateInventoryList()
213
212
  }
214
213
  }
215
214
  },
@@ -272,7 +271,6 @@ class DispatchmentCreateRecord extends localize(i18next)(PageView) {
272
271
  if (changedColumn === 'collectedRampWeight') {
273
272
  this._validateReleaseTonnage(changeRecord.collectedRampWeight)
274
273
  }
275
- this._updateInventoryList()
276
274
  } catch (e) {
277
275
  const beforeValue = event.detail.before && event.detail.before[event.detail.column.name]
278
276
  if (beforeValue) {
@@ -290,33 +288,6 @@ class DispatchmentCreateRecord extends localize(i18next)(PageView) {
290
288
  }
291
289
  }
292
290
 
293
- async _updateInventoryList() {
294
- const _selectedRamp = (this.dispatchmentGrist.dirtyData.records || []).map(record => record.ramp.id)
295
- this.dispatchmentGristConfig = {
296
- ...this.dispatchmentGristConfig,
297
- columns: this.dispatchmentGristConfig.columns.map(column => {
298
- if (column.name === 'ramp') {
299
- column.record.options.basicArgs = {
300
- ...column.record.options.basicArgs,
301
- filters: [...column.record.options.basicArgs.filters.filter(filter => filter.name !== 'id')]
302
- }
303
-
304
- if (_selectedRamp.length)
305
- column.record.options.basicArgs.filters = [
306
- ...column.record.options.basicArgs.filters,
307
- {
308
- name: 'id',
309
- value: _selectedRamp,
310
- operator: 'notin'
311
- }
312
- ]
313
- }
314
-
315
- return column
316
- })
317
- }
318
- }
319
-
320
291
  async _generateDispatchmentRecord() {
321
292
  try {
322
293
  this._validateForm()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/operato-pms",
3
- "version": "4.1.40",
3
+ "version": "4.2.2",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -96,5 +96,5 @@
96
96
  "devDependencies": {
97
97
  "@things-factory/builder": "^4.1.40"
98
98
  },
99
- "gitHead": "060b5c664e80a6fcba09598f2c7ceffe067e02bf"
99
+ "gitHead": "29a63a11161cd2b9692f9e9aafbf4d34b17a6a7b"
100
100
  }