@things-factory/operato-wms 4.1.32 → 4.1.35

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 (39) hide show
  1. package/client/pages/inbound/serial-number-list-popup.js +342 -0
  2. package/client/pages/inbound/unload-product.js +218 -39
  3. package/client/pages/inbound/unloaded-inventories-popup.js +7 -0
  4. package/client/pages/inventory/non-loaded-inventory.js +293 -0
  5. package/client/pages/outbound/picking-product.js +61 -36
  6. package/client/pages/outbound/serial-number-popup.js +150 -64
  7. package/client/pages/report/inbound-serial-number-report.js +452 -0
  8. package/client/pages/report/outbound-serial-number-report.js +460 -0
  9. package/client/route.js +11 -0
  10. package/dist-server/graphql/resolvers/reports/inbound-serial-number-report.js +111 -0
  11. package/dist-server/graphql/resolvers/reports/inbound-serial-number-report.js.map +1 -0
  12. package/dist-server/graphql/resolvers/reports/index.js +3 -1
  13. package/dist-server/graphql/resolvers/reports/index.js.map +1 -1
  14. package/dist-server/graphql/resolvers/reports/outbound-serial-number-report.js +116 -0
  15. package/dist-server/graphql/resolvers/reports/outbound-serial-number-report.js.map +1 -0
  16. package/dist-server/graphql/types/reports/inbound-serial-number-report-list.js +14 -0
  17. package/dist-server/graphql/types/reports/inbound-serial-number-report-list.js.map +1 -0
  18. package/dist-server/graphql/types/reports/inbound-serial-number-report.js +23 -0
  19. package/dist-server/graphql/types/reports/inbound-serial-number-report.js.map +1 -0
  20. package/dist-server/graphql/types/reports/index.js +10 -0
  21. package/dist-server/graphql/types/reports/index.js.map +1 -1
  22. package/dist-server/graphql/types/reports/outbound-serial-number-report-list.js +14 -0
  23. package/dist-server/graphql/types/reports/outbound-serial-number-report-list.js.map +1 -0
  24. package/dist-server/graphql/types/reports/outbound-serial-number-report.js +24 -0
  25. package/dist-server/graphql/types/reports/outbound-serial-number-report.js.map +1 -0
  26. package/package.json +6 -6
  27. package/server/graphql/resolvers/reports/inbound-serial-number-report.ts +128 -0
  28. package/server/graphql/resolvers/reports/index.ts +5 -0
  29. package/server/graphql/resolvers/reports/outbound-serial-number-report.ts +133 -0
  30. package/server/graphql/types/reports/inbound-serial-number-report-list.ts +8 -0
  31. package/server/graphql/types/reports/inbound-serial-number-report.ts +17 -0
  32. package/server/graphql/types/reports/index.ts +11 -0
  33. package/server/graphql/types/reports/outbound-serial-number-report-list.ts +8 -0
  34. package/server/graphql/types/reports/outbound-serial-number-report.ts +18 -0
  35. package/things-factory.config.js +12 -0
  36. package/translations/en.json +16 -2
  37. package/translations/ko.json +16 -3
  38. package/translations/ms.json +16 -3
  39. package/translations/zh.json +20 -7
