Fix M365 summary: per-product totals row and QWE Client-based missing assignments

- Total row now sums each license column individually instead of using colspan
- Missing Assignment warning now flags licensed users with no QWE Client set,
  replacing the previous department-based company check

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-09 16:15:56 +02:00
co-authored by Claude Sonnet 4.6
parent 1ec63844ce
commit 8af2fe75a6
2 changed files with 17 additions and 6 deletions
+1 -1
View File
@@ -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)