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>