@@ -0,0 +1,293 @@
1
+ import '@things-factory/form-ui'
2
+ import '@things-factory/grist-ui'
3
+
4
+ import gql from 'graphql-tag'
5
+ import { css, html } from 'lit-element'
6
+ import { connect } from 'pwa-helpers/connect-mixin'
7
+
8
+ import { i18next, localize } from '@things-factory/i18n-base'
9
+ import { client, PageView, store } from '@things-factory/shell'
10
+ import { ScrollbarStyles } from '@things-factory/styles'
11
+ import { flattenObject, isMobileDevice } from '@things-factory/utils'
12
+
13
+ class NonLoadedInventory extends connect(store)(localize(i18next)(PageView)) {
14
+ static get styles() {
15
+ return [
16
+ ScrollbarStyles,
17
+ css`
18
+ :host {
19
+ display: flex;
20
+ flex-direction: column;
21
+ overflow: hidden;
22
+ }
23
+ search-form {
24
+ overflow: visible;
25
+ }
26
+ data-grist {
27
+ overflow-y: auto;
28
+ flex: 1;
29
+ }
30
+ `
31
+ ]
32
+ }
33
+
34
+ static get properties() {
35
+ return {
36
+ _email: String,
37
+ _searchFields: Array,
38
+ _expSearchFields: Array,
39
+ _showExpiration: Boolean,
40
+ config: Object,
41
+ data: Object
42
+ }
43
+ }
44
+
45
+ render() {
46
+ return html`
47
+ <search-form id="search-form" .fields=${this._searchFields} @submit=${e => this.dataGrist.fetch()}></search-form>
48
+
49
+ ${this._showExpiration
50
+ ? html`<search-form
51
+ id="search-exp-form"
52
+ .fields=${this._expSearchFields}
53
+ .hideSearchButton=${true}
54
+ @submit=${e => this.dataGrist.fetch()}
55
+ ></search-form>`
56
+ : html``}
57
+
58
+ <data-grist
59
+ .mode=${isMobileDevice() ? 'LIST' : 'GRID'}
60
+ .config=${this.config}
61
+ .fetchHandler="${this.fetchHandler.bind(this)}"
62
+ ></data-grist>
63
+ `
64
+ }
65
+
66
+ get context() {
67
+ return {
68
+ title: i18next.t('title.non_loaded_inventory')
69
+ }
70
+ }
71
+
72
+ async pageInitialized() {
73
+ this.config = {
74
+ list: {
75
+ fields: [
76
+ 'roNo',
77
+ 'palletId',
78
+ 'cartonId',
79
+ 'batchId',
80
+ 'productSku',
81
+ 'productInformation',
82
+ 'product_brand',
83
+ 'packingType',
84
+ 'qty',
85
+ 'uomValue',
86
+ 'uom',
87
+ 'binLocation'
88
+ ]
89
+ },
90
+ pagination: { pages: [20, 50, 100, 500, 999] },
91
+ rows: {
92
+ appendable: false
93
+ },
94
+ columns: [
95
+ { type: 'gutter', gutterName: 'sequence' },
96
+ { type: 'gutter', gutterName: 'row-selector', multiple: true },
97
+ {
98
+ type: 'string',
99
+ name: 'orderNo',
100
+ header: i18next.t('field.ro_no'),
101
+ sortable: true,
102
+ width: 150
103
+ },
104
+ {
105
+ type: 'string',
106
+ name: 'palletId',
107
+ header: i18next.t('field.lot_id'),
108
+ sortable: true,
109
+ width: 150
110
+ },
111
+ {
112
+ type: 'string',
113
+ name: 'cartonId',
114
+ header: i18next.t('field.carton_id'),
115
+ sortable: true,
116
+ width: 120
117
+ },
118
+ {
119
+ type: 'string',
120
+ name: 'batchId',
121
+ header: i18next.t('field.batch_id'),
122
+ imex: { header: i18next.t('field.batch_id'), key: 'batchId', width: 30, type: 'string' },
123
+ sortable: true,
124
+ width: 120
125
+ },
126
+ {
127
+ type: 'string',
128
+ name: 'product_sku',
129
+ header: i18next.t('field.sku'),
130
+ sortable: true,
131
+ width: 150
132
+ },
133
+ {
134
+ type: 'string',
135
+ name: 'product_name',
136
+ header: i18next.t('field.product'),
137
+ sortable: true,
138
+ width: 250
139
+ },
140
+ {
141
+ type: 'string',
142
+ name: 'product_brand',
143
+ header: i18next.t('field.brand'),
144
+ sortable: true,
145
+ width: 150
146
+ },
147
+ {
148
+ type: 'code',
149
+ name: 'packingType',
150
+ header: i18next.t('field.packing_type'),
151
+ record: { codeName: 'PACKING_TYPES' },
152
+ sortable: true,
153
+ width: 150
154
+ },
155
+ {
156
+ type: 'number',
157
+ name: 'qty',
158
+ header: i18next.t('field.qty'),
159
+ width: 80
160
+ },
161
+ {
162
+ type: 'float',
163
+ name: 'uomValue',
164
+ header: i18next.t('field.total_uom_value'),
165
+ width: 110
166
+ },
167
+ {
168
+ type: 'string',
169
+ name: 'uom',
170
+ header: i18next.t('field.uom'),
171
+ sortable: true,
172
+ width: 80
173
+ },
174
+ {
175
+ type: 'string',
176
+ name: 'binLocation',
177
+ header: i18next.t('field.bin_location'),
178
+ sortable: true,
179
+ width: 120
180
+ }
181
+ ]
182
+ }
183
+
184
+ this._searchFields = [
185
+ {
186
+ label: i18next.t('field.product_info'),
187
+ name: 'product_info',
188
+ type: 'text',
189
+ props: { searchOper: 'eq' }
190
+ },
191
+ {
192
+ label: i18next.t('field.batch_id'),
193
+ name: 'batchId',
194
+ type: 'text',
195
+ props: { searchOper: 'i_like' }
196
+ },
197
+ {
198
+ label: i18next.t('field.lot_id'),
199
+ name: 'palletId',
200
+ type: 'text',
201
+ props: { searchOper: 'i_like' }
202
+ },
203
+ {
204
+ label: i18next.t('field.carton_id'),
205
+ name: 'cartonId',
206
+ type: 'text',
207
+ props: { searchOper: 'i_like' }
208
+ },
209
+ {
210
+ label: i18next.t('field.ro_no'),
211
+ name: 'ro_no',
212
+ type: 'text',
213
+ props: { searchOper: 'i_like' }
214
+ },
215
+ {
216
+ label: i18next.t('field.bin_location'),
217
+ name: 'bin_location',
218
+ type: 'text',
219
+ props: { searchOper: 'i_like' }
220
+ }
221
+ ]
222
+ }
223
+
224
+ async pageUpdated(changes, lifecycle) {
225
+ if (this.active) {
226
+ this.dataGrist.fetch()
227
+ }
228
+ }
229
+
230
+ get dataGrist() {
231
+ return this.shadowRoot.querySelector('data-grist')
232
+ }
233
+
234
+ get searchForm() {
235
+ return this.shadowRoot.querySelector('#search-form')
236
+ }
237
+
238
+ async fetchHandler({ page, limit, sorters = [] }) {
239
+ const filters = await this.searchForm.getQueryFilters()
240
+ const response = await client.query({
241
+ query: gql`
242
+ query nonLoadedInventories($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
243
+ nonLoadedInventories(filters: $filters, pagination: $pagination, sortings: $sortings) {
244
+ items {
245
+ orderNo
246
+ palletId
247
+ cartonId
248
+ batchId
249
+ batchIdRef
250
+ packingType
251
+ qty
252
+ uomValue
253
+ uom
254
+ product {
255
+ sku
256
+ name
257
+ brand
258
+ description
259
+ }
260
+ binLocation
261
+ updatedAt
262
+ }
263
+ total
264
+ }
265
+ }
266
+ `,
267
+ variables: {
268
+ filters,
269
+ pagination: { page, limit },
270
+ sortings: sorters
271
+ }
272
+ })
273
+
274
+ return {
275
+ total: response.data.nonLoadedInventories.total || 0,
276
+ records:
277
+ response.data.nonLoadedInventories.items.map(item => {
278
+ return flattenObject(
279
+ {
280
+ ...item,
281
+ product: {
282
+ ...item.product,
283
+ name: `${item.product.name} ${item.product.description}`
284
+ }
285
+ },
286
+ '_'
287
+ )
288
+ }) || []
289
+ }
290
+ }
291
+ }
292
+
293
+ window.customElements.define('non-loaded-inventory', NonLoadedInventory)
@@ -25,15 +25,6 @@ const PICKING_TYPES = { PICKING, BATCH_PICKING }
25
25
  class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
