@things-factory/worksheet-base 4.3.641 → 4.3.643
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/dist-server/controllers/inbound/unloading-worksheet-controller.js +14 -24
- package/dist-server/controllers/inbound/unloading-worksheet-controller.js.map +1 -1
- package/dist-server/controllers/inspect/cycle-count-worksheet-controller.js +5 -1
- package/dist-server/controllers/inspect/cycle-count-worksheet-controller.js.map +1 -1
- package/dist-server/controllers/outbound/packing-worksheet-controller.js +23 -10
- package/dist-server/controllers/outbound/packing-worksheet-controller.js.map +1 -1
- package/dist-server/controllers/outbound/picking-worksheet-controller.js +7 -6
- package/dist-server/controllers/outbound/picking-worksheet-controller.js.map +1 -1
- package/dist-server/controllers/outbound/returning-worksheet-controller.js +1 -1
- package/dist-server/controllers/outbound/returning-worksheet-controller.js.map +1 -1
- package/dist-server/controllers/outbound/sorting-worksheet-controller.js +7 -1
- package/dist-server/controllers/outbound/sorting-worksheet-controller.js.map +1 -1
- package/dist-server/controllers/replenishment/replenishment-worksheet-controller.js +1 -1
- package/dist-server/controllers/replenishment/replenishment-worksheet-controller.js.map +1 -1
- package/dist-server/graphql/resolvers/worksheet/batch-picking-worksheet.js +5 -2
- package/dist-server/graphql/resolvers/worksheet/batch-picking-worksheet.js.map +1 -1
- package/dist-server/graphql/resolvers/worksheet/confirm-cancellation-release-order.js +6 -18
- package/dist-server/graphql/resolvers/worksheet/confirm-cancellation-release-order.js.map +1 -1
- package/dist-server/graphql/resolvers/worksheet/inventories-by-pallet.js +1 -1
- package/dist-server/graphql/resolvers/worksheet/inventories-by-pallet.js.map +1 -1
- package/dist-server/graphql/resolvers/worksheet/proceed-extra-products.js +6 -6
- package/dist-server/graphql/resolvers/worksheet/proceed-extra-products.js.map +1 -1
- package/dist-server/graphql/types/worksheet/index.js +11 -11
- package/dist-server/graphql/types/worksheet/worksheet-detail-info.js +7 -6
- package/dist-server/graphql/types/worksheet/worksheet-detail-info.js.map +1 -1
- package/package.json +12 -12
- package/server/controllers/inbound/unloading-worksheet-controller.ts +32 -47
- package/server/controllers/inspect/cycle-count-worksheet-controller.ts +6 -1
- package/server/controllers/outbound/packing-worksheet-controller.ts +30 -18
- package/server/controllers/outbound/picking-worksheet-controller.ts +10 -7
- package/server/controllers/outbound/returning-worksheet-controller.ts +1 -1
- package/server/controllers/outbound/sorting-worksheet-controller.ts +7 -1
- package/server/controllers/replenishment/replenishment-worksheet-controller.ts +1 -1
- package/server/graphql/resolvers/worksheet/batch-picking-worksheet.ts +8 -14
- package/server/graphql/resolvers/worksheet/confirm-cancellation-release-order.ts +6 -19
- package/server/graphql/resolvers/worksheet/inventories-by-pallet.ts +2 -1
- package/server/graphql/resolvers/worksheet/proceed-extra-products.ts +65 -59
- package/server/graphql/types/worksheet/index.ts +11 -11
- package/server/graphql/types/worksheet/worksheet-detail-info.ts +7 -6
|
@@ -71,70 +71,76 @@ export const proceedExtraProductsResolver = {
|
|
|
71
71
|
)
|
|
72
72
|
|
|
73
73
|
if (editedApprovedProducts?.length > 0) {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
: selectedOrderProduct
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
: selectedOrderProduct
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
74
|
+
await Promise.all(
|
|
75
|
+
editedApprovedProducts.map(async (editedApprovedProd: OrderProduct) => {
|
|
76
|
+
const selectedOrderProduct: OrderProduct = storedOrderProducts.find(
|
|
77
|
+
(op: OrderProduct) => op.id === editedApprovedProd.id
|
|
78
|
+
)
|
|
79
|
+
|
|
80
|
+
updatedOrderProducts.push({
|
|
81
|
+
...selectedOrderProduct,
|
|
82
|
+
batchId: selectedOrderProduct?.adjustedBatchId
|
|
83
|
+
? selectedOrderProduct.adjustedBatchId
|
|
84
|
+
: selectedOrderProduct.batchId,
|
|
85
|
+
batchIdRef: selectedOrderProduct?.adjustedBatchIdRef
|
|
86
|
+
? selectedOrderProduct.adjustedBatchIdRef
|
|
87
|
+
: selectedOrderProduct.batchIdRef,
|
|
88
|
+
packingType: selectedOrderProduct?.adjustedPackingType
|
|
89
|
+
? selectedOrderProduct.adjustedPackingType
|
|
90
|
+
: selectedOrderProduct.packingType,
|
|
91
|
+
packQty: selectedOrderProduct?.adjustedPackQty
|
|
92
|
+
? selectedOrderProduct.adjustedPackQty
|
|
93
|
+
: selectedOrderProduct.packQty,
|
|
94
|
+
uom: selectedOrderProduct?.adjustedUom ? selectedOrderProduct.adjustedUom : selectedOrderProduct.uom,
|
|
95
|
+
uomValue: selectedOrderProduct?.adjustedUomValue
|
|
96
|
+
? selectedOrderProduct.adjustedUomValue
|
|
97
|
+
: selectedOrderProduct.uomValue,
|
|
98
|
+
totalUomValue:
|
|
99
|
+
selectedOrderProduct?.adjustedTotalUomValue || selectedOrderProduct?.adjustedTotalUomValue === ''
|
|
100
|
+
? selectedOrderProduct.adjustedTotalUomValue
|
|
101
|
+
: selectedOrderProduct.totalUomValue,
|
|
102
|
+
palletQty: selectedOrderProduct?.adjustedPalletQty
|
|
103
|
+
? selectedOrderProduct.adjustedPalletQty
|
|
104
|
+
: selectedOrderProduct.palletQty,
|
|
105
|
+
unitPrice: selectedOrderProduct?.adjustedUnitPrice
|
|
106
|
+
? selectedOrderProduct.adjustedUnitPrice
|
|
107
|
+
: selectedOrderProduct.unitPrice,
|
|
108
|
+
status:
|
|
109
|
+
worksheet.status === WORKSHEET_STATUS.DEACTIVATED
|
|
110
|
+
? ORDER_PRODUCT_STATUS.READY_TO_UNLOAD
|
|
111
|
+
: ORDER_PRODUCT_STATUS.UNLOADING,
|
|
112
|
+
updater: user
|
|
113
|
+
})
|
|
111
114
|
})
|
|
112
|
-
|
|
115
|
+
)
|
|
113
116
|
}
|
|
114
117
|
|
|
115
118
|
if (addedApprovedProducts?.length > 0) {
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
119
|
+
await Promise.all(
|
|
120
|
+
addedApprovedProducts.map(async (addedApprovedProd: OrderProduct) => {
|
|
121
|
+
const selectedOrderProduct: OrderProduct = storedOrderProducts.find(
|
|
122
|
+
(op: OrderProduct) => op.id === addedApprovedProd.id
|
|
123
|
+
)
|
|
124
|
+
|
|
125
|
+
updatedOrderProducts.push({
|
|
126
|
+
...selectedOrderProduct,
|
|
127
|
+
batchId: selectedOrderProduct.adjustedBatchId,
|
|
128
|
+
batchIdRef: selectedOrderProduct.adjustedBatchIdRef,
|
|
129
|
+
packingType: selectedOrderProduct.adjustedPackingType,
|
|
130
|
+
packQty: selectedOrderProduct.adjustedPackQty,
|
|
131
|
+
uom: selectedOrderProduct.adjustedUom,
|
|
132
|
+
uomValue: selectedOrderProduct.adjustedUomValue,
|
|
133
|
+
totalUomValue: selectedOrderProduct.adjustedTotalUomValue,
|
|
134
|
+
palletQty: selectedOrderProduct.adjustedPalletQty,
|
|
135
|
+
unitPrice: selectedOrderProduct.adjustedUnitPrice,
|
|
136
|
+
status:
|
|
137
|
+
worksheet.status === WORKSHEET_STATUS.DEACTIVATED
|
|
138
|
+
? ORDER_PRODUCT_STATUS.READY_TO_UNLOAD
|
|
139
|
+
: ORDER_PRODUCT_STATUS.UNLOADING,
|
|
140
|
+
updater: user
|
|
141
|
+
})
|
|
136
142
|
})
|
|
137
|
-
|
|
143
|
+
)
|
|
138
144
|
}
|
|
139
145
|
|
|
140
146
|
debug('approved and updated order product', updatedOrderProducts)
|
|
@@ -379,7 +379,7 @@ export const Mutation = /* GraphQL */ `
|
|
|
379
379
|
palletId: String
|
|
380
380
|
cartonId: String
|
|
381
381
|
locationName: String!
|
|
382
|
-
releaseQty:
|
|
382
|
+
releaseQty: Float!
|
|
383
383
|
binLocation: String
|
|
384
384
|
serialNumber: String
|
|
385
385
|
toteNo: String
|
|
@@ -393,7 +393,7 @@ export const Mutation = /* GraphQL */ `
|
|
|
393
393
|
binLocation: String
|
|
394
394
|
serialNumber: String
|
|
395
395
|
toteNo: String
|
|
396
|
-
pickingQty:
|
|
396
|
+
pickingQty: Float
|
|
397
397
|
): Boolean @privilege(category: "worksheet_execute", privilege: "mutation") @transaction
|
|
398
398
|
|
|
399
399
|
replenishmentPicking (
|
|
@@ -403,7 +403,7 @@ export const Mutation = /* GraphQL */ `
|
|
|
403
403
|
cartonId: String!
|
|
404
404
|
binLocation: String
|
|
405
405
|
serialNumber: String
|
|
406
|
-
pickingQty:
|
|
406
|
+
pickingQty: Float
|
|
407
407
|
): Boolean @privilege(category: "worksheet_execute", privilege: "mutation") @transaction
|
|
408
408
|
|
|
409
409
|
sortingProduct (
|
|
@@ -444,7 +444,7 @@ export const Mutation = /* GraphQL */ `
|
|
|
444
444
|
palletId: String!
|
|
445
445
|
locationName: String
|
|
446
446
|
binLocationName: String
|
|
447
|
-
releaseQty:
|
|
447
|
+
releaseQty: Float!
|
|
448
448
|
): Boolean @privilege(category: "worksheet_execute", privilege: "mutation") @transaction
|
|
449
449
|
|
|
450
450
|
scanProductBatchPicking (
|
|
@@ -454,21 +454,21 @@ export const Mutation = /* GraphQL */ `
|
|
|
454
454
|
productBarcode: String!
|
|
455
455
|
inventory: InventoryPatch!
|
|
456
456
|
binLocationName: String
|
|
457
|
-
pickingQty:
|
|
457
|
+
pickingQty: Float
|
|
458
458
|
): Boolean @privilege(category: "worksheet_execute", privilege: "mutation") @transaction
|
|
459
459
|
|
|
460
460
|
crossDockPicking (
|
|
461
461
|
worksheetDetailName: String!
|
|
462
462
|
worksheetType: String!
|
|
463
463
|
palletId: String!
|
|
464
|
-
releaseQty:
|
|
464
|
+
releaseQty: Float!
|
|
465
465
|
): Boolean @privilege(category: "worksheet_execute", privilege: "mutation") @transaction
|
|
466
466
|
|
|
467
467
|
|
|
468
468
|
inspectingPallet (
|
|
469
469
|
worksheetDetailName: String!
|
|
470
470
|
inspectedBatchNo: String!
|
|
471
|
-
inspectedQty:
|
|
471
|
+
inspectedQty: Float!
|
|
472
472
|
inspectedUomValue: Float!
|
|
473
473
|
inspectedExpirationDate: Date
|
|
474
474
|
): Boolean @privilege(category: "worksheet_execute", privilege: "mutation") @transaction
|
|
@@ -479,7 +479,7 @@ export const Mutation = /* GraphQL */ `
|
|
|
479
479
|
batchId: String!
|
|
480
480
|
locationId: String!
|
|
481
481
|
inspectedBatchNo: String!
|
|
482
|
-
inspectedQty:
|
|
482
|
+
inspectedQty: Float!
|
|
483
483
|
inspectedUomValue: Float!
|
|
484
484
|
inspectedExpirationDate: Date
|
|
485
485
|
): Boolean @privilege(category: "worksheet_execute", privilege: "mutation") @transaction
|
|
@@ -511,7 +511,7 @@ export const Mutation = /* GraphQL */ `
|
|
|
511
511
|
relocateInventory (
|
|
512
512
|
worksheetDetailName: String!
|
|
513
513
|
inspectedBatchNo: String!
|
|
514
|
-
inspectedQty:
|
|
514
|
+
inspectedQty: Float!
|
|
515
515
|
inspectedUomValue: Float!
|
|
516
516
|
inspectedLocationName: String!
|
|
517
517
|
): Boolean @privilege(category: "worksheet_execute", privilege: "mutation") @transaction
|
|
@@ -522,7 +522,7 @@ export const Mutation = /* GraphQL */ `
|
|
|
522
522
|
batchId: String!
|
|
523
523
|
locationId: String!
|
|
524
524
|
inspectedBatchNo: String!
|
|
525
|
-
inspectedQty:
|
|
525
|
+
inspectedQty: Float!
|
|
526
526
|
inspectedUomValue: Float!
|
|
527
527
|
inspectedLocationName: String!
|
|
528
528
|
): Boolean @privilege(category: "worksheet_execute", privilege: "mutation") @transaction
|
|
@@ -533,7 +533,7 @@ export const Mutation = /* GraphQL */ `
|
|
|
533
533
|
productDetailId: String!
|
|
534
534
|
productId: String!
|
|
535
535
|
inspectedBatchNo: String!
|
|
536
|
-
inspectedQty:
|
|
536
|
+
inspectedQty: Float!
|
|
537
537
|
inspectedUomValue: Float!
|
|
538
538
|
countNo: Int!
|
|
539
539
|
inspectedExpirationDate: Date
|
|
@@ -19,12 +19,12 @@ export const WorksheetDetailInfo = gql`
|
|
|
19
19
|
expirationDate: String
|
|
20
20
|
palletQty: Int
|
|
21
21
|
actualPalletQty: Int
|
|
22
|
-
packQty:
|
|
23
|
-
actualPackQty:
|
|
22
|
+
packQty: Float
|
|
23
|
+
actualPackQty: Float
|
|
24
24
|
adjustedPalletQty: Int
|
|
25
25
|
adjustedBatchId: String
|
|
26
26
|
sku: String
|
|
27
|
-
qty:
|
|
27
|
+
qty: Float
|
|
28
28
|
uom: String
|
|
29
29
|
uomValue: Float
|
|
30
30
|
releaseQty: Float
|
|
@@ -33,13 +33,14 @@ export const WorksheetDetailInfo = gql`
|
|
|
33
33
|
sortedQty: Float
|
|
34
34
|
releaseUomValue: Float
|
|
35
35
|
inspectedBatchNo: String
|
|
36
|
-
originQty:
|
|
36
|
+
originQty: Float
|
|
37
37
|
originUomValue: Float
|
|
38
38
|
originExpirationDate: String
|
|
39
|
-
inspectedQty:
|
|
39
|
+
inspectedQty: Float
|
|
40
40
|
inspectedUomValue: Float
|
|
41
41
|
inspectedExpirationDate: String
|
|
42
42
|
inspectedLocation: Location
|
|
43
|
+
isInventoryDecimal: Boolean
|
|
43
44
|
operationGuide: String
|
|
44
45
|
set: Int
|
|
45
46
|
targetType: String
|
|
@@ -65,7 +66,7 @@ export const WorksheetDetailInfo = gql`
|
|
|
65
66
|
relatedInvCheckItem: InventoryCheckItem
|
|
66
67
|
targetInventoryCheckItem: InventoryCheckItem
|
|
67
68
|
releaseGood: ReleaseGood
|
|
68
|
-
actualQty:
|
|
69
|
+
actualQty: Float
|
|
69
70
|
actualUomValue: Float
|
|
70
71
|
manufactureDate: String
|
|
71
72
|
binRemarks: String
|