room-planner/backend
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
..
src Room planner: fix bookings_list to use list_type=staying 2026-07-04 12:18:26 +00:00
Dockerfile feat: add room-planner app — 3-day HK room view with NewBook integration 2026-07-03 13:07:00 +00:00
package.json feat: add room-planner app — 3-day HK room view with NewBook integration 2026-07-03 13:07:00 +00:00