26
26
  static get properties() {
27
27
  return {
28
- config: Object,
29
- data: Object,
30
- isWholePicking: Boolean,
31
- locations: Array,
32
- locationNameSplit: Array,
33
- refPickingType: String,
34
- releaseGoodNo: String,
35
- orderNo: String,
36
- worksheetNo: String,
37
28
  _bizplaceName: String,
38
29
  _crossDocking: Boolean,
39
30
  _currentBinLocation: String,
@@ -43,10 +34,20 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
43
34
  _isCartonLabel: Boolean,
44
35
  _isExecuting: Boolean,
45
36
  _isReplacement: Boolean,
46
- _isRequireSerialNumberScanning: Boolean,
37
+ _isRequireSerialNumberScanningOutbound: Boolean,
38
+ _locationName: String,
47
39
  _reusablePalletList: Object,
48
40
  _worksheetInfo: Object,
49
- _locationName: String
41
+ config: Object,
42
+ data: Object,
43
+ isWholePicking: Boolean,
44
+ locationNameSplit: Array,
45
+ locations: Array,
46
+ orderNo: String,
47
+ refPickingType: String,
48
+ releaseGoodNo: String,
49
+ releaseGoodId: String,
50
+ worksheetNo: String
50
51
  }
51
52
  }
52
53
 
