@things-factory/operato-wms 4.3.94-alpha.1 → 4.3.96

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 (38) hide show
  1. package/client/pages/bulk-operation/bulk-operation.js +0 -1
  2. package/client/pages/components/select-inventory-popup.js +1 -7
  3. package/client/pages/components/select-product-popup.js +2 -31
  4. package/client/pages/inventory/inventory-adjustment-approval.js +5 -4
  5. package/client/pages/inventory/inventory-adjustment.js +0 -7
  6. package/client/pages/inventory/inventory-by-product.js +1 -0
  7. package/client/pages/inventory-check/create-cycle-count.js +3 -2
  8. package/client/pages/order/arrival-notice/arrival-notice-detail.js +1 -1
  9. package/client/pages/order/arrival-notice/create-arrival-notice.js +0 -1
  10. package/client/pages/order/arrival-notice/duplicate-arrival-notice.js +0 -2
  11. package/client/pages/order/arrival-notice/edit-product-popup.js +0 -2
  12. package/client/pages/order/draft-release-good/draft-release-good-detail.js +1 -7
  13. package/client/pages/order/release-order/create-release-order.js +0 -23
  14. package/client/pages/order/release-order/release-extra-product-popup.js +1 -4
  15. package/client/pages/order/release-order/release-order-detail.js +1 -5
  16. package/client/pages/order/return-order/create-return-order.js +0 -1
  17. package/client/pages/order/return-order/return-order-inventory-popup.js +0 -1
  18. package/client/pages/outbound/inventory-reassign-popup.js +0 -6
  19. package/client/pages/outbound/picking-product.js +1 -11
  20. package/dist-server/graphql/resolvers/custom/elccl/elccl-inventory-history-report.js +5 -4
  21. package/dist-server/graphql/resolvers/custom/elccl/elccl-inventory-history-report.js.map +1 -1
  22. package/dist-server/graphql/resolvers/other/add-release-good-products.js +11 -7
  23. package/dist-server/graphql/resolvers/other/add-release-good-products.js.map +1 -1
  24. package/dist-server/graphql/resolvers/reports/costing-report.js +24 -18
  25. package/dist-server/graphql/resolvers/reports/costing-report.js.map +1 -1
  26. package/dist-server/graphql/resolvers/reports/inbound-order-details-report.js +6 -6
  27. package/dist-server/graphql/resolvers/reports/outbound-order-details-report.js +6 -5
  28. package/dist-server/graphql/resolvers/reports/outbound-order-details-report.js.map +1 -1
  29. package/package.json +50 -50
  30. package/server/graphql/resolvers/custom/elccl/elccl-inventory-history-report.ts +5 -4
  31. package/server/graphql/resolvers/other/add-release-good-products.ts +12 -8
  32. package/server/graphql/resolvers/reports/costing-report.ts +24 -18
  33. package/server/graphql/resolvers/reports/inbound-order-details-report.ts +6 -6
  34. package/server/graphql/resolvers/reports/outbound-order-details-report.ts +6 -5
  35. package/translations/en.json +2 -2
  36. package/translations/ko.json +2 -2
  37. package/translations/ms.json +2 -2
  38. package/translations/zh.json +1 -1
@@ -477,7 +477,6 @@ 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 || ''),
481
480
  packingType: record.packingType && record.packingType != '' ? String(record.packingType) : null,
482
481
  packingSize: !isNaN(Number(record.packingSize || 'x')) ? Number(record.packingSize) : null,
483
482
  uom: record.uom && record.uom != '' ? String(record.uom) : null,
