@things-factory/operato-wms 4.3.79 → 4.3.80-alpha.3

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 (56) hide show
  1. package/client/pages/bulk-operation/bulk-operation.js +1 -0
  2. package/client/pages/components/select-inventory-popup.js +7 -1
  3. package/client/pages/components/select-product-popup.js +31 -2
  4. package/client/pages/inbound/undo-unload-popup.js +37 -21
  5. package/client/pages/inbound/worksheet-putaway.js +1 -1
  6. package/client/pages/inventory/inventory-adjustment-approval.js +4 -5
  7. package/client/pages/inventory/inventory-adjustment.js +7 -0
  8. package/client/pages/inventory-check/create-cycle-count.js +2 -3
  9. package/client/pages/order/arrival-notice/arrival-notice-detail.js +1 -1
  10. package/client/pages/order/arrival-notice/create-arrival-notice.js +1 -0
  11. package/client/pages/order/arrival-notice/duplicate-arrival-notice.js +2 -0
  12. package/client/pages/order/arrival-notice/edit-product-popup.js +2 -0
  13. package/client/pages/order/draft-release-good/draft-release-good-detail.js +7 -1
  14. package/client/pages/order/release-order/b2c/b2c-order-requests.js +73 -41
  15. package/client/pages/order/release-order/create-release-order.js +23 -0
  16. package/client/pages/order/release-order/release-extra-product-popup.js +4 -1
  17. package/client/pages/order/release-order/release-order-detail.js +5 -1
  18. package/client/pages/order/return-order/create-return-order.js +1 -0
  19. package/client/pages/order/return-order/return-order-inventory-popup.js +1 -0
  20. package/client/pages/outbound/inventory-reassign-popup.js +6 -0
  21. package/client/pages/outbound/packing-product.js +11 -6
  22. package/client/pages/outbound/picking-product.js +11 -1
  23. package/dist-server/graphql/resolvers/custom/elccl/elccl-inventory-history-report.js +4 -5
  24. package/dist-server/graphql/resolvers/custom/elccl/elccl-inventory-history-report.js.map +1 -1
  25. package/dist-server/graphql/resolvers/dashboard/arrival-notices-by-status.js +20 -8
  26. package/dist-server/graphql/resolvers/dashboard/arrival-notices-by-status.js.map +1 -1
  27. package/dist-server/graphql/resolvers/dashboard/index.js +2 -1
  28. package/dist-server/graphql/resolvers/dashboard/index.js.map +1 -1
  29. package/dist-server/graphql/resolvers/dashboard/release-goods-by-status.js +20 -8
  30. package/dist-server/graphql/resolvers/dashboard/release-goods-by-status.js.map +1 -1
  31. package/dist-server/graphql/resolvers/dashboard/unit-inbounded-outbounded.js +56 -0
  32. package/dist-server/graphql/resolvers/dashboard/unit-inbounded-outbounded.js.map +1 -0
  33. package/dist-server/graphql/resolvers/other/add-release-good-products.js +7 -11
  34. package/dist-server/graphql/resolvers/other/add-release-good-products.js.map +1 -1
  35. package/dist-server/graphql/resolvers/reports/costing-report.js +18 -24
  36. package/dist-server/graphql/resolvers/reports/costing-report.js.map +1 -1
  37. package/dist-server/graphql/resolvers/reports/inbound-order-details-report.js +6 -6
  38. package/dist-server/graphql/resolvers/reports/outbound-order-details-report.js +5 -6
  39. package/dist-server/graphql/resolvers/reports/outbound-order-details-report.js.map +1 -1
  40. package/dist-server/graphql/types/dashboard/index.js +1 -0
  41. package/dist-server/graphql/types/dashboard/index.js.map +1 -1
  42. package/package.json +8 -8
  43. package/server/graphql/resolvers/custom/elccl/elccl-inventory-history-report.ts +4 -5
  44. package/server/graphql/resolvers/dashboard/arrival-notices-by-status.ts +19 -9
  45. package/server/graphql/resolvers/dashboard/index.ts +3 -1
  46. package/server/graphql/resolvers/dashboard/release-goods-by-status.ts +19 -9
  47. package/server/graphql/resolvers/dashboard/unit-inbounded-outbounded.ts +61 -0
  48. package/server/graphql/resolvers/other/add-release-good-products.ts +8 -12
  49. package/server/graphql/resolvers/reports/costing-report.ts +18 -24
  50. package/server/graphql/resolvers/reports/inbound-order-details-report.ts +6 -6
  51. package/server/graphql/resolvers/reports/outbound-order-details-report.ts +5 -6
  52. package/server/graphql/types/dashboard/index.ts +1 -0
  53. package/translations/en.json +5 -2
  54. package/translations/ko.json +2 -2
  55. package/translations/ms.json +2 -2
  56. package/translations/zh.json +1 -1
