equals-wd-card-expense-proc.../app
JasonFraser 7cbd8ee7eb Drop subtotals, group revenue/expenses as a flat list by project code
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>
2026-08-25 13:17:47 -04:00
..
tools Drop subtotals, group revenue/expenses as a flat list by project code 2026-08-25 13:17:47 -04:00
main.py Add Donor Revenue Report tool 2026-08-25 12:36:11 -04:00