equals-wd-card-expense-proc.../app
JasonFraser 8f1ffe57c6 Category Summary: group/sort by account number, show full account string
Two changes per closer re-reading of the reference template:

- "Account" column now shows the full raw Ledger Account string
  (e.g. "43000:Donation and Fundraising Revenue"), unsplit - same
  treatment as Project Code already gets, rather than parsing out just
  the name.
- Subtotal grouping switches from Category to Account, sorted by
  account number ascending (43000, 48000, then 68010..82000 in the
  Expenses section). String-sorting the full account value works here
  since every code in this chart of accounts is the same 5-digit
  width, so no separate numeric-sort key was needed. Within each
  account, detail rows are still sorted by strategic area (C&B, CTI,
  GCTN, General) then full project code. Category is now a plain
  column rather than a grouping level.

Purely a grouping/display change - re-verified end to end that every
total is unaffected: Category Summary reconciliation still MATCHES
exactly, Balance Sheet balance_check is still 0.00, and every Total
Revenue/Total Expenses/Surplus formula resolves to the same figures
as before (revenue 5,338,866.02 / expense 3,743,572.26 /
surplus 1,595,293.76).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-25 16:09:25 -04:00
..
tools Category Summary: group/sort by account number, show full account string 2026-08-25 16:09:25 -04:00
main.py Add Financial Reports tool: Category Summary + Balance Sheet snapshot 2026-08-25 15:49:12 -04:00