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

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 +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/inventory/inventory-adjustment-approval.js +4 -5
  5. package/client/pages/inventory/inventory-adjustment.js +7 -0
  6. package/client/pages/inventory-check/create-cycle-count.js +2 -3
  7. package/client/pages/order/arrival-notice/arrival-notice-detail.js +1 -1
  8. package/client/pages/order/arrival-notice/create-arrival-notice.js +1 -0
  9. package/client/pages/order/arrival-notice/duplicate-arrival-notice.js +2 -0
  10. package/client/pages/order/arrival-notice/edit-product-popup.js +2 -0
  11. package/client/pages/order/draft-release-good/draft-release-good-detail.js +7 -1
  12. package/client/pages/order/release-order/create-release-order.js +23 -0
  13. package/client/pages/order/release-order/release-extra-product-popup.js +4 -1
  14. package/client/pages/order/release-order/release-order-detail.js +5 -1
  15. package/client/pages/order/return-order/create-return-order.js +1 -0
  16. package/client/pages/order/return-order/return-order-inventory-popup.js +1 -0
  17. package/client/pages/outbound/inventory-reassign-popup.js +6 -0
  18. package/client/pages/outbound/picking-product.js +11 -1
  19. package/config.development.js +97 -0
  20. package/dist-server/graphql/resolvers/custom/elccl/elccl-inventory-history-report.js +4 -5
  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 +7 -11
  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 +18 -24
  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 +5 -6
  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 +4 -5
  31. package/server/graphql/resolvers/other/add-release-good-products.ts +8 -12
  32. package/server/graphql/resolvers/reports/costing-report.ts +18 -24
  33. package/server/graphql/resolvers/reports/inbound-order-details-report.ts +6 -6
  34. package/server/graphql/resolvers/reports/outbound-order-details-report.ts +5 -6
  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,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) {
@@ -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,
@@ -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
  `,
@@ -356,6 +356,7 @@ 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 },
359
360
  { name: 'batchId', header: i18next.t('field.batch_id') },
360
361
  {
361
362
  name: 'location',
@@ -846,6 +847,7 @@ export class ReleaseExtraProductPopup extends localize(i18next)(LitElement) {
846
847
  } else {
847
848
  newRecord.product = { id: record.inventory.product.id, name: record.inventory.product.name }
848
849
  newRecord.inventory = { id: record.id }
850
+ newRecord.productDetail = { id: record.inventory.productDetail.id }
849
851
  }
850
852
 
851
853
  return newRecord
@@ -865,13 +867,14 @@ export class ReleaseExtraProductPopup extends localize(i18next)(LitElement) {
865
867
  status: ORDER_INVENTORY_STATUS.PENDING.value
866
868
  }
867
869
 
868
- if (record.isCrossDocking) newRecord.crossDocking = true
870
+ if (record.isCrossDocking) existRecord.crossDocking = true
869
871
 
870
872
  if (this._pickingStd === PICKING_STANDARD.SELECT_BY_PRODUCT.value) {
871
873
  existRecord.product = { id: record.inventory.productId, name: record.inventory.productName }
872
874
  } else {
873
875
  existRecord.product = { id: record.inventory.product.id, name: record.inventory.product.name }
874
876
  existRecord.inventory = { id: record.id }
877
+ existRecord.productDetail = { id: record.inventory.productDetail.id }
875
878
  }
876
879
 
877
880
  return existRecord
@@ -1266,6 +1266,9 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
1266
1266
  name
1267
1267
  description
1268
1268
  }
1269
+ productDetail {
1270
+ id
1271
+ }
1269
1272
  productName
1270
1273
  packingType
1271
1274
  packingSize
@@ -1352,6 +1355,7 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
1352
1355
  name: inventoryInfo.name,
1353
1356
  palletId: inventoryInfo.palletId,
1354
1357
  product: inventoryInfo.product,
1358
+ productDetail: inventoryInfo.productDetail,
1355
1359
  batchId: inventoryInfo.batchId,
1356
1360
  batchIdRef: inventoryInfo.batchIdRef,
1357
1361
  location: inventoryInfo.location,
@@ -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
@@ -792,6 +792,7 @@ 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 }
795
796
  newRecord.inventory = { id: record.id }
796
797
  return newRecord
797
798
  })
@@ -247,6 +247,7 @@ class ReturnOrderInventoryPopup extends localize(i18next)(LitElement) {
247
247
  releaseUomValue
248
248
  palletId
249
249
  productId
250
+ productDetailId
250
251
  releaseGoodName
251
252
  }
252
253
  total
@@ -502,6 +502,9 @@ class InventoryReassignPopup extends localize(i18next)(LitElement) {
502
502
  description
503
503
  sku
504
504
  }
505
+ productDetail {
506
+ id
507
+ }
505
508
  releaseGood {
506
509
  id
507
510
  name
@@ -1025,6 +1028,7 @@ class InventoryReassignPopup extends localize(i18next)(LitElement) {
1025
1028
  $worksheetNo: String!
1026
1029
  $batchId: String!
1027
1030
  $productId: String!
1031
+ $productDetailId: String!
1028
1032
  $packingType: String!
1029
1033
  $packingSize: Float!
1030
1034
  $orderProductId: String!
@@ -1034,6 +1038,7 @@ class InventoryReassignPopup extends localize(i18next)(LitElement) {
1034
1038
  worksheetNo: $worksheetNo
1035
1039
  batchId: $batchId
1036
1040
  productId: $productId
1041
+ productDetailId: $productDetailId
1037
1042
  packingType: $packingType
1038
1043
  packingSize: $packingSize
1039
1044
  orderProductId: $orderProductId
@@ -1045,6 +1050,7 @@ class InventoryReassignPopup extends localize(i18next)(LitElement) {
1045
1050
  worksheetNo: this.worksheetNo,
1046
1051
  batchId: this._selectedOrderProduct?.batchId,
1047
1052
  productId: this._selectedOrderProduct?.product?.id,
1053
+ productDetailId: this._selectedOrderProduct?.productDetail?.id,
1048
1054
  packingType: this._selectedOrderProduct?.packingType,
1049
1055
  packingSize: this._selectedOrderProduct?.packingSize,
1050
1056
  orderProductId: this._selectedOrderProduct?.id,
@@ -635,6 +635,7 @@ 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
638
639
 
639
640
  if (this._crossDocking) {
640
641
  record.batchId = record.relatedOrderInv.batchId
@@ -1028,7 +1029,7 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
1028
1029
  batchId: this._selectedOrderInventory.batchId,
1029
1030
  packingType: this._selectedOrderInventory.packingType,
1030
1031
  packingSize: this._selectedOrderInventory.packingSize,
1031
- product: { id: this._selectedOrderInventory.product.id }
1032
+ productDetail: { id: this._selectedOrderInventory.productDetail.id }
1032
1033
  },
1033
1034
  binLocationName:
1034
1035
  this._hasBinPicking && (!this.toteNo || this.tote == '') ? this.binLocationInput.value : null,
@@ -1389,6 +1390,9 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
1389
1390
  description
1390
1391
  isRequireSerialNumberScanningOutbound
1391
1392
  }
1393
+ productDetail {
1394
+ id
1395
+ }
1392
1396
  }
1393
1397
  }
1394
1398
  }
@@ -1538,6 +1542,9 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
1538
1542
  description
1539
1543
  sku
1540
1544
  }
1545
+ productDetail {
1546
+ id
1547
+ }
1541
1548
  }
1542
1549
  }
1543
1550
  }
@@ -1853,6 +1860,9 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
1853
1860
  name
1854
1861
  description
1855
1862
  }
1863
+ productDetail {
1864
+ id
1865
+ }
1856
1866
  }
1857
1867
  }
1858
1868
  }
@@ -0,0 +1,97 @@
1
+ module.exports = {
2
+ domainType: 'warehouse',
3
+ domainExtType: 'warehouse',
4
+ useVirtualHostBasedDomain: false,
5
+ fallbackRoute: '/',
6
+ subdomainOffset: 2,
7
+ port: 4000,
8
+ inspect: '9330',
9
+ // ormconfig: {
10
+ // name: 'default',
11
+ // type: 'postgres',
12
+ // database: 'dev2',
13
+ // username: 'postgres',
14
+ // password: 'hatio',
15
+ // host: '192.168.0.153',
16
+ // port: 15432,
17
+ // synchronize: true,
18
+ // logging: true
19
+ // },
20
+ ormconfig: {
21
+ name: 'default',
22
+ type: 'postgres',
23
+ host: 'operatov3.cluster-cijhm4n1hbst.ap-southeast-1.rds.amazonaws.com',
24
+ port: 55432,
25
+ database: 'dev',
26
+ username: 'postgres',
27
+ password: 'abcd1234',
28
+ synchronize: false,
29
+ logging: true,
30
+ connectTimeoutMS: 30000,
31
+ extra: { poolSize: 30 }
32
+ },
33
+ SECRET: '0xD58F835B69D207A76CC5F84a70a1D0d4C79dfC95',
34
+ password: {
35
+ lowerCase: true,
36
+ upperCase: false,
37
+ digit: false,
38
+ specialCharacter: false,
39
+ allowRepeat: true,
40
+ useTightPattern: false,
41
+ useLoosePattern: true,
42
+ tightCharacterLength: 4,
43
+ looseCharacterLength: 4,
44
+ history: 2
45
+ },
46
+ uploads: 'uploads',
47
+ attachmentsPath: 'attachments',
48
+ logger: {
49
+ file: {
50
+ filename: 'logs/application-%DATE%.log',
51
+ datePattern: 'YYYY-MM-DD-HH',
52
+ zippedArchive: true,
53
+ maxSize: '200m',
54
+ maxFiles: '1m',
55
+ level: 'info'
56
+ }
57
+ },
58
+ email: {
59
+ host: 'smtp.office365.com',
60
+ port: 587,
61
+ secure: false, // true for 465, false for other ports
62
+ auth: {
63
+ user: 'no-reply@hatiolab.com', // generated ethereal user
64
+ pass: 'h@ti0LAB1008' // generated ethereal password
65
+ },
66
+ secureConnection: false,
67
+ tls: {
68
+ ciphers: 'SSLv3'
69
+ }
70
+ },
71
+ sender: 'no-reply@hatiolab.com',
72
+ notification: {
73
+ // fcm: {
74
+ // serviceAccount: {
75
+ // project_id: 'operato',
76
+ // private_key:
77
+ // '-----BEGIN PRIVATE KEY-----\nMIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDYNOfyNjPMSeG9\nzU1qs0cpVK5cVfadcUaw5g+hkQZMOMlAA7uqW2eX4vkayj7MzbYUayH+sei8044Q\nJIyl6f26dNX1VT3UgTmSmCS0v48EBEZHCgusrUGFjduLRN6OS6uvrXW1xKA18k9q\nai1C2EHCXF2AE4PTvf239RC1UIOnVePcMtT7rMTdHRO4s8OKVuSDbzIt8k1cV3Zt\nES0YsJlkELqBisYpV//2/ZSILTt39J9JzrVef03X9kkoo9p+YnNyy6tWsfQPfgJO\nybiRGBNxiyJ/E2pxRo/WqU0go9OzYJlGaSUrUx09heNiRD1b0MAOmyPDJz/6AaTk\nkU/A+kLzAgMBAAECggEADQ5s2gtR53VSujk1V/Xe8e0Di99DwaWUj5w6YhcK7/wX\nPdQRN4Fw6RLeLjL7xeG/rCNSwzm6hKSrQJL5zLnWW7XbMdyQRk6jdmnVAEv3zACi\nFH9+eFK3e+Q214XfgWz/v4p/FZdRLCYni5VBNHcwyWxLLS/V1ynzB3KM1sDiTRmI\npcT7+uTtwrKgJq64sXtFE2pYrFxDdCiyqzkhv/2ed4YIowAjpKBbbcCDKeVxVkoz\nC1P4PAzs9EeUuKSWYrWaUjN17lqtRlYeT1ylR1PIJuWqd4cKfgoEgz+lHwRPDCEX\nAYbk3nofiJIPBhSfCHrXS755wK48mY8vMwFdfCPJeQKBgQDsz4tjYTHdat5A25n5\nekwMxZwFQ5OvMV4eulwZUDMypTAYSz1iB6sDlgwKDm5omZIfuneqCEIvrqxV/kx3\n5wV/DANHO3hYxdp/NV7rM23xmqlaKZhHQbDono1Fm/LP6DEmJiD7N2eFKsXYcPpR\nSAIdCv0X3zkDQ4zRi51yJlCXzQKBgQDpufJBxCoXngiQJ2j14lWVAeOOdQ6zh5Ip\nBcDwF0X67cNSN3Wl40bS4yLFdolhEAyj5m0WPuYYXpjzhHhZ0W3V3ItdBkrmwIvy\nWOWu26qN0ZbwxVS2qVpHuj6iHWJKHuDZZUkFtJg3BeeBSOUHSA8TvjnA0xd83xeb\n8ZJasWoFvwKBgQDFs/gQ/gIdcq0exLfluh5nw0qgcmyHpNWJHdjqITS9IX/nqFkU\n0IYLtmdStf2jQiLmbkydHcvz9wZVvLqml67VBHhwLcwpgPULoskd34/4V0Dvzy4c\nv1Esw8H5zVqIDLeLu+VpFjZMzQrjyl6RIWbyTExEc84rVWfpQYAu3qIGOQKBgAFr\nXatEk7TdAtRNSPflTfu/rTAaSeKROjQBkvBiU8x4US1YpOBDBxUUyAtG8wKh5FHC\nfnsaGq+fM3KXJVv2R6J62mXQOfg4xyDLpWlwcBK4aSBBMoiBcsjouqSlZQlqMpdf\nZBgixqHe6U8BsFJg/6ZxC0y+e3AIss4Bo4/lb+1lAoGAFOexvaBh21K6W3inmRW4\nLlkVYJaBJ20OwokXg5aXjBiHxqmk7VLAuFbkpb5LOKH2xPILRQ0OEkn51yVymS3T\n9lLpHOFTQXt5tF2/F7NW7kaQJNlLr/h5jPi3O9XHeFmuaN2z150ZB6zzgjeGKzr8\ni+1fgTsRfDtNw8xkSH9qL1Y=\n-----END PRIVATE KEY-----\n',
78
+ // client_email: 'firebase-adminsdk-xmm2e@operato.iam.gserviceaccount.com'
79
+ // },
80
+ // appConfig: {
81
+ // apiKey: 'AIzaSyDdTM2BTLHSt2LNS0G5QB8G0i4KBXFiG7U',
82
+ // projectId: 'operato',
83
+ // messagingSenderId: 79537064975,
84
+ // appId: '1:79537064975:web:32f53119e9c8c6ee2a277a'
85
+ // },
86
+ // serverKey:
87
+ // 'AAAAEoTHTA8:APA91bGwt-4HT82Dfwf_VwbQaKT0_qHd0Y3tuW41udjWz5Lz0Ko0mEMD6WbHHSILvQpa6yuoGGKCMsrU7VW2qWRrUm3CYpyG9oSwshNm1tIhljAnOuUfwHCoawbVLwf9qlWpHt4dwCoc'
88
+ // },
89
+ // vapidKey: {
90
+ // subject: 'mailto:heartyoh@hatiolab.com',
91
+ // publicKey: 'BAkVkITsCXBIsYL1yeaBmx5_dn57we-ZXMjirPPHzC2dan82cdEnAio_53PQ-1_w3ykWCBPrrFAWQ_d9N4cFF0o',
92
+ // privateKey: '4pmlt3Wk019u7nqU3Q_oGZE6LbUDjjf8DpmAcn9-iss'
93
+ // }
94
+ },
95
+ // reportApiUrl: 'http://localhost:8888/rest/report/show_html'
96
+ reportApiUrl: 'http://192.168.0.153:8888/rest/report/show_html'
97
+ }
@@ -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.packing_type, invh.bizplace_id, invh.domain_id,
52
+ invh.product_detail_id, 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,15 +74,14 @@ 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.packing_type, src.bizplace_id,
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,
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.packing_type, src.bizplace_id,
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,
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_id = invh.product_id AND
85
- src.packing_type = invh.packing_type AND
84
+ src.product_detail_id = invh.product_detail_id AND
86
85
  src.bizplace_id = invh.bizplace_id AND
87
86
  src.domain_id = invh.domain_id AND
88
87
  invh.created_at < $1::timestamp AND