Fix: drag booking passes roomId to API; checked_out rooms available for new booking; remove time-based theme text

This commit is contained in:
2026-03-21 00:22:03 +03:00
parent fd804926e4
commit 75d7d6aa08
4 changed files with 4 additions and 3 deletions

View File

@@ -42,7 +42,7 @@ function isConflict(bookings: Booking[], roomId: string, checkIn: string, checkO
return bookings.some(b =>
b.roomId === roomId &&
b.id !== excludeId &&
b.status !== 'cancelled' && b.status !== 'no_show' &&
b.status !== 'cancelled' && b.status !== 'no_show' && b.status !== 'checked_out' &&
b.checkIn < checkOut && b.checkOut > checkIn,
)
}