@things-factory/operato-wms 4.3.82 → 4.3.83
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.
- package/client/pages/bulk-operation/bulk-operation.js +0 -1
- package/client/pages/components/select-inventory-popup.js +1 -7
- package/client/pages/components/select-product-popup.js +2 -31
- package/client/pages/inventory/inventory-adjustment-approval.js +5 -4
- package/client/pages/inventory/inventory-adjustment.js +0 -7
- package/client/pages/inventory-check/create-cycle-count.js +3 -2
- package/client/pages/order/arrival-notice/arrival-notice-detail.js +1 -1
- package/client/pages/order/arrival-notice/create-arrival-notice.js +0 -1
- package/client/pages/order/arrival-notice/duplicate-arrival-notice.js +0 -2
- package/client/pages/order/arrival-notice/edit-product-popup.js +0 -2
- package/client/pages/order/draft-release-good/draft-release-good-detail.js +1 -7
- package/client/pages/order/release-order/create-release-order.js +0 -23
- package/client/pages/order/release-order/release-extra-product-popup.js +1 -4
- package/client/pages/order/release-order/release-order-detail.js +1 -5
- package/client/pages/order/return-order/create-return-order.js +0 -1
- package/client/pages/order/return-order/return-order-inventory-popup.js +0 -1
- package/client/pages/outbound/inventory-reassign-popup.js +0 -6
- package/client/pages/outbound/picking-product.js +918 -941
- package/client/pages/outbound/serial-number-popup.js +1 -0
- package/client/util/index.js +1 -0
- package/client/util/toast.js +10 -0
- package/dist-server/graphql/resolvers/custom/elccl/elccl-inventory-history-report.js +5 -4
- package/dist-server/graphql/resolvers/custom/elccl/elccl-inventory-history-report.js.map +1 -1
- package/dist-server/graphql/resolvers/other/add-release-good-products.js +11 -7
- package/dist-server/graphql/resolvers/other/add-release-good-products.js.map +1 -1
- package/dist-server/graphql/resolvers/reports/costing-report.js +24 -18
- package/dist-server/graphql/resolvers/reports/costing-report.js.map +1 -1
- package/dist-server/graphql/resolvers/reports/inbound-order-details-report.js +6 -6
- package/dist-server/graphql/resolvers/reports/outbound-order-details-report.js +6 -5
- package/dist-server/graphql/resolvers/reports/outbound-order-details-report.js.map +1 -1
- package/package.json +50 -50
- package/server/graphql/resolvers/custom/elccl/elccl-inventory-history-report.ts +5 -4
- package/server/graphql/resolvers/other/add-release-good-products.ts +12 -8
- package/server/graphql/resolvers/reports/costing-report.ts +24 -18
- package/server/graphql/resolvers/reports/inbound-order-details-report.ts +6 -6
- package/server/graphql/resolvers/reports/outbound-order-details-report.ts +6 -5
- package/translations/en.json +2 -2
- package/translations/ko.json +2 -2
- package/translations/ms.json +2 -2
- 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
|
-
|
|
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,
|
|
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
|
-
}
|
|
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
|
|
@@ -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
|
-
|
|
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
|
|
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)
|
|
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
|
})
|
|
@@ -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,
|