Parameters
| Name | Type | Mode |
|---|---|---|
| i_group_booking_id | integer | IN |
| charge_date | date | IN (DEFAULT NULL) |
| post_date | date | IN (DEFAULT NULL) |
| item_id | integer | IN (DEFAULT NULL) |
Group booking financial summary — returns a flat JSON array of rows. Each row: {row_id, row_type, section, description, booking, checked_in, total, in_house, checked_out}, where each of the five status buckets = {bookacc_qty, bookacc_amt, ownacc_qty, ownacc_amt, total_qty, total_amt}. Bucket derivation: booking=not-yet-checked-in; in_house=registration.status=I; checked_out=registration.status=O; checked_in=in_house+checked_out; total=booking+in_house+checked_out. Sections: inclusive | extra | requirement | grand_total. Detail row_types: room_charge, comp_room, total_room (amt=NULL), abf, lunch, dinner, inclusion (dynamic), extra_bed, extra_abf, extra_lunch, extra_dinner, requirement (dynamic). Subtotal row_types: inclusive_total, extra_total, requirement_total, grand_total. bookacc = charge_to_booking=TRUE, ownacc = charge_to_booking=FALSE. All three sources are always aggregated; toggling subsets is done client-side by picking buckets. Optional charge_date filters stay night; post_date filters requirement charge_date; item_id narrows to one booking_items.item_id (or registration.booking_item).
| Name | Type | Mode |
|---|---|---|
| i_group_booking_id | integer | IN |
| charge_date | date | IN (DEFAULT NULL) |
| post_date | date | IN (DEFAULT NULL) |
| item_id | integer | IN (DEFAULT NULL) |