Allow room move on departure day
It can happen that after midnight for some reason a room move is required but it's also the day of departure. Previously it was not possible to perform a room move in such scenarios. We extend the room move logic to also support room moves on the departure date.
The following logic is implemented:
- A new reservation is created for the new room with:
- Arrival date = yesterday
- Departure date = today
- Arrival date = yesterday
- The old reservation is updated as follows:
- If the guest was checked in → the departure date is set to yesterday.
- If the guest’s arrival was also yesterday → the old reservation is cancelled instead.
- If the guest was checked in → the departure date is set to yesterday.