@@ -477,6 +477,7 @@ class BulkOperation extends localize(i18next)(PageView) {
477
477
  country: String(record.country || ''),
478
478
  sku: String(record.sku || ''),
479
479
  productId: String(record.productId || ''),
480
+ productDetailId: String(record.productDetailId || ''),
480
481
  packingType: record.packingType && record.packingType != '' ? String(record.packingType) : null,
481
482
  packingSize: !isNaN(Number(record.packingSize || 'x')) ? Number(record.packingSize) : null,
482
483
  uom: record.uom && record.uom != '' ? String(record.uom) : null,
@@ -446,6 +446,7 @@ class SelectInventoryPopUp extends localize(i18next)(LitElement) {
446
446
  items {
447
447
  id
448
448
  productId
449
+ productDetailId
449
450
  batchId
450
451
  batchIdRef
451
452
  groupType
@@ -493,6 +494,7 @@ class SelectInventoryPopUp extends localize(i18next)(LitElement) {
493
494
  palletId
494
495
  cartonId
495
496
  productId
497
+ productDetailId
496
498
  productSKU
497
499
  productName
498
500
  productBrand
@@ -540,7 +542,6 @@ class SelectInventoryPopUp extends localize(i18next)(LitElement) {
540
542
  this.dispatchEvent(
541
543
  new CustomEvent('selected', {
542
544
  detail: {
543
- productDetailId: selectedProduct.id,
544
545
  packingType: selectedProduct.packingType,
545
546
  uom: selectedProduct.uom,
546
547
  uomValue: selectedProduct.uomValue,
@@ -555,6 +556,9 @@ class SelectInventoryPopUp extends localize(i18next)(LitElement) {
555
556
  packingSize: selectedProduct.packingSize,
556
557
  primaryUnit: selectedProduct.uom,
557
558
  primaryValue: selectedProduct.uomValue
559
+ },
560
+ productDetail: {
561
+ id: selectedProduct.productDetailId
558
562
  }
559
563
  }
560
564
  })
@@ -582,6 +586,7 @@ class SelectInventoryPopUp extends localize(i18next)(LitElement) {
582
586
  remainQty: itm.remainQty,
583
587
  remainUomValueWithUom: itm.remainUomValueWithUom,
584
588
  productId: itm.productId,
589
+ productDetailId: itm.productDetailId,
585
590
  remainUomValue: itm.remainUomValue,
586
591
  batchId: itm.batchId,
587
592
  batchIdRef: itm.batchIdRef,
@@ -603,6 +608,7 @@ class SelectInventoryPopUp extends localize(i18next)(LitElement) {
603
608
  remainQty: itm.remainQty,
604
609
  remainUomValueWithUom: itm.remainUomValueWithUom,
605
610
  productId: itm.productId,
611
+ productDetailId: itm.productDetailId,
606
612
  remainUomValue: itm.remainUomValue,
607
613
  batchId: itm.batchId,
608
614
  batchIdRef: itm.batchIdRef,
@@ -121,7 +121,8 @@ class SelectProductPopup extends localize(i18next)(LitElement) {
121
121
  pagination: { pages: [10, 20, 50, 100] },
122
122
  rows: {
123
123
  appendable: false,
124
- selectable: { multiple: this.selectMultipleProducts ? this.selectMultipleProducts : false }
124
+ selectable: { multiple: this.selectMultipleProducts ? this.selectMultipleProducts : false },
125
+ handlers: { dblclick: this._dblClickHandler.bind(this) }
125
126
  },
126
127
  columns: [
127
128
  { type: 'gutter', gutterName: 'sequence' },
@@ -229,6 +230,7 @@ class SelectProductPopup extends localize(i18next)(LitElement) {
229
230
  response.data.productDetails.items.map(item => {
230
231
  return {
231
232
  ...item,
233
+ productName: item.product.name,
232
234
  productId: item.product.id,
233
235
  sku: item.product.sku,
234
236
  brand: item.product.brand,
@@ -240,7 +242,34 @@ class SelectProductPopup extends localize(i18next)(LitElement) {
240
242
  }
241
243
  }
242
244
 
243
- selectProduct() {
245
+ _dblClickHandler(columns, data, column, record, rowIndex, target) {
246
+ if (this.selectMultipleProducts) return
247
+ this.dispatchEvent(
248
+ new CustomEvent('selected', {
249
+ detail: {
250
+ productDetailId: record.id,
251
+ packingType: record.packingType,
252
+ uom: record.uom,
253
+ uomValue: record.uomValue,
254
+ productName: `${record.name}(${record.description}(${record.sku}))`,
255
+ isError: false,
256
+ productBrand: record.brand,
257
+ product: {
258
+ id: record.productId,
259
+ name: record.name,
260
+ sku: record.sku,
261
+ packingType: record.packingType,
262
+ packingSize: record.packingSize,
263
+ primaryUnit: record.uom,
264
+ primaryValue: record.uomValue
265
+ }
266
+ }
267
+ })
268
+ )
269
+ history.back()
270
+ }
271
+
272
+ selectProduct(record) {
244
273
  if (this.selectMultipleProducts !== true) {
245
274
  const selectedProduct = this.productGrist.selected[0]
246
275
  if (selectedProduct) {
@@ -12,8 +12,7 @@ import { isMobileDevice } from '@things-factory/utils'
12
12
  class UndoUnloadPopup extends connect(store)(localize(i18next)(LitElement)) {
13
13
  static get properties() {
14
14
  return {
15
- _autoSelectInventoryIds: Array,
16
- _selectedInventoryIds: Array,
15
+ _selectedRecords: Array,
17
16
  config: Object,
18
17
  data: Object,
19
18
  enableCartonLabel: Boolean,
@@ -26,8 +25,7 @@ class UndoUnloadPopup extends connect(store)(localize(i18next)(LitElement)) {
26
25
 
27
26
  constructor() {
28
27
  super()
29
- this._selectedInventoryIds = []
30
- this._autoSelectInventoryIds = []
28
+ this._selectedRecords = []
31
29
  }
32
30
 
33
31
  static get styles() {
@@ -96,13 +94,21 @@ class UndoUnloadPopup extends connect(store)(localize(i18next)(LitElement)) {
96
94
 
97
95
  render() {
98
96
  return html`
99
- <form id="input-form" class="single-column-form" @keypress="${this._populateTargetedInventory.bind(this)}">
97
+ <form id="input-form" class="single-column-form">
100
98
  <fieldset>
101
99
  ${this.enableCartonLabel
102
100
  ? html`<label>${i18next.t('label.carton_id')}</label>
103
- <barcode-scanable-input name="cartonId" without-enter custom-input></barcode-scanable-input>`
101
+ <barcode-scanable-input
102
+ name="cartonId"
103
+ custom-input
104
+ @keypress="${this._populateTargetedInventory.bind(this)}"
105
+ ></barcode-scanable-input>`
104
106
  : html`<label>${i18next.t('label.lot_id')}</label>
105
- <barcode-scanable-input name="lotId" without-enter custom-input></barcode-scanable-input>`}
107
+ <barcode-scanable-input
108
+ name="lotId"
109
+ custom-input
110
+ @keypress="${this._populateTargetedInventory.bind(this)}"
111
+ ></barcode-scanable-input>`}
106
112
  </fieldset>
107
113
  </form>
108
114
 
@@ -112,6 +118,7 @@ class UndoUnloadPopup extends connect(store)(localize(i18next)(LitElement)) {
112
118
  .mode=${isMobileDevice() ? 'LIST' : 'GRID'}
113
119
  .config=${this.config}
114
120
  .data="${this.data}"
121
+ .selectedRecords=${this._selectedRecords}
115
122
  ></data-grist>
116
123
  </div>
117
124
 
@@ -125,7 +132,9 @@ class UndoUnloadPopup extends connect(store)(localize(i18next)(LitElement)) {
125
132
  this.config = {
126
133
  pagination: { infinite: true },
127
134
  rows: { selectable: { multiple: true }, appendable: false },
128
- list: { fields: ['palletId', 'cartonId', 'batchId', 'product', 'packingType', 'packingSize', 'qty', 'status'] },
135
+ list: {
136
+ fields: ['palletId', 'cartonId', 'batchId', 'sku', 'product', 'packingType', 'packingSize', 'qty', 'status']
137
+ },
129
138
  columns: [
130
139
  { type: 'gutter', gutterName: 'sequence' },
131
140
  { type: 'gutter', gutterName: 'row-selector', multiple: true },
@@ -151,6 +160,13 @@ class UndoUnloadPopup extends connect(store)(localize(i18next)(LitElement)) {
151
160
  header: i18next.t('field.batch_id'),
152
161
  width: 150
153
162
  },
163
+ {
164
+ type: 'string',
165
+ name: 'sku',
166
+ label: true,
167
+ header: i18next.t('field.sku'),
168
+ width: 120
169
+ },
154
170
  {
155
171
  type: 'object',
156
172
  name: 'product',
@@ -199,11 +215,8 @@ class UndoUnloadPopup extends connect(store)(localize(i18next)(LitElement)) {
199
215
  async _undoUnloading() {
200
216
  try {
201
217
  let selectedInventoryIds = []
202
- if (this._autoSelectInventoryIds?.length) {
203
- selectedInventoryIds = this._autoSelectInventoryIds
204
- } else {
205
- selectedInventoryIds = this.dataGrist.selected.map(inventory => inventory.id)
206
- }
218
+ selectedInventoryIds = this.dataGrist.selected.map(inventory => inventory.id)
219
+
207
220
  if (!selectedInventoryIds?.length) throw new Error(i18next.t('text.select_at_least_one_inventory_to_undo'))
208
221
 
209
222
  this._validateScanInventory()
@@ -226,9 +239,9 @@ class UndoUnloadPopup extends connect(store)(localize(i18next)(LitElement)) {
226
239
  }
227
240
 
228
241
  _populateTargetedInventory(e) {
229
- if (e.keyCode === 13) {
230
- e.preventDefault()
231
-
242
+ if (e.keyCode !== 13) return
243
+ e.preventDefault()
244
+ try {
232
245
  let targetedUndoInventories = []
233
246
 
234
247
  if (this.enableCartonLabel) {
@@ -248,13 +261,16 @@ class UndoUnloadPopup extends connect(store)(localize(i18next)(LitElement)) {
248
261
  this.lotInput.value = ''
249
262
  }
250
263
  this._showToast({ message: i18next.t('text.no_matching_unloaded_inventory_found') })
251
- } else if (targetedUndoInventories?.length == 1) {
252
- this.data = { records: targetedUndoInventories }
253
- this._autoSelectInventoryIds = targetedUndoInventories.map(inventory => inventory.id)
254
- this._undoUnloading()
255
264
  } else {
256
- this.data = { records: targetedUndoInventories }
265
+ this.data = {
266
+ records: targetedUndoInventories.map(itm => {
267
+ return { ...itm, sku: itm.product.sku }
268
+ })
269
+ }
270
+ this._selectedRecords = targetedUndoInventories?.length == 1 ? targetedUndoInventories : []
257
271
  }
272
+ } catch (e) {
273
+ this._showToast(e)
258
274
  }
259
275
  }
260
276
 
@@ -485,7 +485,7 @@ class WorksheetPutaway extends localize(i18next)(PageView) {
485
485
  const currentLocationColumn = {
486
486
  type: 'object',
487
487
  name: 'location',
488
- header: i18next.t('field.buffer_location'),
488
+ header: i18next.t('field.location'),
489
489
  width: 170
490
490
  }
491
491
  const statusColumnConfig = {
@@ -8,7 +8,7 @@ import { connect } from 'pwa-helpers/connect-mixin'
8
8
 
9
9
  import { getCodeByName } from '@things-factory/code-base'
10
10
  import { i18next, localize } from '@things-factory/i18n-base'
11
- import { client, PageView, store,gqlContext } from '@things-factory/shell'
11
+ import { client, PageView, store, gqlContext } from '@things-factory/shell'
12
12
  import { CommonButtonStyles, ScrollbarStyles } from '@things-factory/styles'
13
13
  import { isMobileDevice } from '@things-factory/utils'
14
14
  import { openPopup } from '@things-factory/layout-base'
@@ -142,8 +142,7 @@ class InventoryAdjustmentApproval extends connect(store)(localize(i18next)(PageV
142
142
  { column: 'manufactureDate', name: 'Mfg. Date' },
143
143
  { column: 'unitCost', name: 'Unit Cost' },
144
144
  { column: 'inventoryItemChange', name: 'Inventory Item Changes' },
145
- { column: 'status', name: 'Status' },
146
-
145
+ { column: 'status', name: 'Status' }
147
146
  ]
148
147
 
149
148
  this.config = {
@@ -200,7 +199,7 @@ class InventoryAdjustmentApproval extends connect(store)(localize(i18next)(PageV
200
199
 
201
200
  if (item.column == 'status' && record.transactionType == 'MISSING') {
202
201
  updatedVal = record.transactionType || '[N/A]'
203
- }else if(item.column == 'status'){
202
+ } else if (item.column == 'status') {
204
203
  updatedVal = '[N/A]'
205
204
  }
206
205
 
@@ -692,4 +691,4 @@ class InventoryAdjustmentApproval extends connect(store)(localize(i18next)(PageV
692
691
  }
693
692
  }
694
693
 
695
- window.customElements.define('inventory-adjustment-approval', InventoryAdjustmentApproval)
694
+ window.customElements.define('inventory-adjustment-approval', InventoryAdjustmentApproval)
@@ -586,6 +586,9 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
586
586
  isRequireSerialNumberScanningOutbound
587
587
  isRequireSerialNumberScanningInbound
588
588
  }
589
+ productDetail {
590
+ id
591
+ }
589
592
  qty
590
593
  lockedQty
591
594
  warehouse {
@@ -651,6 +654,9 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
651
654
  description
652
655
  productInformation
653
656
  }
657
+ productDetail {
658
+ id
659
+ }
654
660
  qty
655
661
  lockedQty
656
662
  warehouse {
@@ -895,6 +901,7 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
895
901
 
896
902
  row.bizplace = row.bizplace ? { id: row.bizplace.id } : undefined
897
903
  row.location = row.location ? { id: row.location.id } : undefined
904
+ row.productDetailId = row.product ? row.product.id : undefined
898
905
  row.product = row.product ? { id: row.product.productId } : undefined
899
906
  row.uomValue = row.uomValue ? parseFloat(row.uomValue) : undefined
900
907
  row.unitCost = row.unitCost ? parseFloat(row.unitCost) : undefined
@@ -166,6 +166,7 @@ class CreateCycleCount extends localize(i18next)(PageView) {
166
166
  descriptionField: 'productName',
167
167
  select: [
168
168
  { name: 'productId', hidden: true },
169
+ { name: 'productDetailId', hidden: true },
169
170
  { name: 'remainUomValue', hidden: true },
170
171
  { name: 'uom', hidden: true },
171
172
  { name: 'batchId', header: i18next.t('field.batch_id') },
@@ -553,9 +554,7 @@ class CreateCycleCount extends localize(i18next)(PageView) {
553
554
  return {
554
555
  batchId: itm.batchId,
555
556
  batchIdRef: itm.batchIdRef,
556
- packingSize: itm.packingSize,
557
- packingType: itm.packingType,
558
- productId: itm.productId
557
+ productDetailId: itm.productDetailId
559
558
  }
560
559
  }) || []
561
560
 
@@ -217,7 +217,7 @@ class ArrivalNoticeDetail extends localize(i18next)(PageView) {
217
217
  }
218
218
  }
219
219
 
220
- if (this.isUserBelongsDomain) {
220
+ if (this.isUserBelongsDomain) {
221
221
  if (this._status === ORDER_STATUS.PROCESSING.value || this._status === ORDER_STATUS.READY_TO_UNLOAD.value) {
222
222
  actions.push(
223
223
  {
@@ -1352,6 +1352,7 @@ class CreateArrivalNotice extends localize(i18next)(PageView) {
1352
1352
  batchId: record.batchId,
1353
1353
  batchIdRef: record?.batchIdRef ? record.batchIdRef : null,
1354
1354
  product: { id: record.product.id },
1355
+ productDetail: { id: record.productDetailId },
1355
1356
  packingType: record.packingType,
1356
1357
  packingSize: record.packingSize || record.product.packingSize,
1357
1358
  uomValue: record?.uomValue ? record.uomValue : 0,
@@ -1425,6 +1425,7 @@ class DuplicateArrivalNotice extends localize(i18next)(PageView) {
1425
1425
  batchId: record.batchId,
1426
1426
  batchIdRef: record?.batchIdRef ? record.batchIdRef : null,
1427
1427
  product: { id: record.product.id },
1428
+ productDetail: { id: record.productDetailId },
1428
1429
  packingType: record.packingType,
1429
1430
  packingSize: record?.product?.packingSize ? record.product.packingSize : record.packingSize,
1430
1431
  uomValue: record?.uomValue ? record.uomValue : 0,
@@ -1480,6 +1481,7 @@ class DuplicateArrivalNotice extends localize(i18next)(PageView) {
1480
1481
  } else if (record.targetType === VAS_BATCH_AND_PRODUCT_TYPE) {
1481
1482
  result.targetBatchId = record.target.batchId
1482
1483
  result.targetProduct = { id: record.target.productId }
1484
+ result.targetProductDetail = { id: record.target.productDetailId }
1483
1485
  result.packingType = record.packingType
1484
1486
  result.qty = record.qty
1485
1487
  result.uomValue = record.uomValue
@@ -650,6 +650,7 @@ export class EditProductPopup extends localize(i18next)(LitElement) {
650
650
  palletQty: 0,
651
651
  adjustedPalletQty: record?.palletQty ? record.palletQty : null,
652
652
  product: { id: record.product.id },
653
+ productDetail: { id: record.productDetailId },
653
654
  packingType: 'N/A',
654
655
  adjustedPackingType: record.packingType,
655
656
  uomValue: 0,
@@ -682,6 +683,7 @@ export class EditProductPopup extends localize(i18next)(LitElement) {
682
683
  adjustedBatchIdRef: record.batchIdRef === record.__origin__.batchIdRef ? null : record.batchIdRef,
683
684
  adjustedPalletQty: record.palletQty == record.__origin__.palletQty ? null : record.palletQty,
684
685
  product: { id: record.product.id },
686
+ productDetail: { id: record.productDetailId },
685
687
  adjustedPackingType: record.packingType === record.__origin__.packingType ? null : record.packingType,
686
688
  adjustedUomValue: record.uomValue == record.__origin__.uomValue ? null : record.uomValue,
687
689
  adjustedUom: record.uom === record.__origin__.uom ? null : record.uom,
@@ -543,7 +543,8 @@ class DraftReleaseGoodDetail extends connect(store)(localize(i18next)(PageView))
543
543
  let returnObj = {
544
544
  ...record,
545
545
  ...record.product,
546
- product: { ...record.product, id: record.product.id || record.product.productId },
546
+ product: { ...record.product, id: record.product?.id || record.product.productId },
547
+ productDetail: { id: record.productDetail?.id || record.product.productDetailId },
547
548
  name: record.name ? record.name : idx,
548
549
  releaseQty: record.releaseQty < 0 ? 0 : record.releaseQty,
549
550
  id: record.id
@@ -597,6 +598,7 @@ class DraftReleaseGoodDetail extends connect(store)(localize(i18next)(PageView))
597
598
  select: [
598
599
  { name: 'id', hidden: true },
599
600
  { name: 'productId', hidden: true },
601
+ { name: 'productDetailId', hidden: true },
600
602
  { name: 'remainUomValue', hidden: true },
601
603
  {
602
604
  name: 'groupType',
@@ -816,6 +818,9 @@ class DraftReleaseGoodDetail extends connect(store)(localize(i18next)(PageView))
816
818
  sku
817
819
  description
818
820
  }
821
+ productDetail {
822
+ id
823
+ }
819
824
  packingType
820
825
  packingSize
821
826
  uomValue
@@ -1042,6 +1047,7 @@ class DraftReleaseGoodDetail extends connect(store)(localize(i18next)(PageView))
1042
1047
  id: record.id ? record.id.toString() : null,
1043
1048
  name: record.name ? record.name.toString() : null,
1044
1049
  product: { id: record.product.id },
1050
+ productDetail: { id: record.productDetail.id },
1045
1051
  packingType: record.packingType,
1046
1052
  uomValue: record?.uomValue ? record.uomValue : 0,
1047
1053
  uom: record.uom,
@@ -405,6 +405,78 @@ class B2cOrderRequests extends connect(store)(localize(i18next)(PageView)) {
405
405
  imex: { header: i18next.t('field.updated_by'), key: 'updater.name', width: 25, type: 'string' },
406
406
  sortable: true,
407
407
  width: 200
408
+ },
409
+ {
410
+ type: 'string',
411
+ name: 'attentionTo',
412
+ header: i18next.t('field.receiver_name'),
413
+ imex: { header: i18next.t('field.receiver_name'), key: 'attentionTo', width: 25, type: 'string' },
414
+ width: 200,
415
+ hidden: true
416
+ },
417
+ {
418
+ type: 'string',
419
+ name: 'attentionCompany',
420
+ header: i18next.t('field.receiver_company'),
421
+ imex: { header: i18next.t('field.receiver_company'), key: 'attentionCompany', width: 25, type: 'string' },
422
+ width: 200,
423
+ hidden: true
424
+ },
425
+ {
426
+ type: 'string',
427
+ name: 'deliveryAddress1',
428
+ header: i18next.t('field.delivery_address'),
429
+ imex: { header: i18next.t('field.delivery_address'), key: 'deliveryAddress1', width: 75, type: 'string' },
430
+ width: 200,
431
+ hidden: true
432
+ },
433
+ {
434
+ type: 'string',
435
+ name: 'city',
436
+ header: i18next.t('field.city'),
437
+ imex: { header: i18next.t('field.city'), key: 'city', width: 25, type: 'string' },
438
+ width: 200,
439
+ hidden: true
440
+ },
441
+ {
442
+ type: 'string',
443
+ name: 'state',
444
+ header: i18next.t('field.state'),
445
+ imex: { header: i18next.t('field.state'), key: 'state', width: 25, type: 'string' },
446
+ width: 200,
447
+ hidden: true
448
+ },
449
+ {
450
+ type: 'string',
451
+ name: 'country',
452
+ header: i18next.t('field.country'),
453
+ imex: { header: i18next.t('field.country'), key: 'country', width: 20, type: 'string' },
454
+ width: 200,
455
+ hidden: true
456
+ },
457
+ {
458
+ type: 'string',
459
+ name: 'phone1',
460
+ header: `${i18next.t('field.contact')} 1`,
461
+ imex: { header: `${i18next.t('field.contact')} 1`, key: 'phone1', width: 25, type: 'string' },
462
+ width: 200,
463
+ hidden: true
464
+ },
465
+ {
466
+ type: 'string',
467
+ name: 'phone2',
468
+ header: `${i18next.t('field.contact')} 2`,
469
+ imex: { header: `${i18next.t('field.contact')} 2`, key: 'phone2', width: 25, type: 'string' },
470
+ width: 200,
471
+ hidden: true
472
+ },
473
+ {
474
+ type: 'string',
475
+ name: 'email',
476
+ header: i18next.t('field.email'),
477
+ imex: { header: i18next.t('field.email'), key: 'email', width: 25, type: 'string' },
478
+ width: 200,
479
+ hidden: true
408
480
  }
409
481
  ]
410
482
  }
@@ -430,7 +502,6 @@ class B2cOrderRequests extends connect(store)(localize(i18next)(PageView)) {
430
502
  items {
431
503
  id
432
504
  trackingNo
433
- attentionTo
434
505
  deliveryAddress1
435
506
  deliveryAddress2
436
507
  deliveryAddress3
@@ -444,6 +515,7 @@ class B2cOrderRequests extends connect(store)(localize(i18next)(PageView)) {
444
515
  country
445
516
  phone1
446
517
  phone2
518
+ email
447
519
  postalCode
448
520
  marketplaceOrderStatus
449
521
  transporter
@@ -713,46 +785,6 @@ class B2cOrderRequests extends connect(store)(localize(i18next)(PageView)) {
713
785
  )
714
786
  }
715
787
 
716
- async _exportableData() {
717
- try {
718
- let data = []
719
-
720
- var headerSetting = [
721
- { header: i18next.t('field.ro'), key: 'name', width: 25, type: 'string' },
722
- { header: i18next.t('field.company'), key: 'bizplaceName', width: 25, type: 'string' },
723
- { header: i18next.t('field.ref_no'), key: 'refNo', width: 25, type: 'string' },
724
- { header: i18next.t('field.ref_no_2'), key: 'refNo2', width: 25, type: 'string' },
725
- { header: i18next.t('field.release_date'), key: 'releaseDate', width: 30, type: 'date' },
726
- { header: i18next.t('field.postal_code'), key: 'postalCode', width: 30, type: 'string' },
727
- {
728
- header: i18next.t('field.marketplace_order_status'),
729
- key: 'marketplaceOrderStatus',
730
- width: 30,
731
- type: 'string'
732
- },
733
- { header: i18next.t('field.warehouse_status'), key: 'status', width: 30, type: 'string' },
734
- { header: i18next.t('field.transporter'), key: 'transporter', width: 30, type: 'string' },
735
- { header: i18next.t('field.delivery_address'), key: 'deliveryAddress1', width: 30, type: 'string' },
736
- { header: i18next.t('field.attention_to'), key: 'attentionTo', width: 30, type: 'string' },
737
- { header: i18next.t('field.phone'), key: 'phone1', width: 30, type: 'string' }
738
- ]
739
-
740
- if (this.dataGrist.selected && this.dataGrist.selected.length > 0) {
741
- data = this.dataGrist.selected
742
- } else {
743
- const bizplaceFilters = (await this.searchForm.getQueryFilters()).filter(x => x.name === 'bizplaceId')
744
- if (bizplaceFilters.length == 0) {
745
- throw new Error(`Please select a customer for export.`)
746
- }
747
- data = await this.fetchHandler({ page: 1, limit: 9999999 })
748
- }
749
-
750
- return { header: headerSetting, data }
751
- } catch (e) {
752
- this._showToast(e)
753
- }
754
- }
755
-
756
788
  async _openGenerateWorksheetPopup() {
757
789
  try {
758
790
  if (this.dataGrist.selected.length <= 0)
@@ -1554,6 +1554,9 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
1554
1554
  product: {
1555
1555
  id: record?.inventory?.productId,
1556
1556
  name: record?.inventory?.productName
1557
+ },
1558
+ productDetail: {
1559
+ id: record?.inventory?.productDetailId
1557
1560
  }
1558
1561
  }
1559
1562
  }
@@ -1786,6 +1789,7 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
1786
1789
  bundleId
1787
1790
  bundleQty
1788
1791
  productId
1792
+ productDetailId
1789
1793
  productSku
1790
1794
  productName
1791
1795
  productDescription
@@ -2116,6 +2120,7 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
2116
2120
  packingType: record?.inventory?.packingType,
2117
2121
  packingSize: record?.inventory?.packingSize,
2118
2122
  productId: record?.inventory?.productId,
2123
+ productDetailId: record?.inventory?.productDetailId,
2119
2124
  groupType: record?.inventory?.groupType,
2120
2125
  releaseQty: record.releaseQty || 0,
2121
2126
  releaseUomValue: record.releaseUomValue || 0
@@ -2290,6 +2295,7 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
2290
2295
  bundleReleaseDetail = bundleReleaseDetail.records.map(item => {
2291
2296
  return {
2292
2297
  product: { id: item.productId, name: item.productName },
2298
+ productDetail: { id: item.productDetailId },
2293
2299
  batchId: item.batchId,
2294
2300
  packingType: item.packingType,
2295
2301
  packingSize: item.packingSize,
@@ -2326,11 +2332,17 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
2326
2332
  id: record.inventory.productId,
2327
2333
  name: record.inventory.productName
2328
2334
  }
2335
+ newRecord.productDetail = {
2336
+ id: record.inventory.productDetailId
2337
+ }
2329
2338
  } else {
2330
2339
  newRecord.product = {
2331
2340
  id: record.inventory.productId || record.inventory.product.id,
2332
2341
  name: record.inventory.productName || record.inventory.product.name
2333
2342
  }
2343
+ newRecord.productDetail = {
2344
+ id: record.inventory.productDetailId || record.inventory.productDetail.id
2345
+ }
2334
2346
  newRecord.inventory = { id: record.id }
2335
2347
  }
2336
2348
 
@@ -2625,6 +2637,10 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
2625
2637
  name
2626
2638
  description
2627
2639
  }
2640
+ productDetail {
2641
+ id
2642
+ name
2643
+ }
2628
2644
  }
2629
2645
  }
2630
2646
  }
@@ -2644,6 +2660,7 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
2644
2660
  op.inventory = {
2645
2661
  batchId: op.batchId,
2646
2662
  productId: op.product.id,
2663
+ productDetailId: op.productDetail.id,
2647
2664
  product: op.product,
2648
2665
  productName: op.product.name,
2649
2666
  palletId: i18next.t('label.cross_docking'),
@@ -2728,6 +2745,7 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
2728
2745
  batchId
2729
2746
  batchIdRef
2730
2747
  productId
2748
+ productDetailId
2731
2749
  productSKU
2732
2750
  productName
2733
2751
  remainQty
@@ -2744,6 +2762,7 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
2744
2762
  batchId
2745
2763
  batchIdRef
2746
2764
  productId
2765
+ productDetailId
2747
2766
  productSKU
2748
2767
  productName
2749
2768
  remainQty
@@ -2758,6 +2777,10 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
2758
2777
  name
2759
2778
  sku
2760
2779
  }
2780
+ productDetail {
2781
+ id
2782
+ name
2783
+ }
2761
2784
  }
2762
2785
  }
2763
2786
  `,