Skip to content

Commit

Permalink
Improved: code to remove kit items from the items list for other ship…
Browse files Browse the repository at this point in the history
…ments (#819)
  • Loading branch information
amansinghbais committed Oct 15, 2024
1 parent e39e167 commit 38e4613
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 38e4613

Please sign in to comment.