DailyReportTask
The DailyReportTask generates the most detailed report in the system, producing one row per stay date per booking. This report enables day-by-day analysis of occupancy, revenue, and guest activity.
Overview
This report is the foundation for:
- Daily occupancy analysis
- Per-night revenue tracking
- Detailed stay pattern analysis
- Room-level performance metrics
- Guest behavior by date
Incremental behavior
This task supports incremental regeneration via the ProcessedAddedRoomModel input. When run in incremental mode the task regenerates daily records for the affected rooms only, upserting using the natural keys:
chain_id,property_id,res_id,room_stay_date
If no added/changed rooms are detected the incremental routine will skip execution.
Data Structure
Granularity
One row represents: A single night of a stay in a specific room
Example:
- Guest books room 101 from Jan 1-3 (2 nights)
- Result: 2 rows in daily report
- Row 1: Jan 1, room 101
- Row 2: Jan 2, room 101
Models
Requires
ProcessedGuestModel- Guest information and loyalty metricsProcessedReservationModel- Reservation details and booking metricsProcessedRoomModel- Daily room stay data
Provides
- Writes to
{chain_id}_dailydatabase table
Write behavior
- Writing to the DB is controlled by the
write_to_catalogflag passed to the task constructor. Whenwrite_to_catalog=Truethe task will usedatabase_sink.write_chain_tablefor full writes anddatabase_sink.upsert_chain_tablefor incremental updates.
Output Schema
The daily report includes (but is not limited to):
Identification
chain_id,property_id,res_id,guest_idroom_stay_date- The date of this specific night
Guest Information
- Guest name, email, phone, address
- Loyalty metrics (stays, lifetime_value, etc.)
- Guest demographics
Reservation Details
- Booking date, check-in/out dates
- Status, booking type
- Channel, source, market segment
- Booking window, stay nights
Room Details
- Room type, room rate code
- Guests (adults/children)
- Revenue breakdown:
room_stay_date_rate_net- Room revenue for this nightroom_stay_date_fnb_net- F&B revenue for this nightroom_stay_date_other_net- Other revenue for this nightroom_stay_date_total_net- Total revenue for this night
Stay Flags
room_stay_date_is_check_in_dayroom_stay_date_is_check_out_dayroom_stay_date_is_stay_dayroom_stay_date_is_stay_night
Related Reports
- BookingRoomsReportTask - Aggregates daily to booking level
- PickupReportTask - Uses daily data for snapshots
- ReportsTask - Parent orchestrator
Last updated on