developeregrem / fewohbee

Hotelsoftware für kleine bis mittelgroße Pensionen und Hotels
https://www.fewohbee.de
GNU General Public License v3.0
35 stars 7 forks source link

Reservations can be cancelled #15

Open developeregrem opened 5 years ago

developeregrem commented 5 years ago

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.

daking88 commented 8 months 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.

developeregrem commented 8 months ago

Yes would be an option. Some additional thoughts that came into my mind:

daking88 commented 6 months ago

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.