@things-factory/operato-wms 4.3.647 → 4.3.648

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.
@@ -379,32 +379,20 @@ class CycleCountRecheckPopup extends localize(i18next)(LitElement) {
379
379
 
380
380
  let mutation
381
381
  if (this.enableCartonLabel) {
382
- variables.cartonIds = this.grist.selected.map(record => record.cartonId)
383
- variables.batchIds = this.grist.selected.map(record => record.batchId)
384
- variables.productDetailIds = this.grist.selected.map(record => record.productDetail.id)
385
- variables.locationNames = this.grist.selected.map(record => record.location.name)
386
- variables.countNos = this.grist.selected.map(record => record.countNo)
382
+ variables.inventoryCheckItemIds = this.grist.selected.map(record => record.id)
387
383
 
388
384
  mutation = gql`
389
385
  mutation generateCycleCountWorksheetCarton(
390
386
  $executionDate: String!
391
387
  $customerId: String!
392
388
  $cycleCountNo: String
393
- $cartonIds: [String]
394
- $batchIds: [String]
395
- $productDetailIds: [String]
396
- $locationNames: [String]
397
- $countNos: [Int]
389
+ $inventoryCheckItemIds: [String]
398
390
  ) {
399
391
  generateCycleCountWorksheetCarton(
400
392
  executionDate: $executionDate
401
393
  customerId: $customerId
402
394
  cycleCountNo: $cycleCountNo
403
- cartonIds: $cartonIds
404
- batchIds: $batchIds
405
- productDetailIds: $productDetailIds
406
- locationNames: $locationNames
407
- countNos: $countNos
395
+ inventoryCheckItemIds: $inventoryCheckItemIds
408
396
  ) {
409
397
  name
410
398
  }
@@ -373,11 +373,12 @@ class CycleCountWorksheetList extends localize(i18next)(PageView) {
373
373
  total: response.data.worksheets.total || 0,
374
374
  records:
375
375
  response.data.worksheets.items.map(item => {
376
+ const status = (item.status === ORDER_STATUS.DONE.value) ? ORDER_STATUS.DONE.value : item.inventoryCheck.status
376
377
  return {
377
378
  ...item,
378
379
  executionDate: item.inventoryCheck && item.inventoryCheck.executionDate,
379
380
  status: item.status,
380
- inventoryCheckStatus: item.inventoryCheck && item.inventoryCheck.status
381
+ inventoryCheckStatus: status
381
382
  }
382
383
  }) || {}
383
384
  }
@@ -438,12 +438,12 @@ class InspectingProduct extends connect(store)(localize(i18next)(PageView)) {
438
438
  </label>
439
439
  <br />
440
440
  <span class="input-font" ?hidden=${this._editMode.inspectedBatchNo}>${
441
- this._currentCard.inspectedBatchNo
442
- ? this._currentCard.inspectedBatchNo
443
- : this._hideCCColumnSetting && !this._enableCartonLabel
444
- ? ''
445
- : this._currentCard.originBatchNo
446
- }
441
+ this._currentCard.inspectedBatchNo
442
+ ? this._currentCard.inspectedBatchNo
443
+ : this._hideCCColumnSetting && !this._enableCartonLabel
444
+ ? ''
445
+ : this._currentCard.originBatchNo
446
+ }
447
447
  <mwc-icon-button
448
448
  icon="edit"
449
449
  align="end"
@@ -997,7 +997,7 @@ class InspectingProduct extends connect(store)(localize(i18next)(PageView)) {
997
997
  formatMissingInventories(wsdInfos) {
998
998
  return wsdInfos
999
999
  .filter(wsdInfo => wsdInfo.relatedInvCheckItem.status === INVENTORY_CHECK_ITEM_STATUS.MISSING.value)
1000
- .map(this.mapWorksheetDetails)
1000
+ .map(record => this.mapWorksheetDetails(record))
1001
1001
  }
1002
1002
 
1003
1003
  async submitInventoryCheck() {
@@ -126,7 +126,7 @@ class RelocateInventoryPopup extends localize(i18next)(LitElement) {
126
126
  mutation relocateInventory(
127
127
  $worksheetDetailName: String!
128
128
  $inspectedBatchNo: String!
129
- $inspectedQty: Int!
129
+ $inspectedQty: Float!
130
130
  $inspectedUomValue: Float!
131
131
  $inspectedLocationName: String!
132
132
  ) {
@@ -156,7 +156,7 @@ class RelocateInventoryPopup extends localize(i18next)(LitElement) {
156
156
  $batchId: String!
157
157
  $locationId: String!
158
158
  $inspectedBatchNo: String!
159
- $inspectedQty: Int!
159
+ $inspectedQty: Float!
160
160
  $inspectedUomValue: Float!
161
161
  $inspectedLocationName: String!
162
162
  ) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/operato-wms",
3
- "version": "4.3.647",
3
+ "version": "4.3.648",
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.631",
109
109
  "@things-factory/tutorial-ui": "^4.3.591",
110
110
  "@things-factory/warehouse-base": "^4.3.647",
111
- "@things-factory/worksheet-base": "^4.3.647"
111
+ "@things-factory/worksheet-base": "^4.3.648"
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": "bd3ff365e2f8fd74c2259298a6f7b17cf1040af1"
120
+ "gitHead": "d58eb95bef5135cd9ea3c2c108d904ef37143ba9"
121
121
  }