Skip to content

Commit

Permalink
Fixed: When rejecting order items duplicate entries are created and i…
Browse files Browse the repository at this point in the history
…tem 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
  • Loading branch information
adityasharma7 committed Jun 29, 2022
1 parent 8e96c91 commit 1055cd4
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/store/modules/order/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,16 @@ const actions: ActionTree<OrderState , RootState> ={
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
})
}

Expand Down Expand Up @@ -138,14 +140,16 @@ const actions: ActionTree<OrderState , RootState> ={
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
})
}

Expand Down

0 comments on commit 1055cd4

Please sign in to comment.