equals-wd-card-expense-proc.../app
JasonFraser 05c305d6ff Add category/project reassignment mapping, visible Budget copy, and Category Summary formatting to Financial Reports
- New category/project reassignment system: when a TB category or
  project has no home in the uploaded Budget file, two sequential
  review gates (category_mapping, then project_mapping) let the user
  fold it into an existing budget category/project (merging actuals
  into the target row, project code preserved) or explicitly leave it
  as-is - persisted to category_reassignment_map.csv/
  project_reassignment_map.csv, editable any time via a standalone
  Manage Mappings panel with inline dropdowns sourced from the stored
  Budget file's own real categories/projects per account.
- Accounts 79000/81000 (FX revaluation) always collapse every category
  under them into one fixed name, unconditionally.
- Fixed a live-formula bug the reassignment work exposed: Category
  Summary's SUMIFS criteria were built from reassigned/collapsed
  category text but pointed at the untouched raw TB sheets, so a
  merged row's formula would silently evaluate to zero in real Excel.
  Fixed by writing "Category (Applied)"/"Project (Applied)" columns
  onto the Revenue TB/Expense TB sheet copies and pointing formulas at
  those instead.
- A faithfully-styled, visible copy of the actual uploaded Budget file
  ("Budget (Original)") now replaces the old plain-data dump as what a
  person sees first; the plain-data "Budget" sheet still powers every
  live formula but is now hidden.
- Category Summary formatting: "Total Revenue"/"Project Costs"/"Net
  Revenues" moved to the Category column; each 68020-82000 account
  subtotal gets a "Total <name>" label; every major total/subtotal row
  gets a top+bottom border; the Variance column conditionally formats
  values below -$0.0001 in red.
- Two new reference sheets: "Reassignment Reference" (original-vs-
  shown-as text for every actual reassignment/forced collapse) and
  "GL Detail" (every GL Dump line tagged and sorted the same way
  Category Summary groups its own rows) - both purely additive, neither
  feeds any calculated figure.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HToTtpxzoxeugsa1Ve61gn
2026-10-01 20:02:13 -04:00
..
tools Add category/project reassignment mapping, visible Budget copy, and Category Summary formatting to Financial Reports 2026-10-01 20:02:13 -04:00
common.py Lift GL Dump helpers into app/common.py; add GL Analyzer, PDF Unlock, Summary Reconciliation Check, and Donor Report (GL Only) tools 2026-10-01 20:00:00 -04:00
main.py Lift GL Dump helpers into app/common.py; add GL Analyzer, PDF Unlock, Summary Reconciliation Check, and Donor Report (GL Only) tools 2026-10-01 20:00:00 -04:00