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> |
||
|---|---|---|
| .. | ||
| src | ||
| Dockerfile | ||
| package.json | ||