Repository navigation
Rooms, night audit, and group holds for every hotel - #408
Closed
telivity-otaip wants to merge 6 commits into
Closed
telivity-otaip wants to merge 6 commits into
telivity-otaip wants to merge 6 commits into
Conversation
Creating or retiring a room now recounts active rooms in the same transaction. A room that is occupied or tied to an in-house stay cannot be retired. Migration 0033 reconciles hotels that already drifted. Co-authored-by: telivity-otaip <telivity-otaip@users.noreply.github.com>
Occupancy, the financial summary, and the occupancy trend use the count of active rooms already loaded for the report. properties.total_rooms is only the fallback when a property has no active rooms yet. Co-authored-by: telivity-otaip <telivity-otaip@users.noreply.github.com>
Room charges and rooms sold only count stays that cover the business date. Overdue departures are recorded and the date still rolls. An unattended close extends one night only when the property opts in and the room can be held. POST /night-audit/run-due walks every active hotel in its IANA timezone after the local cutoff. Co-authored-by: telivity-otaip <telivity-otaip@users.noreply.github.com>
POST /groups/blocks can carry allocations, and PUT /groups/blocks/:id/inventory/span sets the same hold on every night of a span. Sellable availability is checked for the whole span before any row is written, and rooms already picked up are kept. Co-authored-by: telivity-otaip <telivity-otaip@users.noreply.github.com>
The dashboard returns overdueTasksCount for pending, assigned, and in-progress tasks whose service date is before the property's business date. Seed cleanup is unchanged and real tasks are not skipped. Co-authored-by: telivity-otaip <telivity-otaip@users.noreply.github.com>
Co-authored-by: telivity-otaip <telivity-otaip@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Backend half of haip #407. The Night Audit and Groups screen commits stay on #407 for design review and are not in this pull.
properties.total_rooms. Migration0033_sync_property_total_rooms.sqlreconciles existing hotels. It has not been applied yet.POST /api/v1/night-audit/run-duewalks each active hotel in its own timezone after the local cutoff.overdueTasksCount. No badge is added here.The hosted Cloud API uses the haip-cloud overlay for the hourly job. That overlay blocks a hotel while guests are still checked in past departure. This engine pull does not change that overlay.
Tests
The commits were already green on haip #407 (
pnpm lint,pnpm typecheck,pnpm build, and the Postgres test run). This pull stops before the two UI commits, so CI runs again on this branch.