AY2122s2-CS2113-F12-3 / tp

0 stars 4 forks source link

[PE-D] Deleting booking does not free up seat #90

Closed nus-se-script closed 2 years ago

nus-se-script commented 2 years ago

Deleting a flight booking does not free up a seat on the corresponding flight. This seems quite counterproductive as it is not possible to free up seats on a flight if they were booked wrongly or the booking was cancelled.

Steps to reproduce:

  1. Add a customer with the command addCustomer ic/W9248013B n/Eddie p/38201843 e/eddie1238@123.com.
  2. Add a route with the command addRoute fid/Bu3037 fd/02172022 ft/11:10 d/singapore s/china c/1.
  3. Create a booking for the customer for this route: book ic/W9248013B fid/Bu3037.
  4. Delete the newly created booking: deleteBooking 1.
  5. Check the route details with listRoute.

Expected: There should be 1 available seat on Bu3037, as the booking was cancelled.

Actual: There are no available seats on Bu3037.

image.png


Labels: type.FunctionalityBug severity.High original: chooyikai/ped#7