sp_booking_rates_breakdown


Description

Booking-side twin of sp_rate_schedule_breakdown (pre-check-in nights).

room = GROSS room-only amount. room_net = same amount with every itemizer on room_net_dept removed (= BASE_PRICE), the basis for REVENUE_CALC_TYPE = 2. room_service / room_tax are the is_service / is_tax slices.

Note rsv_pickup.room_charge is NOT this figure: it comes from booking_items.room_charge, which is the sum of nightly rates and still includes meals.

Parameters

Name Type Mode
i_rate_date date IN (DEFAULT NULL)
i_booking_id integer IN (DEFAULT NULL)
i_booking_item integer IN (DEFAULT NULL)
i_charge_to_booking boolean IN (DEFAULT NULL)
only_not_checked_in boolean IN (DEFAULT true)
booking_id integer OUT
booking_item integer OUT
charge_date date OUT
arrival date OUT
departure date OUT
room_qty smallint OUT
adult smallint OUT
child smallint OUT
infant smallint OUT
extra_adult smallint OUT
extra_child smallint OUT
rateplan_id integer OUT
mealtype_id integer OUT
rate_amount t_money OUT
rate_extra_adult t_money OUT
room t_money OUT
extrabed t_money OUT
abf t_money OUT
lunch t_money OUT
dinner t_money OUT
inclusive t_money OUT
other t_money OUT
inclusive_items json OUT
other_items json OUT
charge_to_booking boolean OUT
abf_included t_money OUT
lunch_included t_money OUT
dinner_included t_money OUT
abf_extra t_money OUT
lunch_extra t_money OUT
dinner_extra t_money OUT
room_net_dept integer OUT
room_net numeric OUT
room_service numeric OUT
room_tax numeric OUT

Definition