Skip to content

Commit

Permalink
Merge pull request #110 from hotwax/#2h1em69
Browse files Browse the repository at this point in the history
Fixed: When rejecting order items duplicate entries are created and item is not rejected (#2h1em69)
  • Loading branch information
adityasharma7 authored Jun 29, 2022
2 parents 8e96c91 + 1055cd4 commit 3d79fd8
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 3d79fd8

Please sign in to comment.