@things-factory/operato-wms 4.3.640 → 4.3.642
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 +12 -7
- package/client/pages/bulk-operation/bulk-operation.js +23 -25
- package/client/pages/bulk-operation/validate-b2c-ro-popup.js +4 -14
- package/client/pages/bulk-operation/validate-gan-popup.js +11 -26
- package/client/pages/bulk-operation/validate-ro-popup.js +6 -16
- package/client/pages/components/list-view/product-list-view.js +1 -1
- package/client/pages/components/select-inventory-popup.js +5 -1
- package/client/pages/components/select-product-popup.js +9 -4
- package/client/pages/constants/replenishment-config.js +5 -5
- package/client/pages/inbound/putaway/putaway-product.js +70 -92
- package/client/pages/inbound/putaway/putaway-replenishment-same-product-popup.js +3 -10
- 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 +16 -19
- 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 +37 -33
- 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 +20 -5
- 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 +10 -2
- package/client/pages/inventory-check/cycle-count-recheck-popup.js +2 -2
- package/client/pages/inventory-check/cycle-count-report.js +14 -19
- package/client/pages/inventory-check/inspecting-product.js +14 -2
- package/client/pages/order/arrival-notice/arrival-notice-detail.js +23 -27
- 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 +42 -43
- package/client/pages/order/arrival-notice/duplicate-arrival-notice.js +8 -8
- package/client/pages/order/arrival-notice/edit-product-popup.js +29 -27
- 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 +92 -91
- package/client/pages/order/release-order/b2c/create-b2c-release-order.js +61 -56
- package/client/pages/order/release-order/create-release-order.js +65 -56
- 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 +11 -7
- package/client/pages/order/release-order/release-order-detail.js +158 -116
- package/client/pages/order/return-order/create-return-order.js +16 -3
- package/client/pages/order/return-order/return-order-inventory-popup.js +2 -1
- 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 +7 -26
- package/client/pages/outbound/picking-product.js +36 -16
- package/client/pages/outbound/picking-replacement-popup.js +4 -4
- package/client/pages/outbound/picking-v2/picking-execution-base.js +8 -4
- package/client/pages/outbound/sorting-product.js +5 -7
- package/client/pages/outbound/worksheet-batch-picking.js +30 -43
- 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 +23 -19
- package/client/pages/outbound/worksheet-return.js +1 -1
- package/client/pages/outbound/worksheet-sorting.js +12 -23
- package/client/pages/outbound/worksheet-zone-picking.js +3 -3
- package/client/pages/replenishment/replenishment.js +1 -1
- package/client/pages/report/replenishment-report.js +5 -14
- 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 +2 -1
- package/dist-server/graphql/resolvers/reports/cycle-count-report.js.map +1 -1
- package/dist-server/graphql/resolvers/zone-worksheet/zone-picking.js +18 -7
- 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 +2 -1
- package/server/graphql/resolvers/zone-worksheet/zone-picking.ts +20 -8
- 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 +265 -259
- package/translations/ko.json +1 -0
- package/translations/ms.json +1580 -1463
- package/translations/zh.json +2354 -2150
|
@@ -189,6 +189,7 @@ export const cycleCountReport = {
|
|
|
189
189
|
first_count.origin_uom_value as "system_uom_value",
|
|
190
190
|
row_to_json((SELECT cn FROM (SELECT ${jsonColumnNames}) cn))::varchar as "count_data",
|
|
191
191
|
row_to_json((SELECT cn FROM (SELECT ${uomJsonColumnNames}) cn))::varchar as "count_uom_data",
|
|
192
|
+
ROUND(CAST(fc.final_count - first_count.origin_qty AS NUMERIC), 3) as "count_variance",
|
|
192
193
|
CASE
|
|
193
194
|
WHEN (COALESCE(first_count.origin_batch_no, '') <> COALESCE(f.inspected_batch_no, ''))
|
|
194
195
|
THEN true
|
|
@@ -316,7 +317,7 @@ export const cycleCountReport = {
|
|
|
316
317
|
expirationDateVariance: itm.ExpirationDateVariance,
|
|
317
318
|
finalCount: itm.final_count,
|
|
318
319
|
finalUom: itm.final_uom,
|
|
319
|
-
countVariance: itm.
|
|
320
|
+
countVariance: itm.count_variance,
|
|
320
321
|
countStatus,
|
|
321
322
|
company: itm.company,
|
|
322
323
|
partnerDomainId: itm.partner_domain_id
|
|
@@ -91,6 +91,11 @@ 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
|
+
|
|
94
99
|
//calculate unit picked qty if user scan ctn barcode
|
|
95
100
|
let matchingProduct
|
|
96
101
|
let wsController = new WorksheetController(tx, domain, user)
|
|
@@ -108,13 +113,20 @@ export const zonePicking = {
|
|
|
108
113
|
pickedQty = matchingProduct.qty
|
|
109
114
|
|
|
110
115
|
const sumOfReleaseQty: number = targetInventories
|
|
116
|
+
.filter((oi: OrderInventory) => oi.productDetailId === productDetail.id)
|
|
111
117
|
.map((oi: OrderInventory) => oi.releaseQty)
|
|
112
118
|
.reduce((a, b) => a + b, 0)
|
|
113
119
|
|
|
114
|
-
|
|
115
|
-
|
|
120
|
+
// Calculate total picked quantity including the current picking
|
|
121
|
+
const sumOfPickedQty: number = targetInventories
|
|
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
|
|
116
128
|
|
|
117
|
-
if (
|
|
129
|
+
if (totalPickedQty > sumOfReleaseQty)
|
|
118
130
|
throw new Error(
|
|
119
131
|
wsController.ERROR_MSG.VALIDITY.CANT_PROCEED_STEP_BY('picking', `quantity can't exceed limitation`)
|
|
120
132
|
)
|
|
@@ -210,12 +222,12 @@ export const zonePicking = {
|
|
|
210
222
|
)
|
|
211
223
|
}
|
|
212
224
|
|
|
213
|
-
//update inventory
|
|
225
|
+
//update inventory with proper decimal handling
|
|
214
226
|
let updateInvObj = {
|
|
215
|
-
qty: () => `"qty" - ${targetInventory.releaseQty}`,
|
|
216
|
-
lockedQty: () => `"locked_qty" - ${targetInventory.releaseQty}`,
|
|
217
|
-
uomValue: () => `"uom_value" - ${targetInventory.releaseUomValue}`,
|
|
218
|
-
lockedUomValue: () => `"locked_uom_value" - ${targetInventory.releaseUomValue}`,
|
|
227
|
+
qty: () => `"qty" - ${targetInventory.releaseQty}::numeric`,
|
|
228
|
+
lockedQty: () => `"locked_qty" - ${targetInventory.releaseQty}::numeric`,
|
|
229
|
+
uomValue: () => `"uom_value" - ${targetInventory.releaseUomValue}::numeric`,
|
|
230
|
+
lockedUomValue: () => `"locked_uom_value" - ${targetInventory.releaseUomValue}::numeric`,
|
|
219
231
|
updater: user,
|
|
220
232
|
updatedAt: new Date()
|
|
221
233
|
}
|
|
@@ -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: Float!, 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: Float
|
|
40
40
|
uomValue: Float
|
|
41
|
-
returnToLocationQty:
|
|
41
|
+
returnToLocationQty: Float
|
|
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: Float): 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
|