giociudadano / Chime

A mobile application that allows sellers to create menus and allow buyers to order from businesses. Features custom seller tools that aim to help small businesses grow.
https://play.google.com/store/apps/details?id=com.giociudadano.cmsc198.cmsc198
1 stars 0 forks source link

Cancelling an Order does not restore the stock of the orders product #23

Open lunchplus opened 4 months ago

lunchplus commented 4 months ago

Describe the bug When a product has stock, ordering all of the stock will reduce it to zero. However, when the buyer decides to cancel that order, the stock of the product remains at zero

To Reproduce Steps to reproduce the behavior:

  1. Order a product.
  2. Set the quantity to max.
  3. Checkout order. Now product quantity is zero.
  4. Cancel the order. The product quantity remains at zero.

Expected behavior The stock should be restored since the order was cancelled

Additional context Noticed by customer