@things-factory/operato-wms 4.1.38 → 4.2.0

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.
Files changed (70) hide show
  1. package/.eslintrc.json +11 -0
  2. package/client/pages/constants/index.js +1 -0
  3. package/client/pages/constants/inventory-item-change.js +10 -0
  4. package/client/pages/constants/order.js +5 -0
  5. package/client/pages/constants/picking-strategy.js +4 -0
  6. package/client/pages/constants/setting.js +1 -0
  7. package/client/pages/inbound/serial-number-list-popup.js +0 -1
  8. package/client/pages/inventory/inventory-adjustment-approval.js +34 -3
  9. package/client/pages/inventory/inventory-adjustment.js +144 -5
  10. package/client/pages/inventory/serial-number-list-popup.js +468 -0
  11. package/client/pages/master/pallet-list.js +24 -0
  12. package/client/pages/order/arrival-notice/edit-product-popup.js +13 -0
  13. package/client/pages/order/release-order/b2b/b2b-order-list.js +24 -1
  14. package/client/pages/order/release-order/batch-picking-popup.js +8 -0
  15. package/client/pages/outbound/inventory-assign-popup.js +3 -24
  16. package/client/pages/outbound/inventory-auto-assign-popup.js +25 -50
  17. package/client/pages/outbound/loading-product.js +3 -3
  18. package/client/pages/outbound/merged-outbound-worksheet.js +148 -3
  19. package/client/pages/outbound/packing-product.js +109 -9
  20. package/client/pages/outbound/picking-product.js +21 -8
  21. package/client/pages/outbound/picking-replacement-popup.js +5 -0
  22. package/client/pages/outbound/return-pallet-check-popup.js +7 -1
  23. package/client/pages/outbound/route-label-popup.js +464 -0
  24. package/client/pages/outbound/select-operator-popup.js +3 -3
  25. package/client/pages/outbound/serial-number-popup.js +55 -26
  26. package/client/pages/outbound/single-outbound-worksheet.js +154 -5
  27. package/client/pages/outbound/sorting-product.js +125 -34
  28. package/client/pages/outbound/worksheet-batch-picking.js +13 -17
  29. package/client/pages/outbound/worksheet-picking.js +4 -8
  30. package/cypress/fixtures/globals.json +3 -0
  31. package/cypress/fixtures/master-data/location.json +31 -0
  32. package/cypress/fixtures/master-data/pallet.json +129 -0
  33. package/cypress/fixtures/master-data/palletImport.xlsx +0 -0
  34. package/cypress/fixtures/master-data/transport-driver.json +22 -0
  35. package/cypress/fixtures/master-data/transport-vehicle.json +24 -0
  36. package/cypress/fixtures/master-data/transportDriverDeletedImport.xlsx +0 -0
  37. package/cypress/fixtures/master-data/transportDriverImport.xlsx +0 -0
  38. package/cypress/fixtures/master-data/transportVehicleDeletedImport.xlsx +0 -0
  39. package/cypress/fixtures/master-data/transportVehicleImport.xlsx +0 -0
  40. package/cypress/fixtures/master-data/transportVehicleNameSizeImport.xlsx +0 -0
  41. package/cypress/fixtures/master-data/transportVehicleNameStatusImport.xlsx +0 -0
  42. package/cypress/fixtures/master-data/warehouse.json +20 -0
  43. package/cypress/fixtures/master-data/warehouseImport.xlsx +0 -0
  44. package/cypress/integration/master-data/location.spec.js +31 -0
  45. package/cypress/integration/master-data/pallet.spec.js +176 -0
  46. package/cypress/integration/master-data/transport-driver.spec.js +131 -0
  47. package/cypress/integration/master-data/transport-vehicle.spec.js +165 -0
  48. package/cypress/integration/master-data/warehouse.spec.js +135 -0
  49. package/cypress/plugins/index.js +22 -0
  50. package/cypress/support/commands.js +425 -0
  51. package/cypress/support/index.js +31 -0
  52. package/cypress.json +9 -0
  53. package/dist-server/graphql/resolvers/board-setting/board-settings.js +2 -1
  54. package/dist-server/graphql/resolvers/board-setting/board-settings.js.map +1 -1
  55. package/dist-server/graphql/resolvers/dashboard/outbound-order-by-status.js +7 -10
  56. package/dist-server/graphql/resolvers/dashboard/outbound-order-by-status.js.map +1 -1
  57. package/dist-server/opa-app-setting-constants.js +2 -1
  58. package/dist-server/opa-app-setting-constants.js.map +1 -1
  59. package/helps/release-note.ko.md +0 -2
  60. package/helps/release-note.md +0 -2
  61. package/helps/release-note.ms.md +0 -2
  62. package/helps/release-note.zh.md +0 -2
  63. package/package.json +61 -51
  64. package/server/graphql/resolvers/board-setting/board-settings.ts +4 -2
  65. package/server/graphql/resolvers/dashboard/outbound-order-by-status.ts +7 -10
  66. package/server/opa-app-setting-constants.ts +2 -1
  67. package/translations/en.json +15 -4
  68. package/translations/ko.json +12 -2
  69. package/translations/ms.json +11 -2
  70. package/translations/zh.json +11 -2
