Who: As a developer
What: I want to update the quantity of the stock amount of the product after the order payment is completed
Why: so that user can user can see the remaining stock amount for the product before making any order
Acceptance criteria
After the payment is completed, then the stock amount for that product should be updated
Implementation details
When the user choose the quantity for the product, then that quantity should be subtracted from the current stock quantity, only after the payment for that order is completed
Updated Stock Amount = Current Stock Amount - Purchased Quantity
User Story
Who: As a developer What: I want to update the quantity of the stock amount of the product after the order payment is completed Why: so that user can user can see the remaining stock amount for the product before making any order
Acceptance criteria
After the payment is completed, then the stock amount for that product should be updated
Implementation details
When the user choose the quantity for the product, then that quantity should be subtracted from the current stock quantity, only after the payment for that order is completed
Updated Stock Amount = Current Stock Amount - Purchased Quantity