Room Stays: Add rooms to an existing booking (pre-assign stay) #1

Open
opened 2026-02-08 20:27:59 +05:30 by androidlover5842 · 0 comments

Goal

  • From Booking Details -> Room Stays, allow adding an extra room stay to the same booking (future stay allocation).

API

  • POST /properties/{propertyId}/bookings/{bookingId}/room-stays (pre-assign stay)

UX requirements

  • Select room (from available rooms for date range).
  • Pick from/to (date+time) aligned with billing policy if applicable.
  • Optional: nightly rate + rate source + rate plan code + currency + notes.
  • Validate date range (toAt > fromAt).
  • Block occupied rooms with clear error.

Engineering requirements

  • Follow Room DB sync rule: UI action -> server request -> Room DB update -> UI reacts from Room observers.
  • After success: refresh Room caches (booking details + active stays + booking list if needed) via shared helper (no copy-paste).
  • No duplicate mapping/permission checks across screens.

Acceptance

  • New room stay appears in Room-backed booking details and room-stays list without manual refresh.
Goal - From Booking Details -> Room Stays, allow adding an extra room stay to the same booking (future stay allocation). API - POST `/properties/{propertyId}/bookings/{bookingId}/room-stays` (pre-assign stay) UX requirements - Select room (from available rooms for date range). - Pick from/to (date+time) aligned with billing policy if applicable. - Optional: nightly rate + rate source + rate plan code + currency + notes. - Validate date range (`toAt > fromAt`). - Block occupied rooms with clear error. Engineering requirements - Follow Room DB sync rule: `UI action -> server request -> Room DB update -> UI reacts from Room observers`. - After success: refresh Room caches (booking details + active stays + booking list if needed) via shared helper (no copy-paste). - No duplicate mapping/permission checks across screens. Acceptance - New room stay appears in Room-backed booking details and room-stays list without manual refresh.
androidlover5842 added the featureroom-stayuxapiroom-db-sync labels 2026-02-08 20:27:59 +05:30
androidlover5842 added this to the TrisolarisPMS Roadmap project 2026-02-09 00:56:03 +05:30
Sign in to join this conversation.