Open developeregrem opened 5 years ago
what about doing this via the "status" of a reservation? adding a new status is easy, we then just need to think about a "fixed" canceled status. we could then as well easily filter for the records.
Yes would be an option. Some additional thoughts that came into my mind:
To be honest, I wouldn't show it in the calendar and rather hide it. It would only confuse. It does not necessarily mean we can't get it back, or? How about a sub menu viewing all cancelled and there you can revert the change. Would then more or less be a state change, as said above.
It must be possible to cancel a reservation. A new button should be added to the modal (click on Reservation). When you click on the button, the reservation should "disappear" and be marked as cancelled in the DB. (The room can be reassigned). A new attribute must be inserted in the Reservation entity to indicate whether a reservation has been cancelled or not. Only reservations that have not been canceled can be displayed in the reservation overview. At the same time, the check to see whether a room is available (create / edit new reservation) must also be adjusted so that only reservations that have not been canceled are queried.
Canceled reservations are to be evaluated later for the statistics module.