@things-factory/operato-wms 4.3.100 → 4.3.102

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.
@@ -337,7 +337,7 @@ class PutawayProduct extends connect(store)(localize(i18next)(PageView)) {
337
337
  }
338
338
  },
339
339
  pagination: { infinite: true },
340
- list: { fields: ['completed', 'product', 'palletId', 'cartonId', 'expirationDate', 'batchId', 'qty'] },
340
+ list: { fields: ['completed', 'sku', 'product', 'palletId', 'cartonId', 'expirationDate', 'batchId', 'qty'] },
341
341
  columns: [
342
342
  { type: 'gutter', gutterName: 'sequence' },
343
343
  {
@@ -358,6 +358,13 @@ class PutawayProduct extends connect(store)(localize(i18next)(PageView)) {
358
358
  header: i18next.t('field.carton_id'),
359
359
  width: 140
360
360
  },
361
+ {
362
+ type: 'string',
363
+ name: 'sku',
364
+ label: true,
365
+ header: i18next.t('field.sku'),
366
+ width: 120
367
+ },
361
368
  {
362
369
  type: 'object',
363
370
  name: 'product',
@@ -509,6 +516,7 @@ class PutawayProduct extends connect(store)(localize(i18next)(PageView)) {
509
516
  completed: record.status === WORKSHEET_STATUS.DONE.value,
510
517
  packingTypeSize: `${record.packingType}(${record.packingSize})`,
511
518
  reusablePalletName: reusablePalletName,
519
+ sku: record.product.sku,
512
520
  expirationPeriod: record.product.expirationPeriod,
513
521
  expirationDate: record.expirationDate
514
522
  }
@@ -595,6 +603,7 @@ class PutawayProduct extends connect(store)(localize(i18next)(PageView)) {
595
603
  return {
596
604
  ...record,
597
605
  completed: record.status === WORKSHEET_STATUS.DONE.value,
606
+ sku: record.product.sku,
598
607
  expirationPeriod: record.product.expirationPeriod,
599
608
  expirationDate: record.expirationDate
600
609
  }
@@ -673,6 +682,7 @@ class PutawayProduct extends connect(store)(localize(i18next)(PageView)) {
673
682
  .map(record => {
674
683
  return {
675
684
  ...record,
685
+ sku: record.product.sku,
676
686
  completed: record.status === WORKSHEET_STATUS.DONE.value
677
687
  }
678
688
  })
@@ -63,6 +63,10 @@ class DraftReleaseGoodList extends localize(i18next)(PageView) {
63
63
  get context() {
64
64
  return {
65
65
  title: i18next.t('title.draft_release_order'),
66
+ exportable: {
67
+ name: i18next.t('title.draft_release_order'),
68
+ data: this.exportableData.bind(this)
69
+ },
66
70
  actions: [
67
71
  {
68
72
  title: i18next.t('button.create_release_order'),
@@ -193,7 +197,7 @@ class DraftReleaseGoodList extends localize(i18next)(PageView) {
193
197
  this.config = {
194
198
  rows: { selectable: { multiple: true }, appendable: false },
195
199
  list: { fields: ['name', 'releaseDate', 'status', 'updatedAt'] },
196
- pagination: { limit: 100, pages: [20, 50, 100, 200, 500] },
200
+ pagination: { limit: 50, pages: [50, 100, 200, 500] },
197
201
  columns: [
198
202
  { type: 'gutter', gutterName: 'sequence' },
199
203
  { type: 'gutter', gutterName: 'row-selector', multiple: true },
@@ -541,6 +545,52 @@ class DraftReleaseGoodList extends localize(i18next)(PageView) {
541
545
 
542
546
  return response.data.contactPoints.items || []
543
547
  }
548
+
549
+ async exportableData() {
550
+ try {
551
+ let records = []
552
+
553
+ const bizplaceFilters = (await this.searchForm.getQueryFilters()).filter(x => x.name === 'bizplaceId')
554
+
555
+ if (bizplaceFilters.length == 0) {
556
+ throw new Error(`Please select a customer for export.`)
557
+ }
558
+
559
+ if (this.dataGrist.selected && this.dataGrist.selected.length > 0) {
560
+ records = this.dataGrist.selected
561
+ } else {
562
+ records = this.dataGrist.data.records
563
+ }
564
+
565
+ var headerSetting = this.dataGrist._config.columns
566
+ .filter(column => column.type !== 'gutter' /* && column.record !== undefined */ && column.imex !== undefined)
567
+ .map(column => {
568
+ return column.imex
569
+ })
570
+
571
+ var data = records.map(item => {
572
+ return {
573
+ id: item.id,
574
+ ...this._columns
575
+ .filter(
576
+ column => column.type !== 'gutter' /* && column.record !== undefined */ && column.imex !== undefined
577
+ )
578
+ .reduce((record, column) => {
579
+ record[column.imex.key] = column.imex.key
580
+ .split('.')
581
+ .reduce((obj, key) => (obj && obj[key] !== 'undefined' ? obj[key] : undefined), item)
582
+ if (column.type === 'datetime') {
583
+ record[column.imex.key] = new Date(parseInt(record[column.imex.key])).toLocaleString()
584
+ }
585
+ return record
586
+ }, {})
587
+ }
588
+ })
589
+ return { header: headerSetting, data: data }
590
+ } catch (e) {
591
+ this._showToast(e)
592
+ }
593
+ }
544
594
  }
545
595
 
546
596
  window.customElements.define('draft-release-good-list', DraftReleaseGoodList)
@@ -869,7 +869,11 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
869
869
 
870
870
  return {
871
871
  title: i18next.t('title.release_order_detail'),
872
- actions
872
+ actions,
873
+ printable: {
874
+ accept: ['preview'],
875
+ content: this
876
+ }
873
877
  }
874
878
  }
875
879
 
@@ -1618,7 +1622,7 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
1618
1622
  try {
1619
1623
  const response = await client.mutate({
1620
1624
  mutation: gql`
1621
- mutation generateReleaseGoodWorksheet($releaseGoodNo: String!, $currentStatus: String) {
1625
+ mutation generateReleaseGoodWorksheet($releaseGoodNo: String!, $currentStatus: String) {
1622
1626
  generateReleaseGoodWorksheet(releaseGoodNo: $releaseGoodNo, currentStatus: $currentStatus) {
1623
1627
  pickingWorksheet {
1624
1628
  name
@@ -89,20 +89,18 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
89
89
 
90
90
  get context() {
91
91
  var actions = []
92
- if (this.releaseGoodNo && this.platform != 'operato' && this.completed && this.trackingNo) {
93
- if (this.platform === PLATFORM.LAZADA.value) {
94
- actions.push({
95
- title: i18next.t('button.print_airway_bill'),
96
- action: this.printAirwayBill.bind(this),
97
- ...CommonButtonStyles.label
98
- })
92
+ if (this.releaseGoodNo && this.platform === PLATFORM.LAZADA.value && this.completed && this.trackingNo) {
93
+ actions.push({
94
+ title: i18next.t('button.print_airway_bill'),
95
+ action: this.printAirwayBill.bind(this),
96
+ ...CommonButtonStyles.label
97
+ })
99
98
 
100
- actions.push({
101
- title: i18next.t('button.print_invoice'),
102
- action: this.printInvoice.bind(this),
103
- ...CommonButtonStyles.label
104
- })
105
- }
99
+ actions.push({
100
+ title: i18next.t('button.print_invoice'),
101
+ action: this.printInvoice.bind(this),
102
+ ...CommonButtonStyles.label
103
+ })
106
104
  }
107
105
 
108
106
  if (this.releaseGoodNo && this.platform == 'operato' && this.completed) {
@@ -151,7 +149,7 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
151
149
  if (this.orderRemark) {
152
150
  actions.push({
153
151
  title: i18next.t('button.order_remark'),
154
- action: this._openOrderRemarkPopup.bind(this),
152
+ action: this.openOrderRemarkPopup.bind(this),
155
153
  ...CommonButtonStyles.inspect
156
154
  })
157
155
  }
@@ -159,7 +157,7 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
159
157
  if (this.toggleComplete) {
160
158
  actions.push({
161
159
  title: i18next.t('button.complete'),
162
- action: this._complete.bind(this),
160
+ action: this.complete.bind(this),
163
161
  ...CommonButtonStyles.submit
164
162
  })
165
163
  }
@@ -209,19 +207,19 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
209
207
  return this._selectedTaskStatus && this._selectedTaskStatus === WORKSHEET_STATUS.EXECUTING.value
210
208
  }
211
209
 
212
- _focusOnProductBarcodeInput() {
210
+ focusOnProductBarcodeInput() {
213
211
  setTimeout(() => this.productBarcodeInput.focus(), 100)
214
212
  }
215
213
 
216
- _focusOnReleaseGoodInput() {
214
+ focusOnReleaseGoodInput() {
217
215
  setTimeout(() => this.releaseGoodNoInput.focus(), 100)
218
216
  }
219
217
 
220
- _focusOnReleaseQtyInput() {
218
+ focusOnReleaseQtyInput() {
221
219
  setTimeout(() => this.releaseQtyInput.focus(), 100)
222
220
  }
223
221
 
224
- _focusOnSerialInput() {
222
+ focusOnSerialInput() {
225
223
  if (this.serialInput) {
226
224
  setTimeout(() => this.serialInput.focus(), 50)
227
225
  }
@@ -239,7 +237,7 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
239
237
  if (e.keyCode === 13) {
240
238
  e.preventDefault()
241
239
  if (this.releaseGoodNoInput.value) {
242
- this._fetchInventories(this.releaseGoodNoInput.value)
240
+ this.fetchInventories(this.releaseGoodNoInput.value)
243
241
  this.releaseGoodNoInput.value = ''
244
242
  }
245
243
  }
@@ -276,7 +274,7 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
276
274
  ${i18next.t('title.order_no')}: ${this.releaseGoodNo}
277
275
  ${this.releaseGoodNo
278
276
  ? html`(${this._bizplaceName})
279
- <mwc-icon @click="${this._openWorksheetInformation.bind(this)}">info</mwc-icon>`
277
+ <mwc-icon @click="${this.openWorksheetInformation.bind(this)}">info</mwc-icon>`
280
278
  : ''}
281
279
  </legend>
282
280
  </fieldset>
@@ -320,8 +318,8 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
320
318
  this._selectedTaskStatus = record.status
321
319
  this._isRequireSerialNumberScanningOutbound = record.product.isRequireSerialNumberScanningOutbound
322
320
 
323
- if (this._enableProductScanning) this._focusOnProductBarcodeInput()
324
- else this._focusOnReleaseQtyInput()
321
+ if (this._enableProductScanning) this.focusOnProductBarcodeInput()
322
+ else this.focusOnReleaseQtyInput()
325
323
  }
326
324
 
327
325
  this.updateContext()
@@ -386,11 +384,11 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
386
384
 
387
385
  pageUpdated() {
388
386
  if (this.active) {
389
- this._focusOnReleaseGoodInput()
387
+ this.focusOnReleaseGoodInput()
390
388
  }
391
389
  }
392
390
 
393
- async _fetchInventories(releaseGoodNo) {
391
+ async fetchInventories(releaseGoodNo) {
394
392
  if (!releaseGoodNo) return
395
393
  const response = await client.query({
396
394
  query: gql`
@@ -540,9 +538,9 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
540
538
  this._enableProductScanning = await fetchSettingRule('enable-product-scanning', worksheetInfo.partnerDomainId)
541
539
 
542
540
  if (this._enableProductScanning) {
543
- this._focusOnProductBarcodeInput()
541
+ this.focusOnProductBarcodeInput()
544
542
  } else {
545
- this._focusOnReleaseQtyInput()
543
+ this.focusOnReleaseQtyInput()
546
544
  }
547
545
 
548
546
  this.updateContext()
@@ -563,7 +561,7 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
563
561
  .sort((a, b) => a.completed - b.completed)
564
562
  }
565
563
 
566
- _clearView() {
564
+ clearView() {
567
565
  this.data = { records: [] }
568
566
  this.infoForm.reset()
569
567
  this.inputForm.reset()
@@ -651,9 +649,9 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
651
649
  }
652
650
 
653
651
  // print PDF document
654
- this._callPrintDialog(convertedPdfUrl)
652
+ this.callPrintDialog(convertedPdfUrl)
655
653
  } catch (error) {
656
- this._showToast({ message: 'Waiting for AWB from marketplace. Please retry in awhile' })
654
+ this.showToast({ message: 'Waiting for AWB from marketplace. Please retry in a while.' })
657
655
  }
658
656
  }
659
657
 
@@ -661,12 +659,12 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
661
659
  var orderDocInfo = await this.getOrderDocument(this.refNo, 'invoice')
662
660
 
663
661
  if (orderDocInfo?.length === 0) {
664
- this._showToast({ message: i18next.t('text.no_document_available') })
662
+ this.showToast({ message: i18next.t('text.no_document_available') })
665
663
  } else {
666
664
  switch (this.platform) {
667
665
  case 'lazada':
668
666
  var decodedHTML = atob(orderDocInfo[0].file)
669
- this._callPrintDialog(decodedHTML)
667
+ this.callPrintDialog(decodedHTML)
670
668
  break
671
669
  }
672
670
  }
@@ -676,25 +674,23 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
676
674
  var orderDocInfo = await this.getOrderDocument(this.refNo, 'shippingLabel')
677
675
 
678
676
  if (orderDocInfo?.length === 0) {
679
- this._showToast({ message: i18next.t('text.no_document_available') })
677
+ this.showToast({ message: i18next.t('text.no_document_available') })
680
678
  } else {
679
+ let content
681
680
  if (this.platform == 'shopee' && !orderDocInfo[0]?.isShopeeV2) {
682
681
  const orderDocUrls = orderDocInfo.map(item => item.airwayBill)
683
682
  for (var i = 0; i < orderDocUrls.length; i++) {
684
683
  orderDocUrls[i] = 'urls=' + orderDocUrls[i]
685
684
  }
686
- var mergedURL = orderDocUrls.toString().replace(/,/g, '&')
687
- var convertedPdfUrl = `/pdf/merge?${mergedURL}`
688
- this._callPrintDialog(convertedPdfUrl)
685
+ let mergedURL = orderDocUrls.toString().replace(/,/g, '&')
686
+ content = `/pdf/merge?${mergedURL}`
689
687
  } else if (this.platform == 'lazada') {
690
- var decodedHTML = atob(orderDocInfo[0].file)
691
- this._callPrintDialog(decodedHTML)
688
+ content = atob(orderDocInfo[0].file)
692
689
  } else {
693
690
  let url = new URL(window.location)
694
-
695
- convertedPdfUrl = `${url.origin}/proxy?url=${encodeURIComponent(orderDocInfo[0].airwayBill)}`
696
- this._callPrintDialog(convertedPdfUrl)
691
+ content = `${url.origin}/proxy?url=${encodeURIComponent(orderDocInfo[0].airwayBill)}`
697
692
  }
693
+ this.callPrintDialog(content)
698
694
  }
699
695
  }
700
696
 
@@ -720,18 +716,18 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
720
716
  return response.data.getOrderDocument
721
717
  }
722
718
  } catch (e) {
723
- this._showToast(e)
719
+ this.showToast(e)
724
720
  }
725
721
  }
726
722
 
727
- async _callPrintDialog(contentSource) {
723
+ async callPrintDialog(contentSource) {
728
724
  switch (this.platform) {
729
725
  case 'lazada':
730
726
  GhostPrint.print({
731
727
  srcdoc: contentSource,
732
728
  pending: 1000,
733
729
  onfinish: () => {
734
- this._showToast({ message: i18next.t('text.document_has_been_generated') })
730
+ this.showToast({ message: i18next.t('text.document_has_been_generated') })
735
731
  }
736
732
  })
737
733
  break
@@ -741,7 +737,7 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
741
737
  GhostPrint.print({
742
738
  src: contentSource,
743
739
  onfinish: () => {
744
- this._showToast({ message: i18next.t('text.document_has_been_generated') })
740
+ this.showToast({ message: i18next.t('text.document_has_been_generated') })
745
741
  }
746
742
  })
747
743
  break
@@ -753,7 +749,7 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
753
749
  e.preventDefault()
754
750
  console.time('time execution for product barcode scanning')
755
751
  try {
756
- await this._validatePacking()
752
+ await this.validatePacking()
757
753
 
758
754
  let response = this._enableProductScanning ? await this.productBarcodePacking() : await this.commonPacking()
759
755
 
@@ -773,7 +769,7 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
773
769
  this.serialInput.value = ''
774
770
  }
775
771
 
776
- this._fetchInventories(this.releaseGoodNo)
772
+ this.fetchInventories(this.releaseGoodNo)
777
773
  }
778
774
  } catch (e) {
779
775
  if (this._isRequireSerialNumberScanningOutbound && this._isBatchPicking) this.serialInput.value = ''
@@ -784,7 +780,7 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
784
780
  this._selectedTaskStatus = null
785
781
  }
786
782
  this._selectedOrderInventory = null
787
- this._showToast(e)
783
+ this.showToast(e)
788
784
  } finally {
789
785
  this._enableProductScanning && !this._isRequireSerialNumberScanningOutbound
790
786
  ? (this.productBarcodeInput.value = '')
@@ -797,7 +793,7 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
797
793
  }
798
794
 
799
795
  async productBarcodePacking() {
800
- if (this._scanning) return this._showToast({ message: i18next.t('text.previous_scan_is_executing') })
796
+ if (this._scanning) return this.showToast({ message: i18next.t('text.previous_scan_is_executing') })
801
797
  this._scanning = true
802
798
  let response = await client.mutate({
803
799
  mutation: gql`
@@ -821,7 +817,7 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
821
817
  }
822
818
 
823
819
  async commonPacking() {
824
- if (this._scanning) return this._showToast({ message: i18next.t('text.previous_scan_is_executing') })
820
+ if (this._scanning) return this.showToast({ message: i18next.t('text.previous_scan_is_executing') })
825
821
  this._scanning = true
826
822
  return await client.mutate({
827
823
  mutation: gql`
@@ -841,12 +837,12 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
841
837
  })
842
838
  }
843
839
 
844
- _validatePacking() {
840
+ validatePacking() {
845
841
  // validate for order selection
846
842
  if (this._enableProductScanning) {
847
843
  //if no input
848
844
  if (!this.productBarcodeInput.value) {
849
- this._focusOnProductBarcodeInput()
845
+ this.focusOnProductBarcodeInput()
850
846
  throw new Error(i18next.t('text.no_product_barcode_detected'))
851
847
  }
852
848
 
@@ -874,27 +870,26 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
874
870
 
875
871
  // Release qty existing
876
872
  if (!parseInt(this.releaseQtyInput.value)) {
877
- this._focusOnReleaseQtyInput()
873
+ this.focusOnReleaseQtyInput()
878
874
  throw new Error(i18next.t('text.release_qty_is_empty'))
879
875
  }
880
876
 
881
877
  // typed qty should be matched with release qty.
882
878
  if (parseInt(this.releaseQtyInput.value) !== this._selectedOrderInventory.releaseQty) {
883
- this._focusOnReleaseQtyInput()
879
+ this.focusOnReleaseQtyInput()
884
880
  throw new Error(i18next.t('text.wrong_release_qty'))
885
881
  }
886
882
  }
887
883
 
888
884
  if (this._isRequireSerialNumberScanningOutbound && this._isBatchPicking) {
889
885
  if (!this.serialInput?.value) {
890
- this._focusOnSerialInput()
886
+ this.focusOnSerialInput()
891
887
  throw new Error(i18next.t('text.empty_serial_number'))
892
888
  }
893
889
  }
894
890
  }
895
891
 
896
- async _complete() {
897
- const totalBinRO = this.totalBinRO
892
+ async complete() {
898
893
  const response = await client.mutate({
899
894
  mutation: gql`
900
895
  mutation completePacking($releaseGoodNo: String!) {
@@ -905,7 +900,7 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
905
900
  })
906
901
 
907
902
  if (!response.errors) {
908
- if (totalBinRO > 1) {
903
+ if (this.totalBinRO > 1) {
909
904
  const resultNextOrder = await CustomAlert({
910
905
  title: i18next.t('title.packing'),
911
906
  text: i18next.t('text.packing_is_completed'),
@@ -913,8 +908,8 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
913
908
  })
914
909
 
915
910
  if (!resultNextOrder.value) {
916
- this._focusOnReleaseGoodInput()
917
- this._clearView()
911
+ this.focusOnReleaseGoodInput()
912
+ this.clearView()
918
913
  this.updateContext()
919
914
  return
920
915
  }
@@ -923,13 +918,13 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
923
918
  this.updateContext()
924
919
 
925
920
  this.checkedRemarkAt = ''
926
- await this._fetchInventories(this.binRo)
921
+ await this.fetchInventories(this.binRo)
927
922
  this.toggleComplete = false
928
- this._focusOnProductBarcodeInput()
923
+ this.focusOnProductBarcodeInput()
929
924
  } else {
930
925
  this.toggleComplete = false
931
926
 
932
- this._clearView()
927
+ this.clearView()
933
928
  this.updateContext()
934
929
 
935
930
  const result = await CustomAlert({
@@ -939,13 +934,13 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
939
934
  })
940
935
 
941
936
  if (result.dismiss === 'timer' && result.isDismissed) {
942
- this._focusOnReleaseGoodInput()
937
+ this.focusOnReleaseGoodInput()
943
938
  }
944
939
  }
945
940
  }
946
941
  }
947
942
 
948
- async _openOrderRemarkPopup() {
943
+ async openOrderRemarkPopup() {
949
944
  await sleep(1010)
950
945
  openPopup(
951
946
  html`
@@ -954,8 +949,8 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
954
949
  .releaseGoodNo="${this.releaseGoodNo}"
955
950
  .checkedRemarkAt="${this.checkedRemarkAt}"
956
951
  @remark-checked="${async () => {
957
- await this._fetchInventories(this.releaseGoodNo)
958
- this._showToast({ message: i18next.t('text.order_remark_has_been_checked') })
952
+ await this.fetchInventories(this.releaseGoodNo)
953
+ this.showToast({ message: i18next.t('text.order_remark_has_been_checked') })
959
954
  }}"
960
955
  ></order-remark-popup>
961
956
  `,
@@ -967,7 +962,7 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
967
962
  )
968
963
  }
969
964
 
970
- _openWorksheetInformation() {
965
+ openWorksheetInformation() {
971
966
  openPopup(
972
967
  html`
973
968
  <worksheet-information-popup .worksheetInformation="${this._worksheetInfo}"></worksheet-information-popup>
@@ -1003,7 +998,7 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
1003
998
  .orderId="${this.releaseGoodId}"
1004
999
  .data="${this?._selectedOrderInventory}"
1005
1000
  @close-serial-number-popup="${async e => {
1006
- await this._fetchInventories(this.releaseGoodNo)
1001
+ await this.fetchInventories(this.releaseGoodNo)
1007
1002
  }}"
1008
1003
  ></serial-number-popup>
1009
1004
  `,
@@ -1017,7 +1012,7 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
1017
1012
  )
1018
1013
  }
1019
1014
 
1020
- async _setOrderToRTS() {
1015
+ async setOrderToRTS() {
1021
1016
  let result = await CustomAlert({
1022
1017
  title: i18next.t('title.are_you_sure'),
1023
1018
  text: i18next.t('text.set_order_to_ready_to_ship'),
@@ -1078,14 +1073,14 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
1078
1073
  }
1079
1074
 
1080
1075
  if (!response.errors) {
1081
- this._showToast({ message: i18next.t('text.order_has_been_set_to_ready_to_ship') })
1076
+ this.showToast({ message: i18next.t('text.order_has_been_set_to_ready_to_ship') })
1082
1077
  }
1083
1078
  } catch (e) {
1084
- this._showToast(e)
1079
+ this.showToast(e)
1085
1080
  }
1086
1081
  }
1087
1082
 
1088
- _showToast({ type, message }) {
1083
+ showToast({ type, message }) {
1089
1084
  document.dispatchEvent(
1090
1085
  new CustomEvent('notify', {
1091
1086
  detail: {
@@ -553,7 +553,7 @@ class PrintProductLabel extends connect(store)(localize(i18next)(PageView)) {
553
553
  auxValue2: product.auxValue2 || '',
554
554
  bizplaceId: releaseGood.bizplace.id,
555
555
  bizplaceName: releaseGood.bizplace.name,
556
- printQty: oi.releaseQty || 0
556
+ printQty: 1
557
557
  }
558
558
 
559
559
  if (product.productDetails && product.productDetails.length) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/operato-wms",
3
- "version": "4.3.100",
3
+ "version": "4.3.102",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -90,9 +90,9 @@
90
90
  "@things-factory/pdf": "^4.3.99",
91
91
  "@things-factory/print-proxy-service": "^4.3.99",
92
92
  "@things-factory/print-ui": "^4.3.99",
93
- "@things-factory/product-base": "^4.3.100",
93
+ "@things-factory/product-base": "^4.3.101",
94
94
  "@things-factory/resource-ui": "^4.3.99",
95
- "@things-factory/sales-ui": "^4.3.100",
95
+ "@things-factory/sales-ui": "^4.3.102",
96
96
  "@things-factory/scene-data-transform": "^4.3.99",
97
97
  "@things-factory/scene-excel": "^4.3.99",
98
98
  "@things-factory/scene-firebase": "^4.3.99",
@@ -108,8 +108,8 @@
108
108
  "@things-factory/system-ui": "^4.3.99",
109
109
  "@things-factory/transport-base": "^4.3.99",
110
110
  "@things-factory/tutorial-ui": "^4.3.99",
111
- "@things-factory/warehouse-base": "^4.3.100",
112
- "@things-factory/worksheet-base": "^4.3.100"
111
+ "@things-factory/warehouse-base": "^4.3.101",
112
+ "@things-factory/worksheet-base": "^4.3.102"
113
113
  },
114
114
  "devDependencies": {
115
115
  "@things-factory/builder": "^4.3.99",
@@ -118,5 +118,5 @@
118
118
  "cypress-localstorage-commands": "^1.6.1",
119
119
  "eslint-plugin-cypress": "^2.12.1"
120
120
  },
121
- "gitHead": "1b1d640b6e91ae9e15a158c13ff08cca19e02a83"
121
+ "gitHead": "bb5ffa612f266252403e7a71d8eb1be486b0f67a"
122
122
  }