@@ -1,6 +1,7 @@
1
1
  import '@things-factory/barcode-ui'
2
2
  import '@things-factory/grist-ui'
3
3
  import '../components/worksheet-information-popup'
4
+ import './serial-number-popup'
4
5
 
5
6
  import gql from 'graphql-tag'
6
7
  import { css, html } from 'lit-element'
@@ -15,7 +16,7 @@ import { CommonButtonStyles } from '@things-factory/styles'
15
16
  import { isMobileDevice } from '@things-factory/utils'
16
17
 
17
18
  import { fetchSettingRule } from '../../fetch-setting-value'
18
- import { PLATFORM, WORKSHEET_STATUS } from '../constants'
19
+ import { ORDER_SOURCES, PLATFORM, WORKSHEET_STATUS } from '../constants'
19
20
 
20
21
  class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
21
22
  static get properties() {
@@ -27,6 +28,7 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
27
28
  orderInformation: String,
28
29
  platform: String,
29
30
  releaseGoodNo: String,
31
+ releaseGoodId: String,
30
32
  shippingProvider: String,
31
33
  trackingNo: String,
32
34
  _bizplaceName: String,
@@ -35,7 +37,9 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
35
37
  _logisticsInitiated: Boolean,
36
38
  _selectedTaskStatus: String,
37
39
  _worksheetInfo: Object,
38
- _scanning: Boolean
40
+ _scanning: Boolean,
41
+ _isRequireSerialNumberScanningOutbound: Boolean,
42
+ _isBatchPicking: Boolean
39
43
  }
40
44
  }
41
45
 
@@ -124,6 +128,14 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
124
128
  })
125
129
  }
126
130
 
