Wire real utility cost data into Weekly Actuals report
Replaces the Utilities placeholder with a cost-breakdown table by category (usage/standing/CCL/RAB levy/fixed extras/VAT/total) sourced from the utilities app's internal API, plus a projected-total note for the current month. Mirrors the existing forecasting integration pattern (best-effort fetch, doesn't break the rest of the report on failure). Also adds the missing UTILITIES_URL/UTILITIES_API_KEY env vars to docker-compose.yml, needed by both this and the pre-existing directors-forecast integration. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
parent
932302ebe2
commit
dfd3a506d1
4 changed files with 142 additions and 6 deletions
|
|
@ -7,6 +7,8 @@ services:
|
|||
- DATABASE_URL=${DATABASE_URL}
|
||||
- FORECASTING_URL=${FORECASTING_URL:-http://10.10.10.113:3080}
|
||||
- FORECASTING_API_KEY=${FORECASTING_API_KEY:-}
|
||||
- UTILITIES_URL=${UTILITIES_URL:-http://10.10.10.127:3080}
|
||||
- UTILITIES_API_KEY=${UTILITIES_API_KEY:-}
|
||||
- CENTRAL_AUTH_SECRET=${CENTRAL_AUTH_SECRET}
|
||||
- SETTINGS_URL=${SETTINGS_URL}
|
||||
- SETTINGS_SECRET=${SETTINGS_SECRET}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue