equals-wd-card-expense-proc.../app/tools/donor_report
JasonFraser c32ab5984e Include the Planeterra International Foundation Ltd entity column
Amounts were only pulling from "Planeterra Foundation" (column D);
"Planeterra International Foundation Ltd" (column E) is now added in
too via a shared _entity_total() helper, used both for the per-row
amounts and the full-file balance integrity check. Eliminations
(column F) stays excluded - it's zero on every row in both sample
files, so D+E already equals the trial balance's own precomputed
"Total" (D+E+F) column; nothing currently depends on including it.

Verified against the real files: revenue moves from 4,384,170.35 to
5,338,866.02 (exactly sum(D)+sum(E) on the filtered rows) and expense
from 3,611,064.64 to 3,743,572.26, matching hand-calculated sums
before touching the report generator. Re-ran the full formula
verification (every Total Revenue/Expenses/Surplus cell across all 12
donor sheets plus the Summary sheet's cross-sheet references) with no
mismatches.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-25 13:57:01 -04:00
..
__init__.py Add Donor Revenue Report tool 2026-08-25 12:36:11 -04:00
donor_merge_map.csv Add expense trial balance support to Donor Revenue Report 2026-08-25 13:00:11 -04:00
logic.py Include the Planeterra International Foundation Ltd entity column 2026-08-25 13:57:01 -04:00
report_summary_template.xlsx Add Donor Revenue Report tool 2026-08-25 12:36:11 -04:00
routes.py Add expense trial balance support to Donor Revenue Report 2026-08-25 13:00:11 -04:00