Two changes drawn from a closer re-read of the reference template's expense section: - Accounts 70000 and up (Wages, Benefits, Occupancy, Travel, etc.) no longer break out by Project Code - one row per category, combining every project it was posted against (2-criteria SUMIFS: Account + Category, no Project). The three "Project Costs" accounts (68010/68020/68030) keep the full Account -> Category -> Project Code breakdown, since those are the accounts genuinely tied to specific donor projects. - "Project Costs" (68010+68020+68030's account subtotals) and "Net Revenues" (Total Revenue - Project Costs) are now inserted immediately after the 68030 block, matching the reference template. Neither feeds into the account-subtotal list Total Expenses sums from, so the three accounts aren't double-counted. Verified: every pre-existing total is byte-for-byte unchanged (this is a pure display/grouping change, not a data change) - revenue 5,338,866.02 / expense 3,743,572.26 / surplus 1,595,293.76 / balance_check 0.00 - and the new Project Costs (2,990,695.99) / Net Revenues (2,348,170.03) figures were independently resolved via the SUMIFS/SUM simulator and check out arithmetically (5,338,866.02 - 2,990,695.99 = 2,348,170.03). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> |
||
|---|---|---|
| app | ||
| templates | ||
| .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