From 38e461366201ae4b6c33887fb778b99f4aa3234a Mon Sep 17 00:00:00 2001 From: amansinghbais Date: Tue, 15 Oct 2024 18:35:09 +0530 Subject: [PATCH] Improved: code to remove kit items from the items list for other shipments (#819) --- src/store/modules/order/actions.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/store/modules/order/actions.ts b/src/store/modules/order/actions.ts index 281b3d85..718d7f17 100644 --- a/src/store/modules/order/actions.ts +++ b/src/store/modules/order/actions.ts @@ -980,7 +980,7 @@ const actions: ActionTree = { shipGroups = resp.data.grouped.shipGroupSeqId.groups // creating the key as orders as the product information action accept only the orders as a param - this.dispatch('product/getProductInformation', { orders: shipGroups }) + await this.dispatch('product/getProductInformation', { orders: shipGroups }) } else { throw resp.data } @@ -1239,7 +1239,7 @@ const actions: ActionTree = { return reservedShipGroup ? { ...shipGroup, - items: reservedShipGroupForOrder.doclist.docs, + items: removeKitComponents({ items: reservedShipGroupForOrder.doclist.docs }), carrierPartyId: reservedShipGroup.carrierPartyId, shipmentId: reservedShipGroup.shipmentId, category: getOrderCategory(reservedShipGroupForOrder.doclist.docs[0])