Files
smb-online/backoffice
mivanchenko a56a238e81
Test backoffice (smb-crm) / test (push) Successful in 1m31s
Fix: exclude cancelled bookings from the no-overlap constraint
bookings_no_overlap (the GiST exclusion constraint preventing
double-booking) had no WHERE clause, so a cancelled booking's old time
range stayed "occupied" forever -- permanently blocking that
resource+slot from ever being booked again, even though the booking
itself is dead. Found live: a cancelled test booking blocked a real
reschedule attempt into the same slot ("overlaps with an existing
appointment" even though nothing active was there).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-12 02:42:06 +02:00
..