From f4b16dffc1afd338fa3592ddf4abfe2634d0810d Mon Sep 17 00:00:00 2001 From: Yash Maheshwari Date: Thu, 29 Feb 2024 12:55:04 +0530 Subject: [PATCH] Fixed: issue of quantity not resetting after receiving or coming back to the same po again(#344) --- src/store/modules/order/actions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/modules/order/actions.ts b/src/store/modules/order/actions.ts index ed639b45..513741fe 100644 --- a/src/store/modules/order/actions.ts +++ b/src/store/modules/order/actions.ts @@ -71,7 +71,7 @@ const actions: ActionTree = { return orders.some((order: any) => { if (order.doclist.docs[0]?.orderId === orderId) { this.dispatch('product/fetchProductInformation', { order: order.doclist.docs }); - commit(types.ORDER_CURRENT_UPDATED, { ...state.current, orderId: order.doclist.docs[0]?.orderId, externalOrderId: order.doclist.docs[0]?.externalOrderId, orderStatusId: order.doclist.docs[0]?.orderStatusId, orderStatusDesc: order.doclist.docs[0]?.orderStatusDesc, items: order.doclist.docs }) + commit(types.ORDER_CURRENT_UPDATED, { ...state.current, orderId: order.doclist.docs[0]?.orderId, externalOrderId: order.doclist.docs[0]?.externalOrderId, orderStatusId: order.doclist.docs[0]?.orderStatusId, orderStatusDesc: order.doclist.docs[0]?.orderStatusDesc, items: JSON.parse(JSON.stringify(order.doclist.docs)) }) return current; } })