Skip to content

fix(front-desk): the tape chart hides guests who are already in-house - #325

Open
modernitconsultants wants to merge 1 commit into
TelivityAI:mainfrom
modernitconsultants:fix/tape-chart-hides-in-house-guests
Open

fix(front-desk): the tape chart hides guests who are already in-house#325
modernitconsultants wants to merge 1 commit into
TelivityAI:mainfrom
modernitconsultants:fix/tape-chart-hides-in-house-guests

Conversation

@modernitconsultants

Copy link
Copy Markdown
Contributor

The fortnight view queries arrivalDateFrom / arrivalDateTo, which asks who arrives during this window. That silently omits every guest who arrived before it and is still in the hotel — on a tape chart, the people most likely to be looked up.

A guest who checked in yesterday for a week disappears from today's view. Nothing errors; the row is simply absent.

A stay overlaps the window when it arrives before the window ends and departs after it starts, so the filter becomes arrivalDateTo + departureDateFrom. Both are already accepted by ListReservationsDto — only the dashboard was asking the narrower question.

Same endpoint, same window, same rendering; one filter corrected.

The fortnight view queried arrivalDateFrom / arrivalDateTo, which asks "who
arrives during this window". That silently omits every guest who arrived before
it and is still in the hotel — on a tape chart, the people most likely to be
looked up. A guest who checked in yesterday for a week vanishes from today's
view.

A stay overlaps the window when it arrives before the window ends AND departs
after it starts, so the filter becomes arrivalDateTo + departureDateFrom. Both
are already accepted by ListReservationsDto; only the dashboard was asking the
narrower question.

Nothing else changes: same endpoint, same window, same rendering.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant