@things-factory/operato-wms 4.3.79-alpha.0 → 4.3.79-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.
- package/client/pages/components/select-inventory-popup.js +7 -1
- package/client/pages/components/select-product-popup.js +10 -2
- package/client/pages/inventory-check/create-cycle-count.js +2 -3
- package/client/pages/order/draft-release-good/draft-release-good-detail.js +7 -1
- package/client/pages/order/release-order/create-release-order.js +23 -0
- package/client/pages/order/release-order/release-extra-product-popup.js +4 -1
- package/client/pages/order/release-order/release-order-detail.js +5 -1
- package/client/pages/outbound/inventory-reassign-popup.js +6 -0
- package/client/pages/outbound/picking-product.js +11 -1
- package/dist-server/graphql/resolvers/other/add-release-good-products.js +7 -11
- package/dist-server/graphql/resolvers/other/add-release-good-products.js.map +1 -1
- package/package.json +5 -5
- package/server/graphql/resolvers/other/add-release-good-products.ts +8 -12
- package/translations/en.json +2 -2
- package/translations/ko.json +2 -2
- package/translations/ms.json +2 -2
- package/translations/zh.json +1 -1
|
@@ -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
|
+
productId: 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,13 @@ class SelectProductPopup extends localize(i18next)(LitElement) {
|
|
|
240
242
|
}
|
|
241
243
|
}
|
|
242
244
|
|
|
243
|
-
|
|
245
|
+
_dblClickHandler(columns, data, column, record, rowIndex, target) {
|
|
246
|
+
if (this.selectMultipleProducts) return
|
|
247
|
+
this.dispatchEvent(new CustomEvent('selected', { detail: record }))
|
|
248
|
+
history.back()
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
selectProduct(record) {
|
|
244
252
|
if (this.selectMultipleProducts !== true) {
|
|
245
253
|
const selectedProduct = this.productGrist.selected[0]
|
|
246
254
|
if (selectedProduct) {
|
|
@@ -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
|
-
|
|
557
|
-
packingType: itm.packingType,
|
|
558
|
-
productId: itm.productId
|
|
557
|
+
productDetailId: itm.productDetailId
|
|
559
558
|
}
|
|
560
559
|
}) || []
|
|
561
560
|
|
|
@@ -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
|
|
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
|
|
@@ -2103,6 +2107,7 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
|
|
|
2103
2107
|
packingType: record?.inventory?.packingType,
|
|
2104
2108
|
packingSize: record?.inventory?.packingSize,
|
|
2105
2109
|
productId: record?.inventory?.productId,
|
|
2110
|
+
productDetailId: record?.inventory?.productDetailId,
|
|
2106
2111
|
groupType: record?.inventory?.groupType,
|
|
2107
2112
|
releaseQty: record.releaseQty || 0,
|
|
2108
2113
|
releaseUomValue: record.releaseUomValue || 0
|
|
@@ -2277,6 +2282,7 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
|
|
|
2277
2282
|
bundleReleaseDetail = bundleReleaseDetail.records.map(item => {
|
|
2278
2283
|
return {
|
|
2279
2284
|
product: { id: item.productId, name: item.productName },
|
|
2285
|
+
productDetail: { id: item.productDetailId },
|
|
2280
2286
|
batchId: item.batchId,
|
|
2281
2287
|
packingType: item.packingType,
|
|
2282
2288
|
packingSize: item.packingSize,
|
|
@@ -2313,11 +2319,17 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
|
|
|
2313
2319
|
id: record.inventory.productId,
|
|
2314
2320
|
name: record.inventory.productName
|
|
2315
2321
|
}
|
|
2322
|
+
newRecord.productDetail = {
|
|
2323
|
+
id: record.inventory.productDetailId
|
|
2324
|
+
}
|
|
2316
2325
|
} else {
|
|
2317
2326
|
newRecord.product = {
|
|
2318
2327
|
id: record.inventory.productId || record.inventory.product.id,
|
|
2319
2328
|
name: record.inventory.productName || record.inventory.product.name
|
|
2320
2329
|
}
|
|
2330
|
+
newRecord.productDetail = {
|
|
2331
|
+
id: record.inventory.productDetailId || record.inventory.productDetail.id
|
|
2332
|
+
}
|
|
2321
2333
|
newRecord.inventory = { id: record.id }
|
|
2322
2334
|
}
|
|
2323
2335
|
|
|
@@ -2612,6 +2624,10 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
|
|
|
2612
2624
|
name
|
|
2613
2625
|
description
|
|
2614
2626
|
}
|
|
2627
|
+
productDetail {
|
|
2628
|
+
id
|
|
2629
|
+
name
|
|
2630
|
+
}
|
|
2615
2631
|
}
|
|
2616
2632
|
}
|
|
2617
2633
|
}
|
|
@@ -2631,6 +2647,7 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
|
|
|
2631
2647
|
op.inventory = {
|
|
2632
2648
|
batchId: op.batchId,
|
|
2633
2649
|
productId: op.product.id,
|
|
2650
|
+
productDetailId: op.productDetail.id,
|
|
2634
2651
|
product: op.product,
|
|
2635
2652
|
productName: op.product.name,
|
|
2636
2653
|
palletId: i18next.t('label.cross_docking'),
|
|
@@ -2715,6 +2732,7 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
|
|
|
2715
2732
|
batchId
|
|
2716
2733
|
batchIdRef
|
|
2717
2734
|
productId
|
|
2735
|
+
productDetailId
|
|
2718
2736
|
productSKU
|
|
2719
2737
|
productName
|
|
2720
2738
|
remainQty
|
|
@@ -2731,6 +2749,7 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
|
|
|
2731
2749
|
batchId
|
|
2732
2750
|
batchIdRef
|
|
2733
2751
|
productId
|
|
2752
|
+
productDetailId
|
|
2734
2753
|
productSKU
|
|
2735
2754
|
productName
|
|
2736
2755
|
remainQty
|
|
@@ -2745,6 +2764,10 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
|
|
|
2745
2764
|
name
|
|
2746
2765
|
sku
|
|
2747
2766
|
}
|
|
2767
|
+
productDetail {
|
|
2768
|
+
id
|
|
2769
|
+
name
|
|
2770
|
+
}
|
|
2748
2771
|
}
|
|
2749
2772
|
}
|
|
2750
2773
|
`,
|
|
@@ -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)
|
|
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
|
|
@@ -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,
|
|
@@ -704,6 +704,9 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
704
704
|
description
|
|
705
705
|
isRequireSerialNumberScanningOutbound
|
|
706
706
|
}
|
|
707
|
+
productDetail {
|
|
708
|
+
id
|
|
709
|
+
}
|
|
707
710
|
}
|
|
708
711
|
}
|
|
709
712
|
}
|
|
@@ -844,6 +847,9 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
844
847
|
description
|
|
845
848
|
sku
|
|
846
849
|
}
|
|
850
|
+
productDetail {
|
|
851
|
+
id
|
|
852
|
+
}
|
|
847
853
|
}
|
|
848
854
|
}
|
|
849
855
|
}
|
|
@@ -946,6 +952,7 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
946
952
|
}
|
|
947
953
|
record.locationName = record?.location?.name
|
|
948
954
|
record.product = record?.relatedOrderInv && record?.relatedOrderInv?.product
|
|
955
|
+
record.productDetail = record?.relatedOrderInv.productDetail
|
|
949
956
|
|
|
950
957
|
if (this._crossDocking) {
|
|
951
958
|
record.batchId = record.relatedOrderInv.batchId
|
|
@@ -1394,7 +1401,7 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1394
1401
|
batchId: this._selectedOrderInventory.batchId,
|
|
1395
1402
|
packingType: this._selectedOrderInventory.packingType,
|
|
1396
1403
|
packingSize: this._selectedOrderInventory.packingSize,
|
|
1397
|
-
|
|
1404
|
+
productDetail: { id: this._selectedOrderInventory.productDetail.id }
|
|
1398
1405
|
},
|
|
1399
1406
|
binLocationName:
|
|
1400
1407
|
this._hasBinPicking && (!this.toteNo || this.tote == '') ? this.binLocationInput.value : null,
|
|
@@ -1855,6 +1862,9 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1855
1862
|
name
|
|
1856
1863
|
description
|
|
1857
1864
|
}
|
|
1865
|
+
productDetail {
|
|
1866
|
+
id
|
|
1867
|
+
}
|
|
1858
1868
|
}
|
|
1859
1869
|
}
|
|
1860
1870
|
}
|
|
@@ -29,7 +29,7 @@ exports.addReleaseGoodProducts = {
|
|
|
29
29
|
curOrderInv.domain = domain;
|
|
30
30
|
curOrderInv.bizplace = bizplace;
|
|
31
31
|
curOrderInv.releaseGood = releaseGood;
|
|
32
|
-
curOrderInv.
|
|
32
|
+
curOrderInv.productDetail = await tx.getRepository(product_base_1.ProductDetail).findOne(oi.productDetail.id);
|
|
33
33
|
let existingOrderInv;
|
|
34
34
|
if ((_a = curOrderInv === null || curOrderInv === void 0 ? void 0 : curOrderInv.inventory) === null || _a === void 0 ? void 0 : _a.id) {
|
|
35
35
|
const foundInv = await tx.getRepository(warehouse_base_1.Inventory).findOne(curOrderInv.inventory.id);
|
|
@@ -37,9 +37,8 @@ exports.addReleaseGoodProducts = {
|
|
|
37
37
|
existingOrderInv = await tx.getRepository(sales_base_1.OrderInventory).findOne({
|
|
38
38
|
where: {
|
|
39
39
|
releaseGood,
|
|
40
|
-
|
|
40
|
+
productDetail: curOrderInv.productDetail,
|
|
41
41
|
batchId: curOrderInv.batchId,
|
|
42
|
-
packingType: curOrderInv.packingType,
|
|
43
42
|
inventory: foundInv
|
|
44
43
|
}
|
|
45
44
|
});
|
|
@@ -132,7 +131,6 @@ exports.addReleaseGoodProducts = {
|
|
|
132
131
|
newOrderInv.status = pickingWorksheet ? sales_base_1.ORDER_INVENTORY_STATUS.PICKING : sales_base_1.ORDER_INVENTORY_STATUS.PENDING;
|
|
133
132
|
newOrderInv.name = sales_base_1.OrderNoGenerator.orderInventory();
|
|
134
133
|
newOrderInv.releaseGood = releaseGood;
|
|
135
|
-
newOrderInv.product = await tx.getRepository(product_base_1.Product).findOne(oi.product.id);
|
|
136
134
|
newOrderInv.creator = user;
|
|
137
135
|
newOrderInv.updater = user;
|
|
138
136
|
let existingOrderInv;
|
|
@@ -141,8 +139,7 @@ exports.addReleaseGoodProducts = {
|
|
|
141
139
|
domain,
|
|
142
140
|
releaseGood,
|
|
143
141
|
batchId: oi.batchId,
|
|
144
|
-
|
|
145
|
-
product: newOrderInv.product
|
|
142
|
+
productDetail: newOrderInv.productDetail
|
|
146
143
|
}
|
|
147
144
|
});
|
|
148
145
|
// check if it is release by inventory (has inventory value) or product
|
|
@@ -156,9 +153,8 @@ exports.addReleaseGoodProducts = {
|
|
|
156
153
|
existingOrderInv = await tx.getRepository(sales_base_1.OrderInventory).findOne({
|
|
157
154
|
where: {
|
|
158
155
|
releaseGood,
|
|
159
|
-
|
|
156
|
+
productDetail: newOrderInv.productDetail,
|
|
160
157
|
batchId: newOrderInv.batchId,
|
|
161
|
-
packingType: newOrderInv.packingType,
|
|
162
158
|
inventory: foundInv
|
|
163
159
|
}
|
|
164
160
|
});
|
|
@@ -177,9 +173,8 @@ exports.addReleaseGoodProducts = {
|
|
|
177
173
|
existingOrderInv = await tx.getRepository(sales_base_1.OrderInventory).findOne({
|
|
178
174
|
where: {
|
|
179
175
|
releaseGood,
|
|
180
|
-
|
|
181
|
-
batchId: newOrderInv.batchId
|
|
182
|
-
packingType: newOrderInv.packingType
|
|
176
|
+
productDetail: newOrderInv.productDetail,
|
|
177
|
+
batchId: newOrderInv.batchId
|
|
183
178
|
}
|
|
184
179
|
});
|
|
185
180
|
}
|
|
@@ -219,6 +214,7 @@ exports.addReleaseGoodProducts = {
|
|
|
219
214
|
savedOrderInv.packingType = newOrderInv.packingType;
|
|
220
215
|
savedOrderInv.uom = newOrderInv.uom;
|
|
221
216
|
savedOrderInv.product = newOrderInv.product;
|
|
217
|
+
savedOrderInv.productDetail = newOrderInv.productDetail;
|
|
222
218
|
savedOrderInv.inventory = newOrderInv.inventory;
|
|
223
219
|
savedOrderInv.status = newOrderInv.status;
|
|
224
220
|
savedOrderInv.releaseGood = newOrderInv.releaseGood;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-release-good-products.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/other/add-release-good-products.ts"],"names":[],"mappings":";;;AAAA,qCAAgD;AAIhD,+DAAsD;AACtD,2DAOmC;AAEnC,mEAA0D;AAC1D,mEAMuC;AAE1B,QAAA,sBAAsB,GAAG;IACpC,KAAK,CAAC,sBAAsB,CAAC,CAAM,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,EAAE,OAAY;;QACrG,IAAI;YACF,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,GAAsD,OAAO,CAAC,KAAK,CAAA;YAE7F,IAAI,WAAW,GAAgB,MAAM,EAAE,CAAC,aAAa,CAAC,wBAAW,CAAC,CAAC,OAAO,CAAC;gBACzE,KAAK,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE;gBAC7B,SAAS,EAAE,CAAC,UAAU,EAAE,eAAe,CAAC;aACzC,CAAC,CAAA;YAEF,MAAM,QAAQ,GAAa,WAAW,CAAC,QAAQ,CAAA;YAE/C,IAAI,gBAAgB,GA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BACd,CAAC,EAAE,CAAC,CAAC,CAAA;gBAEL,IAAI,YAAY,GAAQ;oBACtB,UAAU,EAAE,eAAe;oBAC3B,eAAe,EAAE,oBAAoB;iBACtC,CAAA;gBAED,IAAI,eAAe,IAAI,CAAC,EAAE;oBACxB,YAAY,CAAC,MAAM,GAAG,iCAAoB,CAAC,UAAU,CAAA;iBACtD;gBAED,MAAM,EAAE,CAAC,aAAa,CAAC,yBAAY,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,YAAY,CAAC,CAAA;YAC1E,CAAC,CAAC,CACH,CAAA;SACF;QAAC,OAAO,KAAK,EAAE;YACd,MAAM,KAAK,CAAA;SACZ;IACH,CAAC;CACF,CAAA"}
|
|
1
|
+
{"version":3,"file":"add-release-good-products.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/other/add-release-good-products.ts"],"names":[],"mappings":";;;AAAA,qCAAgD;AAIhD,+DAAqE;AACrE,2DAOmC;AAEnC,mEAA0D;AAC1D,mEAMuC;AAE1B,QAAA,sBAAsB,GAAG;IACpC,KAAK,CAAC,sBAAsB,CAAC,CAAM,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,EAAE,OAAY;;QACrG,IAAI;YACF,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,GAAsD,OAAO,CAAC,KAAK,CAAA;YAE7F,IAAI,WAAW,GAAgB,MAAM,EAAE,CAAC,aAAa,CAAC,wBAAW,CAAC,CAAC,OAAO,CAAC;gBACzE,KAAK,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE;gBAC7B,SAAS,EAAE,CAAC,UAAU,EAAE,eAAe,CAAC;aACzC,CAAC,CAAA;YAEF,MAAM,QAAQ,GAAa,WAAW,CAAC,QAAQ,CAAA;YAE/C,IAAI,gBAAgB,GAAc,MAAM,EAAE,CAAC,aAAa,CAAC,0BAAS,CAAC,CAAC,OAAO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AC,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,YAAY,CAAC,CAAA;YAC1E,CAAC,CAAC,CACH,CAAA;SACF;QAAC,OAAO,KAAK,EAAE;YACd,MAAM,KAAK,CAAA;SACZ;IACH,CAAC;CACF,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/operato-wms",
|
|
3
|
-
"version": "4.3.79-alpha.
|
|
3
|
+
"version": "4.3.79-alpha.1",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"@things-factory/print-ui": "^4.3.79-alpha.0",
|
|
93
93
|
"@things-factory/product-base": "^4.3.79-alpha.0",
|
|
94
94
|
"@things-factory/resource-ui": "^4.3.79-alpha.0",
|
|
95
|
-
"@things-factory/sales-ui": "^4.3.79-alpha.
|
|
95
|
+
"@things-factory/sales-ui": "^4.3.79-alpha.1",
|
|
96
96
|
"@things-factory/scene-data-transform": "^4.3.79-alpha.0",
|
|
97
97
|
"@things-factory/scene-excel": "^4.3.79-alpha.0",
|
|
98
98
|
"@things-factory/scene-firebase": "^4.3.79-alpha.0",
|
|
@@ -108,8 +108,8 @@
|
|
|
108
108
|
"@things-factory/system-ui": "^4.3.79-alpha.0",
|
|
109
109
|
"@things-factory/transport-base": "^4.3.79-alpha.0",
|
|
110
110
|
"@things-factory/tutorial-ui": "^4.3.79-alpha.0",
|
|
111
|
-
"@things-factory/warehouse-base": "^4.3.79-alpha.
|
|
112
|
-
"@things-factory/worksheet-base": "^4.3.79-alpha.
|
|
111
|
+
"@things-factory/warehouse-base": "^4.3.79-alpha.1",
|
|
112
|
+
"@things-factory/worksheet-base": "^4.3.79-alpha.1"
|
|
113
113
|
},
|
|
114
114
|
"devDependencies": {
|
|
115
115
|
"@things-factory/builder": "^4.3.79-alpha.0",
|
|
@@ -118,5 +118,5 @@
|
|
|
118
118
|
"cypress-localstorage-commands": "^1.6.1",
|
|
119
119
|
"eslint-plugin-cypress": "^2.12.1"
|
|
120
120
|
},
|
|
121
|
-
"gitHead": "
|
|
121
|
+
"gitHead": "781aa433ce81cb1cd08d6a3c4abb2934f0a192c1"
|
|
122
122
|
}
|
|
@@ -2,7 +2,7 @@ import { EntityManager, In, Not } from 'typeorm'
|
|
|
2
2
|
|
|
3
3
|
import { User } from '@things-factory/auth-base'
|
|
4
4
|
import { Bizplace } from '@things-factory/biz-base'
|
|
5
|
-
import { Product } from '@things-factory/product-base'
|
|
5
|
+
import { Product, ProductDetail } from '@things-factory/product-base'
|
|
6
6
|
import {
|
|
7
7
|
ORDER_INVENTORY_STATUS,
|
|
8
8
|
ORDER_PRODUCT_STATUS,
|
|
@@ -48,7 +48,7 @@ export const addReleaseGoodProducts = {
|
|
|
48
48
|
curOrderInv.domain = domain
|
|
49
49
|
curOrderInv.bizplace = bizplace
|
|
50
50
|
curOrderInv.releaseGood = releaseGood
|
|
51
|
-
curOrderInv.
|
|
51
|
+
curOrderInv.productDetail = await tx.getRepository(ProductDetail).findOne(oi.productDetail.id)
|
|
52
52
|
|
|
53
53
|
let existingOrderInv: OrderInventory
|
|
54
54
|
|
|
@@ -59,9 +59,8 @@ export const addReleaseGoodProducts = {
|
|
|
59
59
|
existingOrderInv = await tx.getRepository(OrderInventory).findOne({
|
|
60
60
|
where: {
|
|
61
61
|
releaseGood,
|
|
62
|
-
|
|
62
|
+
productDetail: curOrderInv.productDetail,
|
|
63
63
|
batchId: curOrderInv.batchId,
|
|
64
|
-
packingType: curOrderInv.packingType,
|
|
65
64
|
inventory: foundInv
|
|
66
65
|
}
|
|
67
66
|
})
|
|
@@ -204,7 +203,6 @@ export const addReleaseGoodProducts = {
|
|
|
204
203
|
newOrderInv.status = pickingWorksheet ? ORDER_INVENTORY_STATUS.PICKING : ORDER_INVENTORY_STATUS.PENDING
|
|
205
204
|
newOrderInv.name = OrderNoGenerator.orderInventory()
|
|
206
205
|
newOrderInv.releaseGood = releaseGood
|
|
207
|
-
newOrderInv.product = await tx.getRepository(Product).findOne(oi.product.id)
|
|
208
206
|
newOrderInv.creator = user
|
|
209
207
|
newOrderInv.updater = user
|
|
210
208
|
|
|
@@ -215,8 +213,7 @@ export const addReleaseGoodProducts = {
|
|
|
215
213
|
domain,
|
|
216
214
|
releaseGood,
|
|
217
215
|
batchId: oi.batchId,
|
|
218
|
-
|
|
219
|
-
product: newOrderInv.product
|
|
216
|
+
productDetail: newOrderInv.productDetail
|
|
220
217
|
}
|
|
221
218
|
})
|
|
222
219
|
|
|
@@ -232,9 +229,8 @@ export const addReleaseGoodProducts = {
|
|
|
232
229
|
existingOrderInv = await tx.getRepository(OrderInventory).findOne({
|
|
233
230
|
where: {
|
|
234
231
|
releaseGood,
|
|
235
|
-
|
|
232
|
+
productDetail: newOrderInv.productDetail,
|
|
236
233
|
batchId: newOrderInv.batchId,
|
|
237
|
-
packingType: newOrderInv.packingType,
|
|
238
234
|
inventory: foundInv
|
|
239
235
|
}
|
|
240
236
|
})
|
|
@@ -263,9 +259,8 @@ export const addReleaseGoodProducts = {
|
|
|
263
259
|
existingOrderInv = await tx.getRepository(OrderInventory).findOne({
|
|
264
260
|
where: {
|
|
265
261
|
releaseGood,
|
|
266
|
-
|
|
267
|
-
batchId: newOrderInv.batchId
|
|
268
|
-
packingType: newOrderInv.packingType
|
|
262
|
+
productDetail: newOrderInv.productDetail,
|
|
263
|
+
batchId: newOrderInv.batchId
|
|
269
264
|
}
|
|
270
265
|
})
|
|
271
266
|
}
|
|
@@ -325,6 +320,7 @@ export const addReleaseGoodProducts = {
|
|
|
325
320
|
savedOrderInv.packingType = newOrderInv.packingType
|
|
326
321
|
savedOrderInv.uom = newOrderInv.uom
|
|
327
322
|
savedOrderInv.product = newOrderInv.product
|
|
323
|
+
savedOrderInv.productDetail = newOrderInv.productDetail
|
|
328
324
|
savedOrderInv.inventory = newOrderInv.inventory
|
|
329
325
|
savedOrderInv.status = newOrderInv.status
|
|
330
326
|
savedOrderInv.releaseGood = newOrderInv.releaseGood
|
package/translations/en.json
CHANGED
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"button.move_to_x": "move to {state.x}",
|
|
63
63
|
"button.move": "move",
|
|
64
64
|
"button.my_worksheet_list": "my worksheet list",
|
|
65
|
-
"button.next_order":"next order",
|
|
65
|
+
"button.next_order": "next order",
|
|
66
66
|
"button.okay": "okay",
|
|
67
67
|
"button.order_remark": "order remark",
|
|
68
68
|
"button.order_sorted": "order sorted",
|
|
@@ -1196,7 +1196,7 @@
|
|
|
1196
1196
|
"text.do_you_want_to_mark_it_as_missing": "do you want to mark it as missing?",
|
|
1197
1197
|
"text.do_you_want_to_print": "do you want to print",
|
|
1198
1198
|
"text.do_you_want_to_proceed": "do you want to proceed",
|
|
1199
|
-
"text.do_you_wish_to_proceed_the_selected_products_will_be_removed": "
|
|
1199
|
+
"text.do_you_wish_to_proceed_the_selected_products_will_be_removed": "Do you wish to proceed? The selected product will be removed.",
|
|
1200
1200
|
"text.document_has_been_generated": "document has been generated",
|
|
1201
1201
|
"text.draft_order_form_invalid": "draft order form invalid",
|
|
1202
1202
|
"text.draft_purchase_order": "draft purchase order",
|
package/translations/ko.json
CHANGED
|
@@ -1208,7 +1208,7 @@
|
|
|
1208
1208
|
"text.dispatch_delivery_order": "운송주문 시작",
|
|
1209
1209
|
"text.dispatch_successful": "dispatch successful",
|
|
1210
1210
|
"text.do_you_want_to_complete": "완료 하시겠습니까?",
|
|
1211
|
-
"text.do_you_wish_to_proceed_the_selected_products_will_be_removed": "
|
|
1211
|
+
"text.do_you_wish_to_proceed_the_selected_products_will_be_removed": "[ko] Do you wish to proceed? The selected product will be removed.",
|
|
1212
1212
|
"text.do_you_want_to_print": "인쇄 하시겠습니까?",
|
|
1213
1213
|
"text.do_you_want_to_proceed": "[ko] do you want to proceed",
|
|
1214
1214
|
"text.document_has_been_generated": "[ko] document has been generated",
|
|
@@ -2019,7 +2019,7 @@
|
|
|
2019
2019
|
"vas_order_created": "부가서비스주문 생성됨",
|
|
2020
2020
|
"title.order(s)_is_at_pending_cancelled_or_cancelled": "[ko] Order(s) is at Pending Cancelled or Cancelled",
|
|
2021
2021
|
"text.do_you_want_to_ignore": "[ko] do you want to ignore?",
|
|
2022
|
-
"button.next_order":"[ko]next order",
|
|
2022
|
+
"button.next_order": "[ko]next order",
|
|
2023
2023
|
"button.ignore": "[ko] ignore",
|
|
2024
2024
|
"field.order_info": "[ko] order info",
|
|
2025
2025
|
"field.total_tracking_no": "[ko] total tracking no",
|
package/translations/ms.json
CHANGED
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"button.move_to_x": "move to {state.x}",
|
|
87
87
|
"button.move": "move",
|
|
88
88
|
"button.my_worksheet_list": "[ms] my worksheet list",
|
|
89
|
-
"button.next_order":"[ms]next order",
|
|
89
|
+
"button.next_order": "[ms]next order",
|
|
90
90
|
"button.okay": "okay",
|
|
91
91
|
"button.order_remark": "[ms] order remark",
|
|
92
92
|
"button.order_sorted": "[ms] order sorted",
|
|
@@ -1179,7 +1179,7 @@
|
|
|
1179
1179
|
"text.destination_is_not_selected": "destinasi tidak dipilih",
|
|
1180
1180
|
"text.dispatch_delivery_order": "hantar pesanan penghantaran",
|
|
1181
1181
|
"text.do_you_want_to_complete": "anda pasti untuk lengkapkan",
|
|
1182
|
-
"text.do_you_wish_to_proceed_the_selected_products_will_be_removed": "
|
|
1182
|
+
"text.do_you_wish_to_proceed_the_selected_products_will_be_removed": "[ms] Do you wish to proceed? The selected product will be removed.",
|
|
1183
1183
|
"text.do_you_want_to_print": "adakah anda mahu catak",
|
|
1184
1184
|
"text.do_you_want_to_proceed": "[ms] do you want to proceed",
|
|
1185
1185
|
"text.document_has_been_generated": "[ms] document has been generated",
|
package/translations/zh.json
CHANGED
|
@@ -1146,7 +1146,7 @@
|
|
|
1146
1146
|
"text.destination_is_not_selected": "destination is not selected",
|
|
1147
1147
|
"text.dispatch_delivery_order": "dispatch delivery order",
|
|
1148
1148
|
"text.do_you_want_to_complete": "do you want to complete?",
|
|
1149
|
-
"text.do_you_wish_to_proceed_the_selected_products_will_be_removed": "
|
|
1149
|
+
"text.do_you_wish_to_proceed_the_selected_products_will_be_removed": "Do you wish to proceed? The selected product will be removed.",
|
|
1150
1150
|
"text.export_form_is_invalid": "export form is invalid",
|
|
1151
1151
|
"text.do_you_want_to_print": "do you want to print",
|
|
1152
1152
|
"text.do_you_want_to_proceed": "[zh] do you want to proceed",
|