@@ -108,11 +109,11 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
108
109
  ...CommonButtonStyles.inspect
109
110
  })
110
111
 
111
- if (this._selectedOrderInventory && this._isRequireSerialNumberScanning) {
112
+ if (this._selectedOrderInventory && this._isRequireSerialNumberScanningOutbound) {
112
113
  actions.push({
113
114
  title: i18next.t('button.serial_number'),
114
115
  action: this.openSerialNumberPopup.bind(this),
115
- ...CommonButtonStyles.description
116
+ ...CommonButtonStyles.activate
116
117
  })
117
118
  }
118
119
 
@@ -251,6 +252,7 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
251
252
  this.locationNameSplit = []
252
253
  this.refPickingType = PICKING_TYPES.PICKING.value
253
254
  this.releaseGoodNo = ''
255
+ this.releaseGoodId = ''
254
256
  this.taskNo = ''
255
257
 
256
258
  this._incompleteLocationName = false
@@ -258,7 +260,7 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
258
260
  /* A flag to indicate either PICKING process is executing */
259
261
  this._isExecuting = false
260
262
  this._isReplacement = false
261
- this._isRequireSerialNumberScanning = false
263
+ this._isRequireSerialNumberScanningOutbound = false
262
264
  this._crossDocking = false
263
265
  this._enableProductScanning = false
264
266
  this._hasBinPicking = false
@@ -351,7 +353,7 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
351
353
  <barcode-scanable-input name="productBarcode" custom-input></barcode-scanable-input>
352
354
  `
353
355
  : html`
354
- ${this._isRequireSerialNumberScanning
356
+ ${this._isRequireSerialNumberScanningOutbound
355
357
  ? ''
356
358
  : html`
357
359
  <label>${i18next.t('label.picked_qty')}</label>
@@ -362,7 +364,7 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
362
364
  this._crossDocking ||
363
365
  this._isCartonLabel ||
364
366
  this._enableProductScanning ||
365
- this._isRequireSerialNumberScanning
367
+ this._isRequireSerialNumberScanningOutbound
366
368
  ? ''
367
369
  : html`
368
370
  ${this._incompleteLocationName
@@ -388,7 +390,7 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
388
390
  )}
389
391
  </select>
390
392
  `}
391
- ${this._isRequireSerialNumberScanning
393
+ ${this._isRequireSerialNumberScanningOutbound
392
394
  ? html`
393
395
  <label>${i18next.t('label.serial_number')}</label>
394
396
  <barcode-scanable-input name="serialNumber" custom-input></barcode-scanable-input>
@@ -444,6 +446,7 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
444
446
  try {
445
447
  this.grist.showSpinner()
446
448
  if (data.records.length && record) {
449
+ this._isRequireSerialNumberScanningOutbound = record.product.isRequireSerialNumberScanningOutbound
447
450
  this.inputForm.reset()
448
451
  this._isReplacement = false
449
452
 
@@ -591,6 +594,7 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
591
594
  pickingWorksheet(releaseGoodNo: $releaseGoodNo, locationSortingRules: $locationSortingRules) {
592
595
  worksheetInfo {
593
596
  releaseGood {
597
+ id
594
598
  name
595
599
  crossDocking
596
600
  }
@@ -612,10 +616,11 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
612
616
  batchId
613
617
  batchIdRef
614
618
  product {
619
+ id
615
620
  sku
616
621
  name
617
622
  description
618
- isRequireSerialNumberScanning
623
+ isRequireSerialNumberScanningOutbound
619
624
  }
620
625
  qty
621
626
  releaseQty
@@ -644,10 +649,11 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
644
649
  name
645
650
  }
646
651
  product {
652
+ id
647
653
  sku
648
654
  name
649
655
  description
650
- isRequireSerialNumberScanning
656
+ isRequireSerialNumberScanningOutbound
651
657
  }
652
658
  }
653
659
  }
@@ -660,6 +666,7 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
660
666
  if (!response.errors) {
661
667
  if (!this._selectedOrderInventory) this.clearView()
662
668
  this.releaseGoodNo = response.data.pickingWorksheet.worksheetInfo.releaseGood.name
669
+ this.releaseGoodId = response.data.pickingWorksheet.worksheetInfo.releaseGood.id
663
670
  if (!response.data?.pickingWorksheet) return
664
671
 
665
672
  const { worksheetInfo, worksheetDetailInfos } = response.data.pickingWorksheet
@@ -860,8 +867,9 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
860
867
  this.data = { records: [] }
861
868
  this.infoForm.reset()
862
869
  this.inputForm.reset()
863
- this._isRequireSerialNumberScanning = false
870
+ this._isRequireSerialNumberScanningOutbound = false
864
871
  this.releaseGoodNo = null
872
+ this.releaseGoodId = null
865
873
  this.taskNo = null
866
874
  this._crossDocking = false
867
875
  this._selectedOrderInventory = null
@@ -909,7 +917,7 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
909
917
  } else if (this._enableProductScanning || this._isCartonLabel) {
910
918
  response = await this.productBarcodePicking()
911
919
  } else {
912
- if (this._isReplacement) {
920
+ if (this._isReplacement && !this._isCartonLabel) {
913
921
  this.openPalletReplacementPopup()
914
922
  return
915
923
  } else {
@@ -918,12 +926,12 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
918
926
  }
919
927
 
920
928
  if (!response.errors) {
921
- if (this._isRequireSerialNumberScanning) this.serialInput.value = ''
922
- else if (this._enableProductScanning && !this._isRequireSerialNumberScanning)
929
+ if (this._isRequireSerialNumberScanningOutbound) this.serialInput.value = ''
930
+ else if (this._enableProductScanning && !this._isRequireSerialNumberScanningOutbound)
923
931
  this.productBarcodeInput.value = ''
924
932
  else this.releaseQtyInput.value = ''
925
933
 
926
- if (!this._isCartonLabel && !this._isRequireSerialNumberScanning) {
934
+ if (!this._isCartonLabel && !this._isRequireSerialNumberScanningOutbound) {
927
935
  this.palletInput.value = ''
928
936
  // this._selectedTaskStatus = null
929
937
  this._selectedOrderInventory = null
@@ -977,10 +985,20 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
977
985
  openSerialNumberPopup() {
978
986
  openPopup(
979
987
  html`
980
- <serial-number-popup .orderInventory="${this?._selectedOrderInventory?.relatedOrderInv}"></serial-number-popup>
988
+ <serial-number-popup
989
+ .orderInventory="${this?._selectedOrderInventory?.relatedOrderInv}"
990
+ .orderType="${i18next.t('text.outbound')}"
991
+ .orderId="${this.releaseGoodId}"
992
+ .data="${this?._selectedOrderInventory}"
993
+ @close-serial-number-popup="${async e => {
994
+ await this.fetchAll(this.releaseGoodNo)
995
+ }}"
996
+ ></serial-number-popup>
981
997
  `,
982
998
  {
983
- backdrop: true,
999
+ closable: false,
1000
+ backdrop: false,
1001
+ escapable: false,
984
1002
  size: 'large',
985
1003
  title: i18next.t('title.serial_number_list')
986
1004
  }
@@ -1060,9 +1078,9 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
1060
1078
  worksheetType: this.refPickingType,
1061
1079
  palletId: this.palletInput.value.trim(),
1062
1080
  locationName: this._locationName ? this._locationName : this._selectedOrderInventory?.location.name,
1063
- releaseQty: this._isRequireSerialNumberScanning ? 1 : parseInt(this.releaseQtyInput.value),
1081
+ releaseQty: this._isRequireSerialNumberScanningOutbound ? 1 : parseInt(this.releaseQtyInput.value),
1064
1082
  binLocation: this._hasBinPicking ? this.binLocationInput.value : null,
1065
- serialNumber: this._isRequireSerialNumberScanning ? this.serialInput.value : null
1083
+ serialNumber: this._isRequireSerialNumberScanningOutbound ? this.serialInput.value : null
1066
1084
  }
1067
1085
  })
1068
1086
 
@@ -1136,7 +1154,7 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
1136
1154
  worksheetType: this.refPickingType,
1137
1155
  productBarcode: this.productBarcodeInput.value.trim(),
1138
1156
  cartonId: this.cartonInput.value.trim(),
1139
- serialNumber: this._isRequireSerialNumberScanning ? this.serialInput.value : null,
1157
+ serialNumber: this._isRequireSerialNumberScanningOutbound ? this.serialInput.value : null,
1140
1158
  binLocation: this._hasBinPicking ? this.binLocationInput.value : null
1141
1159
  }
1142
1160
  })
@@ -1194,7 +1212,10 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
1194
1212
  this._focusOnLotNoInput()
1195
1213
  throw new Error(i18next.t('text.lot_id_is_empty'))
1196
1214
  } else {
1197
- if (this._selectedOrderInventory.palletId !== this.palletInput.value) {
1215
+ if (
1216
+ this._selectedOrderInventory.palletId !== this.palletInput.value &&
1217
+ !this._isRequireSerialNumberScanningOutbound
1218
+ ) {
1198
1219
  const isInProgressing = await this.checkProgressingPallet(this.palletInput.value)
1199
1220
  if (isInProgressing) throw new Error(i18next.t('text.pallet_is_in_progressing'))
1200
1221
 
@@ -1212,7 +1233,7 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
1212
1233
 
1213
1234
  // Release qty existing
1214
1235
  if (!this._isReplacement) {
1215
- if (!this._isRequireSerialNumberScanning) {
1236
+ if (!this._isRequireSerialNumberScanningOutbound) {
1216
1237
  if (!parseInt(this.releaseQtyInput?.value)) {
1217
1238
  this._focusOnReleaseQtyInput()
1218
1239
  throw new Error(i18next.t('text.release_qty_is_empty'))
@@ -1287,6 +1308,8 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
1287
1308
 
1288
1309
  if (this._selectedOrderInventory.cartonId) {
1289
1310
  if (this._selectedOrderInventory.cartonId !== this.cartonInput.value) {
1311
+ //carton replacement?
1312
+ throw new Error(i18next.t('text.invalid_carton_id'))
1290
1313
  this._isReplacement = await this.checkCartonIdenticality(
1291
1314
  this._selectedOrderInventory.cartonId,
1292
1315
  this._selectedOrderInventory.palletId,
@@ -1309,7 +1332,7 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
1309
1332
  }
1310
1333
  }
1311
1334
 
1312
- if (this._isRequireSerialNumberScanning) {
1335
+ if (this._isRequireSerialNumberScanningOutbound) {
1313
1336
  if (!this.serialInput?.value) {
1314
1337
  this._focusOnSerialInput()
1315
1338
  throw new Error(i18next.t('text.empty_serial_number'))
@@ -1515,6 +1538,7 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
1515
1538
  refNo3
1516
1539
  startedAt
1517
1540
  releaseGood {
1541
+ id
1518
1542
  name
1519
1543
  crossDocking
1520
1544
  }
@@ -1569,6 +1593,7 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
1569
1593
  this._bizplaceName = worksheetInfo.bizplaceName
1570
1594
  this._crossDocking = worksheetInfo.releaseGood?._crossDocking
1571
1595
  this.releaseGoodNo = worksheetInfo.releaseGood?.name
1596
+ this.releaseGoodId = worksheetInfo.releaseGood?.id
1572
1597
  this._orderNo = this.releaseGoodNo
1573
1598
  this._worksheetInfo = worksheetInfo
1574
1599
  this.data = { records: this.formatWorksheetDetailInfos(worksheetDetailInfos) }
@@ -1629,7 +1654,7 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
1629
1654
  return true
1630
1655
  }
1631
1656
  } else {
1632
- if (!this._enableProductScanning && !this._isRequireSerialNumberScanning) this.palletInput.value = ''
1657
+ if (!this._enableProductScanning && !this._isRequireSerialNumberScanningOutbound) this.palletInput.value = ''
1633
1658
 
1634
1659
  if (this.palletInput.value == '') {
1635
1660
  this._focusOnLotNoInput()
@@ -1638,13 +1663,13 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
1638
1663
  }
1639
1664
  }
1640
1665
 
1641
- if (this._enableProductScanning && !this._isRequireSerialNumberScanning) {
1666
+ if (this._enableProductScanning && !this._isRequireSerialNumberScanningOutbound) {
1642
1667
  this.productBarcodeInput.value = ''
1643
1668
  this._focusOnProductBarcodeInput()
1644
1669
  return true
1645
1670
  }
1646
1671
 
1647
- if (this._isRequireSerialNumberScanning) {
1672
+ if (this._isRequireSerialNumberScanningOutbound) {
1648
1673
  this.serialInput.value = ''
1649
1674
  this._focusOnSerialInput()
1650
1675
  return true
@@ -1664,7 +1689,7 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
1664
1689
  }
1665
1690
 
1666
1691
  this._isCartonLabel = selectedRecords.hasCartonLabel
1667
- this._isRequireSerialNumberScanning = selectedRecords?.product?.isRequireSerialNumberScanning
1692
+ this._isRequireSerialNumberScanningOutbound = selectedRecords?.product?.isRequireSerialNumberScanningOutbound
1668
1693
  }
1669
1694
 
1670
1695
  _showToast({ type, message }) {