When a booking is made via an availability search, and the booking is completed, the availability calendar is updated to reflect that a booking has been made, so that the room cannot be booked again for the same dates.

As things currently stand, all dates from arrival date to departure date (inclusive) are marked in this way, which means that another booking which starts on the previous booking departure date cannot be made. For most use cases, the checkout time is in the morning (eg 10am) and the arrival time is in the afternoon (eg 2pm), allowing for for room cleaning etc, but bookings which have an overlap of the departure date of booking #1 and the arrival date of booking #2 are still allowed.

Interestingly, if a room booked via the usual availability search is re-assigned (manually with administrator privileges), the availability calendar is updated. The booking dates stay the same, and the availability calendar for the new room is as would be expected for the use case described above (booked from arrival date to day prior to departure date), so the code for reassignment is correct.

Could the code for booking be updated to have the same effect as re-assignment currently has?

Ian

Comments

joeebel’s picture

Subscribe

ronald_istos’s picture

Status: Active » Needs review

Great catch - this is now fixed in dev. Please check and let us know.

1an_m’s picture

Fixed, Booked Room now marked as available on departure date.

However, all is not right with room re-assignment - see #1977064: Room Re-assignment does not release original room
Not sure if this issue is new or not, but I did not notice it prior to the fix for the current issue (#1974368)

ronald_istos’s picture

Status: Needs review » Closed (fixed)

Thanks will look into the other issue.

ronald_istos’s picture

Issue summary: View changes

edited for clarity