diff --git a/app/m365.py b/app/m365.py index 9e76197..9bfc864 100644 --- a/app/m365.py +++ b/app/m365.py @@ -110,7 +110,7 @@ def _apply_overrides(users: list[dict], db: Session) -> list[dict]: def _calculate_summary(users: list[dict]) -> dict: licensed = [u for u in users if u["is_licensed"]] - missing = [u for u in licensed if not u["company"]] + missing = [u for u in licensed if not u["qwe_client"].strip()] # Per-QWE-Client breakdown (primary goal) client_groups: dict[str, list] = defaultdict(list) diff --git a/app/templates/m365_license.html b/app/templates/m365_license.html index 486cb4c..d2b85fa 100644 --- a/app/templates/m365_license.html +++ b/app/templates/m365_license.html @@ -177,7 +177,7 @@
- Missing Company Assignments ({{ summary.missing | length }}) — licensed users not in QWE AT / QWE SK / KFC AT / KFC SK / QWE + Missing QWE Client Assignment ({{ summary.missing | length }}) — licensed users without a QWE Client set