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:
Add a customer with the command addCustomer ic/W9248013B n/Eddie p/38201843 e/eddie1238@123.com.
Add a route with the command addRoute fid/Bu3037 fd/02172022 ft/11:10 d/singapore s/china c/1.
Create a booking for the customer for this route: book ic/W9248013B fid/Bu3037.
Delete the newly created booking: deleteBooking 1.
Check the route details with listRoute.
Expected:
There should be 1 available seat on Bu3037, as the booking was cancelled.
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:
addCustomer ic/W9248013B n/Eddie p/38201843 e/eddie1238@123.com
.addRoute fid/Bu3037 fd/02172022 ft/11:10 d/singapore s/china c/1
.book ic/W9248013B fid/Bu3037
.deleteBooking 1
.listRoute
.Expected: There should be 1 available seat on Bu3037, as the booking was cancelled.
Actual: There are no available seats on Bu3037.
Labels:
type.FunctionalityBug
severity.High
original: chooyikai/ped#7