131
+ if (this._selectedOrderInventory && this._isRequireSerialNumberScanningOutbound && this._isBatchPicking) {
132
+ actions.push({
133
+ title: i18next.t('button.serial_number'),
134
+ action: this.openSerialNumberPopup.bind(this),
135
+ ...CommonButtonStyles.activate
136
+ })
137
+ }
138
+
127
139
  if (this._selectedTaskStatus === 'EXECUTING') {
128
140
  actions.push({
129
141
  title: i18next.t('button.pack'),
@@ -177,6 +189,10 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
177
189
  return this.shadowRoot.querySelector('input[name=packedQty]')
178
190
  }
179
191
 
192
+ get serialInput() {
193
+ return this.shadowRoot.querySelector('barcode-scanable-input[name=serialNumber]')?.shadowRoot.querySelector('input')
194
+ }
195
+
180
196
  get scannable() {
181
197
  return this._selectedTaskStatus && this._selectedTaskStatus === WORKSHEET_STATUS.EXECUTING.value
182
198
  }
@@ -193,6 +209,12 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
193
209
  setTimeout(() => this.releaseQtyInput.focus(), 100)
194
210
  }
195
211
 
212
+ _focusOnSerialInput() {
213
+ if (this.serialInput) {
214
+ setTimeout(() => this.serialInput.focus(), 50)
215
+ }
216
+ }
217
+
196
218
  render() {
197
219
  return html`
198
220
  <form id="info-form" class="multi-column-form">
@@ -219,10 +241,18 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
219
241
  ${this._enableProductScanning
220
242
  ? html` <label>${i18next.t('label.product_barcode')}</label>
221
243
  <barcode-scanable-input name="productBarcode" custom-input></barcode-scanable-input>`
244
+ : this._isRequireSerialNumberScanningOutbound && this._isBatchPicking
245
+ ? ``
222
246
  : html`
223
247
  <label>${i18next.t('label.packed_qty')}</label>
224
248
  <input type="number" min="1" name="packedQty" />
225
249
  `}
250
+ ${this._isRequireSerialNumberScanningOutbound && this._isBatchPicking
251
+ ? html`
252
+ <label>${i18next.t('label.serial_number')}</label>
253
+ <barcode-scanable-input name="serialNumber" custom-input></barcode-scanable-input>
254
+ `
255
+ : ``}
226
256
  </fieldset>
227
257
  </form>
228
258
 
@@ -248,11 +278,14 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
248
278
  super()
249
279
  this.data = { records: [] }
250
280
  this.releaseGoodNo = ''
281
+ this.releaseGoodId = ''
251
282
  this._enableProductScanning = false
252
283
  this._productName = ''
253
284
  this._selectedOrderInventory = null
254
285
  this._selectedTaskStatus = null
255
286
  this._scanning = false
287
+ this._isRequireSerialNumberScanningOutbound = false
288
+ this._isBatchPicking = false
256
289
  }
257
290
 
258
291
  updated(changedProps) {
@@ -270,10 +303,13 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
270
303
  if (data.records.length && record) {
271
304
  this._selectedOrderInventory = record
272
305
  this._selectedTaskStatus = record.status
306
+ this._isRequireSerialNumberScanningOutbound = record.product.isRequireSerialNumberScanningOutbound
273
307
 
274
308
  if (this._enableProductScanning) this._focusOnProductBarcodeInput()
275
309
  else this._focusOnReleaseQtyInput()
276
310
  }
311
+
312
+ this.updateContext()
277
313
  }
278
314
  }
279
315
  },
@@ -347,6 +383,7 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
347
383
  packingWorksheet(releaseGoodNo: $releaseGoodNo) {
348
384
  worksheetInfo {
349
385
  releaseGood {
386
+ id
350
387
  name
351
388
  }
352
389
  bizplaceName
@@ -379,13 +416,17 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
379
416
  }
380
417
  worksheetDetailInfos {
381
418
  name
419
+ palletId
420
+ cartonId
382
421
  batchId
383
422
  batchIdRef
384
423
  sku
385
424
  product {
425
+ id
386
426
  name
387
427
  description
388
428
  gtin
429
+ isRequireSerialNumberScanningOutbound
389
430
  productDetails {
390
431
  id
391
432
  packingType
@@ -407,10 +448,13 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
407
448
  batchId
408
449
  batchIdRef
409
450
  packingType
451
+ refWorksheetId
410
452
  product {
453
+ id
411
454
  sku
412
455
  name
413
456
  description
457
+ isRequireSerialNumberScanningOutbound
414
458
  }
415
459
  }
416
460
  }
@@ -422,6 +466,7 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
422
466
 
423
467
  if (!response.errors) {
424
468
  this.releaseGoodNo = response.data.packingWorksheet.worksheetInfo.releaseGood.name
469
+ this.releaseGoodId = response.data.packingWorksheet.worksheetInfo.releaseGood.id
425
470
  if (!response.data?.packingWorksheet) return
426
471
 
427
472
  const { worksheetInfo, worksheetDetailInfos } = response.data.packingWorksheet
@@ -435,6 +480,8 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
435
480
  this.shippingProvider = worksheetInfo.shippingProvider
436
481
  this.orderInformation = worksheetInfo.marketplaceOrder
437
482
 
483
+ this._isBatchPicking = worksheetDetailInfos[0].relatedOrderInv?.refWorksheetId ? true : false
484
+
438
485
  this._bizplaceName = worksheetInfo.bizplaceName
439
486
  this._worksheetInfo = worksheetInfo
440
487
 
@@ -445,6 +492,10 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
445
492
  this._selectedTaskStatus = null
446
493
  this.inputForm.reset()
447
494
  }
495
+ } else {
496
+ this._selectedOrderInventory = worksheetDetailInfos[0]
497
+ this._isRequireSerialNumberScanningOutbound =
498
+ worksheetDetailInfos[0].product?.isRequireSerialNumberScanningOutbound
448
499
  }
449
500
 
450
501
  this._enableProductScanning = await fetchSettingRule('enable-product-scanning', worksheetInfo.partnerDomainId)
@@ -637,10 +688,15 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
637
688
  this._selectedOrderInventory = null
638
689
  }
639
690
 
691
+ if (this._isRequireSerialNumberScanningOutbound && this._isBatchPicking) {
692
+ this.serialInput.value = ''
693
+ }
694
+
640
695
  this._fetchInventories(this.releaseGoodNo)
641
696
  }
642
697
  } catch (e) {
643
- if (this._enableProductScanning) {
698
+ if (this._isRequireSerialNumberScanningOutbound && this._isBatchPicking) this.serialInput.value = ''
699
+ else if (this._enableProductScanning && !this._isRequireSerialNumberScanningOutbound) {
644
700
  this.productBarcodeInput.value = ''
645
701
  this._focusOnProductBarcodeInput()
646
702
  } else {
@@ -661,13 +717,19 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
661
717
  this._scanning = true
662
718
  return await client.mutate({
663
719
  mutation: gql`
664
- mutation scanProductPacking($worksheetDetailName: String!, $productBarcode: String!) {
665
- scanProductPacking(worksheetDetailName: $worksheetDetailName, productBarcode: $productBarcode)
720
+ mutation scanProductPacking($worksheetDetailName: String!, $productBarcode: String!, $serialNumber: String) {
721
+ scanProductPacking(
722
+ worksheetDetailName: $worksheetDetailName
723
+ productBarcode: $productBarcode
724
+ serialNumber: $serialNumber
725
+ )
666
726
  }
667
727
  `,
668
728
  variables: {
669
729
  worksheetDetailName: this._selectedOrderInventory.name,
670
- productBarcode: this.productBarcodeInput.value.trim()
730
+ productBarcode: this.productBarcodeInput.value.trim(),
731
+ serialNumber:
732
+ this._isRequireSerialNumberScanningOutbound && this._isBatchPicking ? this.serialInput.value.trim() : null
671
733
  }
672
734
  })
673
735
  }
@@ -677,13 +739,18 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
677
739
  this._scanning = true
678
740
  return await client.mutate({
679
741
  mutation: gql`
680
- mutation packing($worksheetDetailName: String!, $releaseQty: Int!) {
681
- packing(worksheetDetailName: $worksheetDetailName, releaseQty: $releaseQty)
742
+ mutation packing($worksheetDetailName: String!, $releaseQty: Int!, $serialNumber: String) {
743
+ packing(worksheetDetailName: $worksheetDetailName, releaseQty: $releaseQty, serialNumber: $serialNumber)
682
744
  }
683
745
  `,
684
746
  variables: {
685
747
  worksheetDetailName: this._selectedOrderInventory.name,
686
- releaseQty: parseInt(this.releaseQtyInput.value)
748
+ releaseQty:
749
+ this._isRequireSerialNumberScanningOutbound && this._isBatchPicking
750
+ ? 1
751
+ : parseInt(this.releaseQtyInput.value),
752
+ serialNumber:
753
+ this._isRequireSerialNumberScanningOutbound && this._isBatchPicking ? this.serialInput.value.trim() : null
687
754
  }
688
755
  })
689
756
  }
@@ -734,6 +801,13 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
734
801
  throw new Error(i18next.t('text.wrong_release_qty'))
735
802
  }
736
803
  }
804
+
805
+ if (this._isRequireSerialNumberScanningOutbound && this._isBatchPicking) {
806
+ if (!this.serialInput?.value) {
807
+ this._focusOnSerialInput()
808
+ throw new Error(i18next.t('text.empty_serial_number'))
809
+ }
810
+ }
737
811
  }
738
812
 
739
813
  async _complete() {
@@ -770,6 +844,32 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
770
844
  )
771
845
  }
772
846
 
847
+ openSerialNumberPopup() {
848
+ openPopup(
849
+ html`
850
+ <serial-number-popup
851
+ .enableRemove=${false}
852
+ .enableUpdateBtn=${false}
853
+ .orderInventory="${this?._selectedOrderInventory?.relatedOrderInv}"
854
+ .orderType="${i18next.t('text.outbound')}"
855
+ .orderSource="${ORDER_SOURCES.PACKING.value}"
856
+ .orderId="${this.releaseGoodId}"
857
+ .data="${this?._selectedOrderInventory}"
858
+ @close-serial-number-popup="${async e => {
859
+ await this._fetchInventories(this.releaseGoodNo)
860
+ }}"
861
+ ></serial-number-popup>
862
+ `,
863
+ {
864
+ closable: false,
865
+ backdrop: false,
866
+ escapable: false,
867
+ size: 'large',
868
+ title: i18next.t('title.serial_number_list')
869
+ }
870
+ )
871
+ }
872
+
773
873
  async _setOrderToRTS() {
774
874
  let result = await CustomAlert({
775
875
  title: i18next.t('title.are_you_sure'),
@@ -19,7 +19,7 @@ import { isMobileDevice } from '@things-factory/utils'
19
19
 
20
20
  import { fetchLocationSortingRule } from '../../fetch-location-sorting-rule'
21
21
  import { fetchSettingRule } from '../../fetch-setting-value'
22
- import { BATCH_PICKING, LOCATION_SORTING_RULE, PICKING } from '../constants'
22
+ import { BATCH_PICKING, LOCATION_SORTING_RULE, ORDER_SOURCES, PICKING } from '../constants'
23
23
 
24
24
  const PICKING_TYPES = { PICKING, BATCH_PICKING }
25
25
  class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
@@ -687,6 +687,8 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
687
687
  this._selectedOrderInventory.pickedQty != this._selectedOrderInventory.releaseQty
688
688
  ) {
689
689
  this.scannable = true
690
+ } else {
691
+ this.scannable = false
690
692
  }
691
693
 
692
694
  if (this._selectedOrderInventory) {
@@ -792,6 +794,8 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
792
794
  this._selectedOrderInventory.pickedQty != this._selectedOrderInventory.releaseQty
793
795
  ) {
794
796
  this.scannable = true
797
+ } else {
798
+ this.scannable = false
795
799
  }
796
800
 
797
801
  this._enableProductScanning = await fetchSettingRule('enable-product-scanning', worksheetInfo.partnerDomainId)
@@ -808,8 +812,9 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
808
812
 
809
813
  if (record.pickedQty == record.releaseQty) {
810
814
  if (this._isCartonLabel) {
811
- this.cartonInput.value = ''
812
- this.productBarcodeInput.value = ''
815
+ //need to relook into clearview logic
816
+ if (this.cartonInput) this.cartonInput.value = ''
817
+ if (this.productBarcodeInput) this.productBarcodeInput.value = ''
813
818
  }
814
819
  this.fillUpForm(this.inputForm, record)
815
820
  } else {
@@ -954,8 +959,7 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
954
959
 
955
960
  if (!response.errors) {
956
961
  if (this._isRequireSerialNumberScanningOutbound) this.serialInput.value = ''
957
- else if (this._enableProductScanning && !this._isRequireSerialNumberScanningOutbound)
958
- this.productBarcodeInput.value = ''
962
+ else if (this._enableProductScanning) this.productBarcodeInput.value = ''
959
963
  else this.releaseQtyInput.value = ''
960
964
 
961
965
  if (!this._isCartonLabel && !this._isRequireSerialNumberScanningOutbound) {
@@ -981,10 +985,17 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
981
985
  await this.fetchInventories(this.taskNo)
982
986
  }
983
987
  }
984
-
985
- this.focusOnInput()
988
+ } else {
989
+ this._selectedOrderInventory = null
990
+ if (this.refPickingType === PICKING_TYPES.PICKING.value) {
991
+ await this.fetchInventories(this.releaseGoodNo)
992
+ } else {
993
+ await this.fetchInventories(this.taskNo)
994
+ }
986
995
  }
987
996
 
997
+ this.focusOnInput()
998
+
988
999
  this.isReplacement = false
989
1000
  } catch (e) {
990
1001
  this._showToast(e)
@@ -1028,6 +1039,7 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
1028
1039
  <serial-number-popup
1029
1040
  .orderInventory="${this?._selectedOrderInventory?.relatedOrderInv}"
1030
1041
  .orderType="${i18next.t('text.outbound')}"
1042
+ .orderSource="${ORDER_SOURCES.PICKING.value}"
1031
1043
  .orderId="${this.releaseGoodId}"
1032
1044
  .data="${this?._selectedOrderInventory}"
1033
1045
  @close-serial-number-popup="${async e => {
@@ -1158,6 +1170,7 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
1158
1170
  } catch (e) {
1159
1171
  this._showToast(e)
1160
1172
  } finally {
1173
+ this._selectedOrderInventory = null
1161
1174
  this._isExecuting = false
1162
1175
  }
1163
1176
  }
@@ -1640,7 +1653,7 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
1640
1653
 
1641
1654
  if (this._selectedOrderInventory) {
1642
1655
  const record = this.data.records.find(record => record.name === this._selectedOrderInventory.name)
1643
- if (record.pickedQty == record.releaseQty) {
1656
+ if (record?.pickedQty == record?.releaseQty) {
1644
1657
  if (this._isCartonLabel) {
1645
1658
  this.cartonInput.value = ''
1646
1659
  this._focusOnCartonNoInput()
@@ -297,6 +297,11 @@ class PickingReplacementPopup extends localize(i18next)(LitElement) {
297
297
  throw new Error(i18next.t('text.release_qty_is_empty'))
298
298
  }
299
299
 
300
+ if (parseInt(this.releaseQtyInput.value) < 0) {
301
+ this._focusOnInput(this.releaseQtyInput)
302
+ throw new Error(i18next.t('text.release_qty_invalid'))
303
+ }
304
+
300
305
  if (this.targetInventory.qty < parseInt(this.releaseQtyInput.value)) {
301
306
  this._focusOnInput(this.releaseQtyInput)
302
307
  throw new Error(i18next.t('text.release_qty_cannot_exceed_stored_qty'))
@@ -113,6 +113,12 @@ class ReturnPalletCheckPopup extends localize(i18next)(LitElement) {
113
113
  return this.shadowRoot.querySelector('barcode-scanable-input[name=palletId]').shadowRoot.querySelector('input')
114
114
  }
115
115
 
116
+ _focusOnReleaseQtyInput() {
117
+ if (this.palletIdInput) {
118
+ setTimeout(() => this.palletIdInput.focus(), 50)
119
+ }
120
+ }
121
+
116
122
  render() {
117
123
  return html`
118
124
  <div class="grist">
@@ -145,7 +151,7 @@ class ReturnPalletCheckPopup extends localize(i18next)(LitElement) {
145
151
 
146
152
  focusOnPalletInput() {
147
153
  this.palletIdInput.value = ''
148
- this.palletIdInput.focus()
154
+ this._focusOnReleaseQtyInput()
149
155
  }
150
156
 
151
157
  _checkPalletId() {