- Canonicalize category/project/account text before grouping so case-only variants (e.g. "OffSite Meetings" vs "Offsite Meetings") collapse to one row instead of producing two SUMIFS formulas that double-count each other under Excel/Sheets' case-insensitive text matching - this was the source of the reported mismatch. - Add _assert_no_case_collisions as a build-time safety net; the old Python-only reconciliation check couldn't catch this class of bug since grouped-vs-source totals are mathematically equal regardless of labeling. routes.py now returns a clean 400 if it ever fires. - Reposition 68020 out of the project-level (Account>Category>Project) section into the collapsed section with 70000+, so only 68010/68030 remain above the Project Costs subtotal, matching the reference template. - Rename the two output sheets to "1. Summary (Manual)" and "Balance Sheet (FS)", updating the cross-sheet Net Income formula reference to match. - Explicitly set calcMode="auto" (in addition to openpyxl's default fullCalcOnLoad) so edits to the TB sheets keep recalculating dependent formulas after the first open, not just on it. - Add a "Report vs. Source Files" comparison table to the results UI showing Total Income/Expenses/Surplus side by side against figures computed independently from the uploaded files. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| donor_report | ||
| eib | ||
| financial_reports | ||
| home.html | ||