Skip to content

Commit

Permalink
Merge pull request #820 from amansinghbais/#819
Browse files Browse the repository at this point in the history
Improved: code to remove kit items from the items list for other shipments (#819)
  • Loading branch information
ravilodhi authored Oct 15, 2024
2 parents e39e167 + 38e4613 commit cecb77e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/store/modules/order/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -980,7 +980,7 @@ const actions: ActionTree<OrderState, RootState> = {
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
}
Expand Down Expand Up @@ -1239,7 +1239,7 @@ const actions: ActionTree<OrderState, RootState> = {

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])
Expand Down

0 comments on commit cecb77e

Please sign in to comment.