equals-wd-card-expense-proc.../app/tools/financial_reports
JasonFraser 091928eea0 Order categories by account number, not alphabetically
Within a category, rows were already ascending by account number, but
categories themselves were visited alphabetically - so the overall
account-number sequence down a section jumped around (e.g. 78000,
81000, 72400, 70000, 71060, 72600, 78000 again...) even though each
individual category block was internally ordered. Categories are now
visited in ascending order of their lowest account number (ties break
alphabetically), so the account-number sequence is monotonic across
the whole Revenue/Expenses section, not just within each category.

Verified: extracted the lead account code of every category block in
the Expenses section and confirmed the sequence is non-decreasing
end to end. Same totals as before (this only changes row order, not
values): revenue 5,338,866.02 / expense 3,743,572.26 /
balance_check 0.00.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-25 16:32:11 -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 Order categories by account number, not alphabetically 2026-08-25 16:32:11 -04:00
routes.py Add Financial Reports tool: Category Summary + Balance Sheet snapshot 2026-08-25 15:49:12 -04:00