forecasting/backend/services
jtricerolph 7ebc31756d Fix OTB overcounting by counting distinct rooms not booking rows
Multiple bookings per room (early-checkout Departed + new Arrived, or
NewBook double-bookings) caused COUNT(*) to exceed total room capacity.
Switch to COUNT(DISTINCT COALESCE(room_number, newbook_id)) so each
physical room counts once regardless of how many booking rows span it.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-21 17:19:51 +00:00
..
forecasting Fix OTB overcounting by counting distinct rooms not booking rows 2026-07-21 17:19:51 +00:00
scraper_backends Forecasting app: hybrid port to HNF stack 2026-07-04 18:49:34 +00:00
__init__.py Forecasting app: hybrid port to HNF stack 2026-07-04 18:49:34 +00:00
backup_service.py Forecasting app: hybrid port to HNF stack 2026-07-04 18:49:34 +00:00
booking_scraper.py Forecasting app: hybrid port to HNF stack 2026-07-04 18:49:34 +00:00
central_settings.py Move Resos API key to central Settings service; add sidebar scrollbar styling 2026-07-13 14:35:35 +00:00
newbook_client.py NewBook credentials from central Settings service 2026-07-04 19:36:41 +00:00
newbook_rates_client.py NewBook credentials from central Settings service 2026-07-04 19:36:41 +00:00
reconciliation_service.py Forecasting app: hybrid port to HNF stack 2026-07-04 18:49:34 +00:00
resos_client.py Move Resos API key to central Settings service; add sidebar scrollbar styling 2026-07-13 14:35:35 +00:00