@@ -446,7 +446,6 @@ class SelectInventoryPopUp extends localize(i18next)(LitElement) {
446
446
  items {
447
447
  id
448
448
  productId
449
- productDetailId
450
449
  batchId
451
450
  batchIdRef
452
451
  groupType
@@ -494,7 +493,6 @@ class SelectInventoryPopUp extends localize(i18next)(LitElement) {
494
493
  palletId
495
494
  cartonId
496
495
  productId
497
- productDetailId
498
496
  productSKU
499
497
  productName
500
498
  productBrand
@@ -542,6 +540,7 @@ class SelectInventoryPopUp extends localize(i18next)(LitElement) {
542
540
  this.dispatchEvent(
543
541
  new CustomEvent('selected', {
544
542
  detail: {
543
+ productDetailId: selectedProduct.id,
545
544
  packingType: selectedProduct.packingType,
546
545
  uom: selectedProduct.uom,
547
546
  uomValue: selectedProduct.uomValue,
@@ -556,9 +555,6 @@ class SelectInventoryPopUp extends localize(i18next)(LitElement) {
556
555
  packingSize: selectedProduct.packingSize,
557
556
  primaryUnit: selectedProduct.uom,
558
557
  primaryValue: selectedProduct.uomValue
559
- },
560
- productDetail: {
561
- id: selectedProduct.productDetailId
562
558
  }
563
559
  }
564
560
  })
@@ -586,7 +582,6 @@ class SelectInventoryPopUp extends localize(i18next)(LitElement) {
586
582
  remainQty: itm.remainQty,
587
583
  remainUomValueWithUom: itm.remainUomValueWithUom,
588
584
  productId: itm.productId,
589
- productDetailId: itm.productDetailId,
590
585
  remainUomValue: itm.remainUomValue,
591
586
  batchId: itm.batchId,
592
587
  batchIdRef: itm.batchIdRef,
@@ -608,7 +603,6 @@ class SelectInventoryPopUp extends localize(i18next)(LitElement) {
608
603
  remainQty: itm.remainQty,
609
604
  remainUomValueWithUom: itm.remainUomValueWithUom,
610
605
  productId: itm.productId,
611
- productDetailId: itm.productDetailId,
612
606
  remainUomValue: itm.remainUomValue,
613
607
  batchId: itm.batchId,
614
608
  batchIdRef: itm.batchIdRef,
@@ -121,8 +121,7 @@ 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 },
125
- handlers: { dblclick: this._dblClickHandler.bind(this) }
124
+ selectable: { multiple: this.selectMultipleProducts ? this.selectMultipleProducts : false }
126
125
  },
127
126
  columns: [
128
127
  { type: 'gutter', gutterName: 'sequence' },
@@ -230,7 +229,6 @@ class SelectProductPopup extends localize(i18next)(LitElement) {
230
229
  response.data.productDetails.items.map(item => {
231
230
  return {
232
231
  ...item,
233
- productName: item.product.name,
234
232
  productId: item.product.id,
235
233
  sku: item.product.sku,
236
234
  brand: item.product.brand,
@@ -242,34 +240,7 @@ class SelectProductPopup extends localize(i18next)(LitElement) {
242
240
  }
243
241
  }
244
242
 
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) {
243
+ selectProduct() {
273
244
  if (this.selectMultipleProducts !== true) {
274
245
  const selectedProduct = this.productGrist.selected[0]
275
246
  if (selectedProduct) {
@@ -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,7 +142,8 @@ 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' }
145
+ { column: 'status', name: 'Status' },
146
+
146
147
  ]
147
148
 
148
149
  this.config = {
@@ -199,7 +200,7 @@ class InventoryAdjustmentApproval extends connect(store)(localize(i18next)(PageV
199
200
 
200
201
  if (item.column == 'status' && record.transactionType == 'MISSING') {
201
202
  updatedVal = record.transactionType || '[N/A]'
202
- } else if (item.column == 'status') {
203
+ }else if(item.column == 'status'){
203
204
  updatedVal = '[N/A]'
204
205
  }
205
206
 
@@ -691,4 +692,4 @@ class InventoryAdjustmentApproval extends connect(store)(localize(i18next)(PageV
691
692
  }
692
693
  }
693
694
 
694
- window.customElements.define('inventory-adjustment-approval', InventoryAdjustmentApproval)
695
+ window.customElements.define('inventory-adjustment-approval', InventoryAdjustmentApproval)
@@ -586,9 +586,6 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
586
586
  isRequireSerialNumberScanningOutbound
587
587
  isRequireSerialNumberScanningInbound
588
588
  }
589
- productDetail {
590
- id
591
- }
592
589
  qty
593
590
  lockedQty
594
591
  warehouse {
@@ -654,9 +651,6 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
654
651
  description
655
652
  productInformation
656
653
  }
657
- productDetail {
658
- id
659
- }
660
654
  qty
661
655
  lockedQty
662
656
  warehouse {
@@ -901,7 +895,6 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
901
895
 
902
896
  row.bizplace = row.bizplace ? { id: row.bizplace.id } : undefined
903
897
  row.location = row.location ? { id: row.location.id } : undefined
904
- row.productDetailId = row.product ? row.product.id : undefined
905
898
  row.product = row.product ? { id: row.product.productId } : undefined
906
899
  row.uomValue = row.uomValue ? parseFloat(row.uomValue) : undefined
907
900
  row.unitCost = row.unitCost ? parseFloat(row.unitCost) : undefined
@@ -476,6 +476,7 @@ class InventoryByProduct extends localize(i18next)(PageView) {
476
476
  id: item.id,
477
477
  name: item.name,
478
478
  sku: item.sku,
479
+ brand: item.brand,
479
480
  description: item.description,
480
481
  packingType: item.packingType,
481
482
  bizplace: item.bizplace.name,
@@ -166,7 +166,6 @@ class CreateCycleCount extends localize(i18next)(PageView) {
166
166
  descriptionField: 'productName',
167
167
  select: [
168
168
  { name: 'productId', hidden: true },
169
- { name: 'productDetailId', hidden: true },
170
169
  { name: 'remainUomValue', hidden: true },
171
170
  { name: 'uom', hidden: true },
172
171
  { name: 'batchId', header: i18next.t('field.batch_id') },
@@ -554,7 +553,9 @@ class CreateCycleCount extends localize(i18next)(PageView) {
554
553
  return {
555
554
  batchId: itm.batchId,
556
555
  batchIdRef: itm.batchIdRef,
557
- productDetailId: itm.productDetailId
556
+ packingSize: itm.packingSize,
557
+ packingType: itm.packingType,
558
+ productId: itm.productId
558
559
  }
559
560
  }) || []
560
561
 
@@ -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,7 +1352,6 @@ 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 },
1356
1355
  packingType: record.packingType,
1357
1356
  packingSize: record.packingSize || record.product.packingSize,
1358
1357
  uomValue: record?.uomValue ? record.uomValue : 0,
@@ -1425,7 +1425,6 @@ 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 },
1429
1428
  packingType: record.packingType,
1430
1429
  packingSize: record?.product?.packingSize ? record.product.packingSize : record.packingSize,
1431
1430
  uomValue: record?.uomValue ? record.uomValue : 0,
@@ -1481,7 +1480,6 @@ class DuplicateArrivalNotice extends localize(i18next)(PageView) {
1481
1480
  } else if (record.targetType === VAS_BATCH_AND_PRODUCT_TYPE) {
1482
1481
  result.targetBatchId = record.target.batchId
1483
1482
  result.targetProduct = { id: record.target.productId }
1484
- result.targetProductDetail = { id: record.target.productDetailId }
1485
1483
  result.packingType = record.packingType
1486
1484
  result.qty = record.qty
1487
1485
  result.uomValue = record.uomValue
@@ -650,7 +650,6 @@ 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 },
654
653
  packingType: 'N/A',
655
654
  adjustedPackingType: record.packingType,
656
655
  uomValue: 0,
@@ -683,7 +682,6 @@ export class EditProductPopup extends localize(i18next)(LitElement) {
683
682
  adjustedBatchIdRef: record.batchIdRef === record.__origin__.batchIdRef ? null : record.batchIdRef,
684
683
  adjustedPalletQty: record.palletQty == record.__origin__.palletQty ? null : record.palletQty,
685
684
  product: { id: record.product.id },
686
- productDetail: { id: record.productDetailId },
687
685
  adjustedPackingType: record.packingType === record.__origin__.packingType ? null : record.packingType,
688
686
  adjustedUomValue: record.uomValue == record.__origin__.uomValue ? null : record.uomValue,
689
687
  adjustedUom: record.uom === record.__origin__.uom ? null : record.uom,
@@ -543,8 +543,7 @@ 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 },
547
- productDetail: { id: record.productDetail?.id || record.product.productDetailId },
546
+ product: { ...record.product, id: record.product.id || record.product.productId },
548
547
  name: record.name ? record.name : idx,
549
548
  releaseQty: record.releaseQty < 0 ? 0 : record.releaseQty,
550
549
  id: record.id
@@ -598,7 +597,6 @@ class DraftReleaseGoodDetail extends connect(store)(localize(i18next)(PageView))
598
597
  select: [
599
598
  { name: 'id', hidden: true },
600
599
  { name: 'productId', hidden: true },
601
- { name: 'productDetailId', hidden: true },
602
600
  { name: 'remainUomValue', hidden: true },
603
601
  {
604
602
  name: 'groupType',
@@ -818,9 +816,6 @@ class DraftReleaseGoodDetail extends connect(store)(localize(i18next)(PageView))
818
816
  sku
819
817
  description
820
818
  }
821
- productDetail {
822
- id
823
- }
824
819
  packingType
825
820
  packingSize
826
821
  uomValue
@@ -1047,7 +1042,6 @@ class DraftReleaseGoodDetail extends connect(store)(localize(i18next)(PageView))
1047
1042
  id: record.id ? record.id.toString() : null,
1048
1043
  name: record.name ? record.name.toString() : null,
1049
1044
  product: { id: record.product.id },
1050
- productDetail: { id: record.productDetail.id },
1051
1045
  packingType: record.packingType,
1052
1046
  uomValue: record?.uomValue ? record.uomValue : 0,
1053
1047
  uom: record.uom,
@@ -1554,9 +1554,6 @@ 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
1560
1557
  }
1561
1558
  }
1562
1559
  }
@@ -1789,7 +1786,6 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
1789
1786
  bundleId
1790
1787
  bundleQty
1791
1788
  productId
1792
- productDetailId
1793
1789
  productSku
1794
1790
  productName
1795
1791
  productDescription
@@ -2120,7 +2116,6 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
2120
2116
  packingType: record?.inventory?.packingType,
2121
2117
  packingSize: record?.inventory?.packingSize,
2122
2118
  productId: record?.inventory?.productId,
2123
- productDetailId: record?.inventory?.productDetailId,
2124
2119
  groupType: record?.inventory?.groupType,
2125
2120
  releaseQty: record.releaseQty || 0,
2126
2121
  releaseUomValue: record.releaseUomValue || 0
@@ -2295,7 +2290,6 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
2295
2290
  bundleReleaseDetail = bundleReleaseDetail.records.map(item => {
2296
2291
  return {
2297
2292
  product: { id: item.productId, name: item.productName },
2298
- productDetail: { id: item.productDetailId },
2299
2293
  batchId: item.batchId,
2300
2294
  packingType: item.packingType,
2301
2295
  packingSize: item.packingSize,
@@ -2332,17 +2326,11 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
2332
2326
  id: record.inventory.productId,
2333
2327
  name: record.inventory.productName
2334
2328
  }
2335
- newRecord.productDetail = {
2336
- id: record.inventory.productDetailId
2337
- }
2338
2329
  } else {
2339
2330
  newRecord.product = {
2340
2331
  id: record.inventory.productId || record.inventory.product.id,
2341
2332
  name: record.inventory.productName || record.inventory.product.name
2342
2333
  }
2343
- newRecord.productDetail = {
2344
- id: record.inventory.productDetailId || record.inventory.productDetail.id
2345
- }
2346
2334
  newRecord.inventory = { id: record.id }
2347
2335
  }
2348
2336
 
@@ -2637,10 +2625,6 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
2637
2625
  name
2638
2626
  description
2639
2627
  }
2640
- productDetail {
2641
- id
2642
- name
2643
- }
2644
2628
  }
2645
2629
  }
2646
2630
  }
@@ -2660,7 +2644,6 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
2660
2644
  op.inventory = {
2661
2645
  batchId: op.batchId,
2662
2646
  productId: op.product.id,
2663
- productDetailId: op.productDetail.id,
2664
2647
  product: op.product,
2665
2648
  productName: op.product.name,
2666
2649
  palletId: i18next.t('label.cross_docking'),
@@ -2745,7 +2728,6 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
2745
2728
  batchId
2746
2729
  batchIdRef
2747
2730
  productId
2748
- productDetailId
2749
2731
  productSKU
2750
2732
  productName
2751
2733
  remainQty
@@ -2762,7 +2744,6 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
2762
2744
  batchId
2763
2745
  batchIdRef
2764
2746
  productId
2765
- productDetailId
2766
2747
  productSKU
2767
2748
  productName
2768
2749
  remainQty
@@ -2777,10 +2758,6 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
2777
2758
  name
2778
2759
  sku
2779
2760
  }
2780
- productDetail {
2781
- id
2782
- name
2783
- }
2784
2761
  }
2785
2762
  }
2786
2763
  `,
@@ -356,7 +356,6 @@ export class ReleaseExtraProductPopup extends localize(i18next)(LitElement) {
356
356
  { name: 'palletId', header: i18next.t('field.lot_id') },
357
357
  { name: 'cartonId', header: i18next.t('field.carton_id') },
358
358
  { name: 'product', type: 'object', queryName: 'products' },
359
- { name: 'productDetail', type: 'object', queryName: 'products', hidden: true },
360
359
  { name: 'batchId', header: i18next.t('field.batch_id') },
361
360
  {
362
361
  name: 'location',
@@ -847,7 +846,6 @@ export class ReleaseExtraProductPopup extends localize(i18next)(LitElement) {
847
846
  } else {
848
847
  newRecord.product = { id: record.inventory.product.id, name: record.inventory.product.name }
849
848
  newRecord.inventory = { id: record.id }
850
- newRecord.productDetail = { id: record.inventory.productDetail.id }
851
849
  }
852
850
 
853
851
  return newRecord
@@ -867,14 +865,13 @@ export class ReleaseExtraProductPopup extends localize(i18next)(LitElement) {
867
865
  status: ORDER_INVENTORY_STATUS.PENDING.value
868
866
  }
869
867
 
870
- if (record.isCrossDocking) existRecord.crossDocking = true
868
+ if (record.isCrossDocking) newRecord.crossDocking = true
871
869
 
872
870
  if (this._pickingStd === PICKING_STANDARD.SELECT_BY_PRODUCT.value) {
873
871
  existRecord.product = { id: record.inventory.productId, name: record.inventory.productName }
874
872
  } else {
875
873
  existRecord.product = { id: record.inventory.product.id, name: record.inventory.product.name }
876
874
  existRecord.inventory = { id: record.id }
877
- existRecord.productDetail = { id: record.inventory.productDetail.id }
878
875
  }
879
876
 
880
877
  return existRecord
@@ -1266,9 +1266,6 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
1266
1266
  name
1267
1267
  description
1268
1268
  }
1269
- productDetail {
1270
- id
1271
- }
1272
1269
  productName
1273
1270
  packingType
1274
1271
  packingSize
@@ -1355,7 +1352,6 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
1355
1352
  name: inventoryInfo.name,
1356
1353
  palletId: inventoryInfo.palletId,
1357
1354
  product: inventoryInfo.product,
1358
- productDetail: inventoryInfo.productDetail,
1359
1355
  batchId: inventoryInfo.batchId,
1360
1356
  batchIdRef: inventoryInfo.batchIdRef,
1361
1357
  location: inventoryInfo.location,
@@ -1622,7 +1618,7 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
1622
1618
  try {
1623
1619
  const response = await client.mutate({
1624
1620
  mutation: gql`
1625
- mutation generateReleaseGoodWorksheet($releaseGoodNo: String!, $currentStatus: String) {
1621
+ mutation generateReleaseGoodWorksheet($releaseGoodNo: String!, $currentStatus: String) {
1626
1622
  generateReleaseGoodWorksheet(releaseGoodNo: $releaseGoodNo, currentStatus: $currentStatus) {
1627
1623
  pickingWorksheet {
1628
1624
  name
@@ -792,7 +792,6 @@ class CreateReturnOrder extends localize(i18next)(PageView) {
792
792
  status: ORDER_INVENTORY_STATUS.PENDING.value
793
793
  }
794
794
  newRecord.product = { id: record?.productId, name: record?.productName }
795
- newRecord.productDetail = { id: record?.productDetailId }
796
795
  newRecord.inventory = { id: record.id }
797
796
  return newRecord
798
797
  })
@@ -247,7 +247,6 @@ class ReturnOrderInventoryPopup extends localize(i18next)(LitElement) {
247
247
  releaseUomValue
248
248
  palletId
249
249
  productId
250
- productDetailId
251
250
  releaseGoodName
252
251
  }
253
252
  total
@@ -502,9 +502,6 @@ class InventoryReassignPopup extends localize(i18next)(LitElement) {
502
502
  description
503
503
  sku
504
504
  }
505
- productDetail {
506
- id
507
- }
508
505
  releaseGood {
509
506
  id
510
507
  name
@@ -1028,7 +1025,6 @@ class InventoryReassignPopup extends localize(i18next)(LitElement) {
1028
1025
  $worksheetNo: String!
1029
1026
  $batchId: String!
1030
1027
  $productId: String!
1031
- $productDetailId: String!
1032
1028
  $packingType: String!
1033
1029
  $packingSize: Float!
1034
1030
  $orderProductId: String!
@@ -1038,7 +1034,6 @@ class InventoryReassignPopup extends localize(i18next)(LitElement) {
1038
1034
  worksheetNo: $worksheetNo
1039
1035
  batchId: $batchId
1040
1036
  productId: $productId
1041
- productDetailId: $productDetailId
1042
1037
  packingType: $packingType
1043
1038
  packingSize: $packingSize
1044
1039
  orderProductId: $orderProductId
@@ -1050,7 +1045,6 @@ class InventoryReassignPopup extends localize(i18next)(LitElement) {
1050
1045
  worksheetNo: this.worksheetNo,
1051
1046
  batchId: this._selectedOrderProduct?.batchId,
1052
1047
  productId: this._selectedOrderProduct?.product?.id,
1053
- productDetailId: this._selectedOrderProduct?.productDetail?.id,
1054
1048
  packingType: this._selectedOrderProduct?.packingType,
1055
1049
  packingSize: this._selectedOrderProduct?.packingSize,
1056
1050
  orderProductId: this._selectedOrderProduct?.id,
@@ -635,7 +635,6 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
635
635
  }
636
636
  record.locationName = record?.location?.name
637
637
  record.product = record?.relatedOrderInv && record?.relatedOrderInv?.product
638
- record.productDetail = record?.relatedOrderInv.productDetail
639
638
 
640
639
  if (this._crossDocking) {
641
640
  record.batchId = record.relatedOrderInv.batchId
@@ -1029,7 +1028,7 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
1029
1028
  batchId: this._selectedOrderInventory.batchId,
1030
1029
  packingType: this._selectedOrderInventory.packingType,
1031
1030
  packingSize: this._selectedOrderInventory.packingSize,
1032
- productDetail: { id: this._selectedOrderInventory.productDetail.id }
1031
+ product: { id: this._selectedOrderInventory.product.id }
1033
1032
  },
1034
1033
  binLocationName:
1035
1034
  this._hasBinPicking && (!this.toteNo || this.tote == '') ? this.binLocationInput.value : null,
@@ -1390,9 +1389,6 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
1390
1389
  description
1391
1390
  isRequireSerialNumberScanningOutbound
1392
1391
  }
1393
- productDetail {
1394
- id
1395
- }
1396
1392
  }
1397
1393
  }
1398
1394
  }
@@ -1542,9 +1538,6 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
1542
1538
  description
1543
1539
  sku
1544
1540
  }
1545
- productDetail {
1546
- id
1547
- }
1548
1541
  }
1549
1542
  }
1550
1543
  }
@@ -1860,9 +1853,6 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
1860
1853
  name
1861
1854
  description
1862
1855
  }
1863
- productDetail {
1864
- id
1865
- }
1866
1856
  }
1867
1857
  }
1868
1858
  }
@@ -49,7 +49,7 @@ exports.elcclInventoryHistoryReport = {
49
49
  create temp table temp_data_src AS
50
50
  (
51
51
  SELECT prd.sku AS product_sku, prd.name AS product_name, prd.description AS product_description, trim(invh.batch_id) as batch_id, invh.product_id,
52
- invh.product_detail_id, invh.packing_type, invh.bizplace_id, invh.domain_id,
52
+ invh.packing_type, invh.bizplace_id, invh.domain_id,
53
53
  invh.ref_order_id, invh.order_no, invh.order_ref_no, invh.transaction_type, invh.created_at,
54
54
  invh.qty, invh.opening_qty, invh.uom_value, invh.opening_uom_value
55
55
  FROM reduced_inventory_histories invh
@@ -74,14 +74,15 @@ exports.elcclInventoryHistoryReport = {
74
74
  0 AS rn,
75
75
  $1 AS created_at
76
76
  FROM (
77
- SELECT src.product_sku, src.product_name, src.product_description, src.batch_id, src.product_id, src.product_detail_id, src.packing_type, src.bizplace_id,
77
+ SELECT src.product_sku, src.product_name, src.product_description, src.batch_id, src.product_id, src.packing_type, src.bizplace_id,
78
78
  src.domain_id
79
79
  FROM temp_data_src src
80
- GROUP BY src.product_sku, src.product_name, src.product_description, src.batch_id, src.product_id, src.product_detail_id, src.packing_type, src.bizplace_id,
80
+ GROUP BY src.product_sku, src.product_name, src.product_description, src.batch_id, src.product_id, src.packing_type, src.bizplace_id,
81
81
  src.domain_id
82
82
  ) AS src
83
83
  LEFT JOIN inventory_histories invh ON src.batch_id = trim(invh.batch_id) AND
84
- src.product_detail_id = invh.product_detail_id AND
84
+ src.product_id = invh.product_id AND
85
+ src.packing_type = invh.packing_type AND
85
86
  src.bizplace_id = invh.bizplace_id AND
86
87
  src.domain_id = invh.domain_id AND
87
88
  invh.created_at < $1::timestamp AND
@@ -1 +1 @@
1
- {"version":3,"file":"elccl-inventory-history-report.js","sourceRoot":"","sources":["../../../../../server/graphql/resolvers/custom/elccl/elccl-inventory-history-report.ts"],"names":[],"mappings":";;;AAEA,uDAAmD;AAGtC,QAAA,2BAA2B,GAAG;IACzC,KAAK,CAAC,2BAA2B,CAAC,CAAM,EAAE,MAAiB,EAAE,OAAY;QACvE,IAAI;YACF,oDAAoD;YACpD,MAAM,EAAE,EAAE,EAAE,GAA0B,OAAO,CAAC,KAAK,CAAA;YAEnD,IAAI,cAAc,GAAG,MAAM,CAAC,OAA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ACrC;oBACD,KAAK,EAAE,GAAG,CAAC,MAAM;oBACjB,GAAG,EAAE,GAAG,CAAC,GAAG;oBACZ,QAAQ,EAAE,GAAG,CAAC,SAAS;oBACvB,UAAU,EAAE,GAAG,CAAC,WAAW;oBAC3B,eAAe,EAAE,GAAG,CAAC,iBAAiB;oBACtC,OAAO,EAAE,GAAG,CAAC,UAAU;oBACvB,SAAS,EAAE,GAAG,CAAC,UAAU;iBAC1B,CAAA;YACH,CAAC,CAAC,CAAA;YAEF,OAAO,KAAK,CAAA;SACb;QAAC,OAAO,KAAK,EAAE;YACd,MAAM,KAAK,CAAA;SACZ;IACH,CAAC;CACF,CAAA"}
1
+ {"version":3,"file":"elccl-inventory-history-report.js","sourceRoot":"","sources":["../../../../../server/graphql/resolvers/custom/elccl/elccl-inventory-history-report.ts"],"names":[],"mappings":";;;AAEA,uDAAmD;AAGtC,QAAA,2BAA2B,GAAG;IACzC,KAAK,CAAC,2BAA2B,CAAC,CAAM,EAAE,MAAiB,EAAE,OAAY;QACvE,IAAI;YACF,oDAAoD;YACpD,MAAM,EAAE,EAAE,EAAE,GAA0B,OAAO,CAAC,KAAK,CAAA;YAEnD,IAAI,cAAc,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,UAAU,CAAC,CAAA;YAE1E,IAAI,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,UAAU,CAAC,CAAA;YACpE,IAAI,MAAM,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAA;YAChE,IAAI,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,UAAU,CAAC,CAAA;YACnE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