Replaces the Account -> SLOB -> Category -> Subtotal hierarchy with a
single flat list per section, sorted by project code then category,
with no header or subtotal rows breaking it up - aimed at non-finance
readers who want to scan the numbers quickly, not a full accounting
breakdown (subtotals can be added manually for deeper analysis).
- Grouping is now (donor, project code, category) instead of (donor,
account, project code, category) - dropping the Ledger Account
dimension merges rows that were only "duplicated" because the same
project code/category combination happened to post to two different
GL accounts (e.g. the same spend category under two expense
accounts), which would otherwise show as two near-identical rows.
- Total Revenue/Total Expenses are now a single SUM over each
section's contiguous row range rather than a sum of subtotal cells.
- Fixed a bug introduced while removing the account-header rows: the
template's own placeholder text ("Donations & Fundraising Revenue",
"Disbursement to Projects") was bleeding through on each section's
first row, because ws.cell(value=None) is a no-op in openpyxl rather
than a clear - needed a direct .value = None assignment instead.
Re-verified: no stray placeholder text on any of the 12 donor sheets,
every Total Revenue/Total Expenses/Surplus formula independently
re-evaluated and matches the same grand totals as before this change
(revenue 4,384,170.35 / expense 3,611,064.64 / surplus 773,105.71).
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>