dak.c2s/backend/app/services
CCS Admin 95e84a6978 fix: filter report data by max KW when generating reports
Previously, generate_full_report() ignored the kw parameter for data
filtering — it was only stored as metadata. This caused all reports to
contain data up to the latest available KW, making historical reports
(e.g., for KW 8) identical to the current one.

Now all 5 sheet calculation functions accept an optional max_kw parameter.
When generating a report for a specific KW, only cases with kw <= max_kw
are included. Dashboard and vorjahr callers are unaffected (max_kw=None).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-26 23:16:20 +00:00
..
__init__.py feat: project scaffolding with FastAPI, config, database connection 2026-02-24 07:24:00 +00:00
audit_service.py feat: admin API, audit logging, notifications, create_admin script 2026-02-24 07:48:41 +00:00
auth_service.py feat: add MFA disable (self-service + admin reset) endpoints 2026-02-26 09:40:57 +00:00
coding_service.py fix: filter all case queries to DAK insurance only 2026-02-26 10:20:33 +00:00
csv_parser.py fix: auto-detect CSV delimiter (comma, semicolon, tab) 2026-02-24 23:09:16 +00:00
disclosure_service.py feat: add KPI links, My Disclosures page, and extend Admin Disclosures 2026-02-26 22:19:46 +00:00
excel_export.py fix: use one-decimal percentage format in Sheet 1 (0.0% instead of 0%) 2026-02-24 09:32:32 +00:00
excel_import.py fix: use savepoints for row-by-row error isolation in Excel import 2026-02-24 09:01:42 +00:00
excel_sync.py fix: filter all case queries to DAK insurance only 2026-02-26 10:20:33 +00:00
icd_service.py fix: remove patient names from coding template and restrict to admin 2026-02-26 17:20:28 +00:00
import_service.py feat: auto-update fall_id when KVNR is entered on a case 2026-02-26 17:09:50 +00:00
notification_service.py feat: notification service — in-app + SMTP email 2026-02-24 07:52:24 +00:00
report_service.py fix: filter report data by max KW when generating reports 2026-02-26 23:16:20 +00:00
vorjahr_service.py fix: wrap vorjahr data in "summary" key to match excel_export structure 2026-02-24 09:34:19 +00:00