equals-wd-card-expense-proc.../app/tools/financial_reports
JasonFraser 462e67af41 Nest Category Summary three levels: Account > Category > Project Code
Final structure, after two prior attempts (Account-only, then
Category-only) didn't match what was actually wanted: Account is now
the outer grouping (bold subtotal row, sorted ascending by account
number - resolving the "account sequence jumps around" issue directly,
since account is the primary sort key rather than something to
reorder categories by), Category is a second bold subtotal level
nested within each account (sorted alphabetically, SUMs its own detail
rows), and Project Code remains the leaf-level sort/display column. A
category spanning more than one account (e.g. "Planeterra Program
Costs - Administration" under both 68010 and 68030) now correctly gets
its own separate subtotal block under each account, rather than being
merged into one flat block.

Verified with the same SUMIFS/SUMIF simulator built for the previous
formula rewrite - resolved every formula against the actual embedded
source-sheet data, including account and category subtotals nesting
correctly. All totals unchanged (this is purely a row layout/grouping
change): revenue 5,338,866.02 / expense 3,743,572.26 /
surplus 1,595,293.76 / balance_check 0.00.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-25 16:38:33 -04:00
..
__init__.py Add Financial Reports tool: Category Summary + Balance Sheet snapshot 2026-08-25 15:49:12 -04:00
balance_sheet_account_map.csv Add Financial Reports tool: Category Summary + Balance Sheet snapshot 2026-08-25 15:49:12 -04:00
logic.py Nest Category Summary three levels: Account > Category > Project Code 2026-08-25 16:38:33 -04:00
routes.py Add Financial Reports tool: Category Summary + Balance Sheet snapshot 2026-08-25 15:49:12 -04:00