- 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
|
||
|---|---|---|
| app | ||
| templates | ||
| z_raw_tool_ideas | ||
| .gitignore | ||
| CLAUDE.md | ||
| Dockerfile | ||
| README.md | ||
| docker-compose.yml | ||
| eib-processor_how-it-works.md | ||
| requirements.txt | ||
README.md
Internal Tools
A small platform of internal tools for Planeterra International Foundation. Built by Undo Designs. Currently hosts one tool: the EIB Processor (Equals Money → Workday EIB transformer and statement auditor).
Quick start
docker compose up --build
Then open http://localhost:8081 for the tools landing page, or go straight to http://localhost:8081/eib/ for the EIB Processor.
Adding a new tool
Each tool lives in its own app/tools/<name>/ package with a Flask
Blueprint (routes + a logic.py of Flask-free business logic) and its
own templates/<name>/ folder. Register the blueprint and add an entry to
the TOOLS list in app/main.py to get a card on the landing page.
EIB Processor — what it does
- Upload a raw Equals Money export (.xlsx)
- Optionally upload a combined card statement CSV for per-person audit
- Download the processed EIB Excel file
The audit table appears in the output file four columns after the last EIB column. Each person gets a single MATCHED / REVIEW REQUIRED status based on:
sum(EIB Converted Amount) == sum(statement Total debited for rows in EIB)
PDF statement audit (Docling)
The Docling container starts automatically with Docker Compose. Once it's healthy (check the badge in the top-right of the UI), you can upload a PDF statement instead of the CSV.
PDF parsing extracts the opening/closing balance summary from page 1 of the Equals statement. The Docling health check takes ~60s on first start.
Adding new merchants
If the processor reports unmapped merchants, the result panel lets you type a clean name for each one right there and continue processing immediately — no code changes or restarts needed.
The mappings live in app/tools/eib/merchant_lookup.csv (bind-mounted, so
edits — from the UI or by hand — take effect on the next run with no
rebuild). Editing it directly works too: it's a plain two-column CSV
(raw_description,clean_name).
Services
| Service | Port | Description |
|---|---|---|
| app | 8081 | Flask web app (tools platform) |
| docling | 5001 | Docling PDF parsing service |
Volumes
./uploads/— temporary uploaded files./outputs/— generated EIB Excel files