HackYourFuture-CPH / fp-class18

Interior design webshop
MIT License
1 stars 0 forks source link

Frontend/Backend: Update the Stock Amount of the product after the order payment is completed #280

Closed BikramRawat closed 2 years ago

BikramRawat commented 2 years ago

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