No description
Find a file
jtricerolph 89ad3811da Room planner: fix bookings_list to use list_type=staying
The original WordPress plugin (class-hhdl-ajax.php line 409) uses
list_type='staying', which returns bookings whose stay *overlaps* the
date window (arrival <= period_to AND departure >= period_from).

Using list_type='all' was returning bookings filtered by booking-placed
date (or a flat dump), completely missing tomorrow-arriving bookings
that are needed for right-bracket display. Switching to 'staying' with
the original yesterday→tomorrow window gives 50 bookings vs 89 before,
and correctly includes adjacent-day arrivals.

Verified on dev: room 101 now shows confirmed right-bracket for July 5
arrival, room 102 now correctly classifies as back-to-back.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-04 12:18:26 +00:00
backend Room planner: fix bookings_list to use list_type=staying 2026-07-04 12:18:26 +00:00
frontend Room planner: add debug-room endpoint, fix next_status null check 2026-07-04 11:54:32 +00:00
docker-compose.yml fix: remove NEWBOOK_LOCATION_ID env var — credentials come from settings service 2026-07-03 13:11:01 +00:00
seed-app.js feat: add room-planner app — 3-day HK room view with NewBook integration 2026-07-03 13:07:00 +00:00