From 1055cd49243b6d124d2f67227bf1473a5ce93f81 Mon Sep 17 00:00:00 2001 From: Aditya Sharma Date: Wed, 29 Jun 2022 12:22:13 +0530 Subject: [PATCH] Fixed: When rejecting order items duplicate entries are created and item is not rejected (#2h1em69) When rejecting order item from Bopis app using rejectOrderItem API, fulfillment status of item is not changed and there are duplicate entries created for the same with Cancelled and Cancelled + Rejected status. Passed quantity as required for the rejectItem API for successful rejection --- src/store/modules/order/actions.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/store/modules/order/actions.ts b/src/store/modules/order/actions.ts index d6e89d867..eb953f37f 100644 --- a/src/store/modules/order/actions.ts +++ b/src/store/modules/order/actions.ts @@ -50,14 +50,16 @@ const actions: ActionTree ={ items: [{ orderItemSeqId: item.orderItemSeqId, productId: item.productId, - facilityId: item.facilityId + facilityId: item.facilityId, + quantity: item.itemQuantity }] }) } else { currentOrderPart.items.push({ orderItemSeqId: item.orderItemSeqId, productId: item.productId, - facilityId: item.facilityId + facilityId: item.facilityId, + quantity: item.itemQuantity }) } @@ -138,14 +140,16 @@ const actions: ActionTree ={ items: [{ orderItemSeqId: item.orderItemSeqId, productId: item.productId, - facilityId: item.facilityId + facilityId: item.facilityId, + quantity: item.itemQuantity }] }) } else { currentOrderPart.items.push({ orderItemSeqId: item.orderItemSeqId, productId: item.productId, - facilityId: item.facilityId + facilityId: item.facilityId, + quantity: item.itemQuantity }) }