Cap pickup suggestion so OTB + pickup never exceeds bookable capacity
Rename ML± column to Pickup± (prior-year pace model, not ML) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
1fae3ce60b
commit
ca75037e39
1 changed files with 4 additions and 0 deletions
|
|
@ -1281,6 +1281,10 @@ async def forecast_rooms_for_date(
|
||||||
'prior_final': prior_final_by_cat.get(cat_id, 0)
|
'prior_final': prior_final_by_cat.get(cat_id, 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Cap pickup so OTB + suggestion never exceeds available capacity
|
||||||
|
if bookable > 0:
|
||||||
|
total_pickup_rooms = min(total_pickup_rooms, max(0, bookable - current_otb_rooms))
|
||||||
|
|
||||||
# Base forecast
|
# Base forecast
|
||||||
forecast_rooms = current_otb_rooms + total_pickup_rooms
|
forecast_rooms = current_otb_rooms + total_pickup_rooms
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue