@things-factory/operato-wms 4.3.637 → 4.3.638
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/adjustment/transfer-inventory.js +7 -12
- package/client/pages/bulk-operation/bulk-operation.js +24 -22
- package/client/pages/bulk-operation/validate-b2c-ro-popup.js +14 -4
- package/client/pages/bulk-operation/validate-gan-popup.js +26 -11
- package/client/pages/bulk-operation/validate-ro-popup.js +16 -6
- package/client/pages/components/list-view/product-list-view.js +1 -1
- package/client/pages/components/select-inventory-popup.js +1 -5
- package/client/pages/components/select-product-popup.js +4 -9
- package/client/pages/inbound/putaway/putaway-product.js +92 -70
- package/client/pages/inbound/putaway/putaway-replenishment-same-product-popup.js +10 -3
- package/client/pages/inbound/putaway/putaway-same-carton-popup.js +1 -1
- package/client/pages/inbound/putaway/putaway-worksheet-generate-popup.js +1 -1
- package/client/pages/inbound/putaway/undo-putaway-popup.js +19 -16
- package/client/pages/inbound/putaway/worksheet-putaway-return.js +1 -1
- package/client/pages/inbound/putaway/worksheet-putaway.js +3 -3
- package/client/pages/inbound/undo-unload-popup.js +1 -1
- package/client/pages/inbound/unload-product.js +33 -37
- package/client/pages/inbound/unloaded-inventories-popup.js +1 -1
- package/client/pages/inbound/worksheet-unloading-return.js +1 -1
- package/client/pages/inbound/worksheet-unloading.js +2 -2
- package/client/pages/inventory/inventory-adjustment.js +5 -20
- package/client/pages/inventory/inventory-by-product.js +43 -43
- package/client/pages/inventory/onhand-inventory.js +2 -2
- package/client/pages/inventory-check/add-extra-inventory-popup.js +2 -10
- package/client/pages/inventory-check/cycle-count-recheck-popup.js +2 -2
- package/client/pages/inventory-check/cycle-count-report.js +19 -14
- package/client/pages/inventory-check/inspecting-product.js +2 -14
- package/client/pages/order/arrival-notice/arrival-notice-detail.js +27 -23
- package/client/pages/order/arrival-notice/assign-buffer-location.js +2 -2
- package/client/pages/order/arrival-notice/check-arrived-notice.js +2 -2
- package/client/pages/order/arrival-notice/create-arrival-notice.js +29 -33
- package/client/pages/order/arrival-notice/duplicate-arrival-notice.js +8 -8
- package/client/pages/order/arrival-notice/edit-product-popup.js +27 -29
- package/client/pages/order/arrival-notice/proceed-edit-product-popup.js +3 -3
- package/client/pages/order/arrival-notice/receive-arrival-notice.js +1 -1
- package/client/pages/order/arrival-notice/rejected-arrival-notice.js +1 -1
- package/client/pages/order/arrival-notice/view-product-changes-popup.js +3 -3
- package/client/pages/order/draft-release-good/draft-release-good-detail.js +2 -2
- package/client/pages/order/release-order/b2c/b2c-release-order-detail.js +91 -92
- package/client/pages/order/release-order/b2c/create-b2c-release-order.js +56 -61
- package/client/pages/order/release-order/create-release-order.js +55 -64
- package/client/pages/order/release-order/receive-release-order-request.js +1 -1
- package/client/pages/order/release-order/rejected-release-order.js +2 -2
- package/client/pages/order/release-order/release-extra-product-popup.js +7 -11
- package/client/pages/order/release-order/release-order-detail.js +116 -158
- package/client/pages/order/return-order/create-return-order.js +3 -16
- package/client/pages/order/return-order/return-order-inventory-popup.js +1 -2
- package/client/pages/outbound/inventory-assign-popup.js +2 -2
- package/client/pages/outbound/inventory-auto-assign-popup.js +1 -1
- package/client/pages/outbound/inventory-reassign-popup.js +6 -6
- package/client/pages/outbound/loading-product.js +3 -3
- package/client/pages/outbound/loading-v2/load-by-qty.js +2 -2
- package/client/pages/outbound/loading-v2/loading-execution-base.js +4 -4
- package/client/pages/outbound/packing-product.js +26 -7
- package/client/pages/outbound/picking-product.js +16 -36
- package/client/pages/outbound/picking-replacement-popup.js +4 -4
- package/client/pages/outbound/picking-v2/picking-execution-base.js +4 -8
- package/client/pages/outbound/sorting-product.js +7 -5
- package/client/pages/outbound/worksheet-batch-picking.js +43 -30
- package/client/pages/outbound/worksheet-loading.js +2 -2
- package/client/pages/outbound/worksheet-packing.js +1 -1
- package/client/pages/outbound/worksheet-picking.js +19 -23
- package/client/pages/outbound/worksheet-return.js +1 -1
- package/client/pages/outbound/worksheet-sorting.js +23 -12
- package/client/pages/outbound/worksheet-zone-picking.js +3 -3
- package/client/pages/report/replenishment-report.js +14 -5
- package/client/pages/report/volume-summary-report.js +6 -6
- package/dist-server/graphql/resolvers/outbound/sort-item.js +1 -1
- package/dist-server/graphql/resolvers/outbound/sort-item.js.map +1 -1
- package/dist-server/graphql/resolvers/reports/cycle-count-report.js +1 -2
- package/dist-server/graphql/resolvers/reports/cycle-count-report.js.map +1 -1
- package/dist-server/graphql/resolvers/zone-worksheet/zone-picking.js +7 -18
- package/dist-server/graphql/resolvers/zone-worksheet/zone-picking.js.map +1 -1
- package/dist-server/graphql/types/outbound/index.js +1 -1
- package/dist-server/graphql/types/reports/cycle-count-report.js +1 -1
- package/dist-server/graphql/types/reports/inbound-order-details-report.js +1 -1
- package/dist-server/graphql/types/reports/outbound-order-details-report.js +2 -2
- package/dist-server/graphql/types/zone-worksheet/index.js +1 -1
- package/package.json +16 -16
- package/server/graphql/resolvers/outbound/sort-item.ts +1 -1
- package/server/graphql/resolvers/reports/cycle-count-report.ts +1 -2
- package/server/graphql/resolvers/zone-worksheet/zone-picking.ts +8 -20
- package/server/graphql/types/outbound/index.ts +1 -1
- package/server/graphql/types/reports/cycle-count-report.ts +1 -1
- package/server/graphql/types/reports/inbound-order-details-report.ts +1 -1
- package/server/graphql/types/reports/outbound-order-details-report.ts +2 -2
- package/server/graphql/types/zone-worksheet/index.ts +1 -1
- package/translations/en.json +259 -265
- package/translations/ko.json +0 -1
- package/translations/ms.json +1463 -1580
- package/translations/zh.json +2150 -2354
|
@@ -91,11 +91,6 @@ export const zonePicking = {
|
|
|
91
91
|
const product = productDetail.product
|
|
92
92
|
let pickedQty: number = pickingQty ? pickingQty : 1
|
|
93
93
|
|
|
94
|
-
// Add decimal quantity validation
|
|
95
|
-
if (pickingQty % 1 !== 0 && !product.isInventoryDecimal) {
|
|
96
|
-
throw new Error('Decimal quantities are not allowed for this product')
|
|
97
|
-
}
|
|
98
|
-
|
|
99
94
|
//calculate unit picked qty if user scan ctn barcode
|
|
100
95
|
let matchingProduct
|
|
101
96
|
let wsController = new WorksheetController(tx, domain, user)
|
|
@@ -113,20 +108,13 @@ export const zonePicking = {
|
|
|
113
108
|
pickedQty = matchingProduct.qty
|
|
114
109
|
|
|
115
110
|
const sumOfReleaseQty: number = targetInventories
|
|
116
|
-
.filter((oi: OrderInventory) => oi.productDetailId === productDetail.id)
|
|
117
111
|
.map((oi: OrderInventory) => oi.releaseQty)
|
|
118
112
|
.reduce((a, b) => a + b, 0)
|
|
119
113
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
.filter((oi: OrderInventory) => oi.productDetailId === productDetail.id)
|
|
123
|
-
.map((oi: OrderInventory) => oi.pickedQty)
|
|
124
|
-
.reduce((a, b) => a + b, 0)
|
|
125
|
-
|
|
126
|
-
// Add the current picking quantity
|
|
127
|
-
const totalPickedQty: number = sumOfPickedQty + pickedQty
|
|
114
|
+
const sumOfPickedQty: number =
|
|
115
|
+
targetInventories.map((oi: OrderInventory) => oi.pickedQty).reduce((a, b) => a + b, 0) + pickedQty
|
|
128
116
|
|
|
129
|
-
if (
|
|
117
|
+
if (sumOfPickedQty > sumOfReleaseQty)
|
|
130
118
|
throw new Error(
|
|
131
119
|
wsController.ERROR_MSG.VALIDITY.CANT_PROCEED_STEP_BY('picking', `quantity can't exceed limitation`)
|
|
132
120
|
)
|
|
@@ -222,12 +210,12 @@ export const zonePicking = {
|
|
|
222
210
|
)
|
|
223
211
|
}
|
|
224
212
|
|
|
225
|
-
//update inventory
|
|
213
|
+
//update inventory
|
|
226
214
|
let updateInvObj = {
|
|
227
|
-
qty: () => `"qty" - ${targetInventory.releaseQty}
|
|
228
|
-
lockedQty: () => `"locked_qty" - ${targetInventory.releaseQty}
|
|
229
|
-
uomValue: () => `"uom_value" - ${targetInventory.releaseUomValue}
|
|
230
|
-
lockedUomValue: () => `"locked_uom_value" - ${targetInventory.releaseUomValue}
|
|
215
|
+
qty: () => `"qty" - ${targetInventory.releaseQty}`,
|
|
216
|
+
lockedQty: () => `"locked_qty" - ${targetInventory.releaseQty}`,
|
|
217
|
+
uomValue: () => `"uom_value" - ${targetInventory.releaseUomValue}`,
|
|
218
|
+
lockedUomValue: () => `"locked_uom_value" - ${targetInventory.releaseUomValue}`,
|
|
231
219
|
updater: user,
|
|
232
220
|
updatedAt: new Date()
|
|
233
221
|
}
|
|
@@ -11,7 +11,7 @@ export const Query = `
|
|
|
11
11
|
|
|
12
12
|
export const Mutation = `
|
|
13
13
|
getLoadingTask: LoadingWorksheet @privilege(category: "worksheet_control", privilege: "mutation") @transaction
|
|
14
|
-
sortItem(releaseGoodNo: String!, productBarcode: String!, qty:
|
|
14
|
+
sortItem(releaseGoodNo: String!, productBarcode: String!, qty: Int!, worksheetDetails: [Object!]): Boolean @transaction
|
|
15
15
|
loadByQty(worksheetDetailPatch: LoadingWorksheetDetails): Boolean @transaction
|
|
16
16
|
undoLoad(doId: String!): Boolean @transaction
|
|
17
17
|
warehouseReturn (releaseGoodNo: String!, worksheetDetails: [Object!]): Worksheet @privilege(category: "worksheet_control", privilege: "mutation") @transaction
|
|
@@ -36,9 +36,9 @@ export const OutboundOrderDetailsReport = gql`
|
|
|
36
36
|
product: Product
|
|
37
37
|
packType: String
|
|
38
38
|
packSize: Int
|
|
39
|
-
qty:
|
|
39
|
+
qty: Int
|
|
40
40
|
uomValue: Float
|
|
41
|
-
returnToLocationQty:
|
|
41
|
+
returnToLocationQty: Int
|
|
42
42
|
returnToLocationUomValue: Float
|
|
43
43
|
uom: String
|
|
44
44
|
unitCost: Float
|
|
@@ -11,7 +11,7 @@ export const Mutation = `
|
|
|
11
11
|
generateWorksheetZonePicking(releaseGoods: [String!]): Worksheet @transaction
|
|
12
12
|
activateWorksheetZonePicking(name: String!): Worksheet @transaction
|
|
13
13
|
activateBulkWorksheetZonePicking(names: [String!]): Worksheet @transaction
|
|
14
|
-
scanProductZonePicking(worksheetId: String!, cartonId: String!, productBarcode: String, binNo: String!, pickingQty:
|
|
14
|
+
scanProductZonePicking(worksheetId: String!, cartonId: String!, productBarcode: String, binNo: String!, pickingQty: Int): Boolean @transaction
|
|
15
15
|
assignSorter(releaseGoodId: [String]!, userId: String): Boolean @transaction
|
|
16
16
|
completeZonePicking(worksheetId: String!): Boolean @transaction
|
|
17
17
|
completeZonePickingPartially(worksheetId: String!): Boolean @transaction
|