The problem
A client runs its group of companies on a finance SaaS whose plan was being discontinued, so it was about to lose access. There was a hard deadline of 17 days to move everything out: transactions, attachments, bank statements and reconciliations for three companies.
The finance team also had to keep working the way it already did. The new system needed the exact screens and workflow they used every day, and the numbers had to be the same as before.
What I built
A white-label finance platform for the client's group. Each company's data is isolated, and one login can manage several companies.
- Reverse engineering and migration. I mapped the old system's screens and its internal API (read-only) and extracted everything: about 8,100 transactions across 3 companies, about 2,100 attachments, 87 bank statements with about 1,700 reconciled items, plus contacts, categories, cost centers and tags.
- Transactions. Installments and recurring series, splits by category and cost center, transfers between accounts and attachments. Bank accounts and their statements.
- Bank reconciliation. The user imports an OFX file, read by a parser that tolerates the quirks of Brazilian bank files. For each statement line the system suggests matching transactions, scored by value, date and the payee's name or CPF/CNPJ found in the statement text. The user always confirms; nothing is reconciled automatically.
- Reports. Ready-made cash flow, income vs. expenses and P&L reports, a dashboard, and a custom report with two grouping levels and CSV/XLSX export.
- Permissions. Per company, by area and action: all, only mine, or none. A separate "see balances and values" switch masks amounts everywhere, including exports and charts.
- Notices. A daily e-mail and in-app notices for bills that are due or overdue.
Key decisions
- Prove the migration, don't eyeball it. Before go-live, an automated check compares the new system with the old one: transaction counts per year, every account's balance on every day of history, and the ready-made reports (cash flow, income vs. expenses, P&L) for every company and year from 2023 to 2026. Re-importing is idempotent and refuses to overwrite records edited in the new system.
- Money as integer cents, balances always computed from transactions. No rounding drift, and no stored balance that can fall out of sync.
- A Django monolith with server-rendered pages (HTMX, Alpine and Tailwind). One codebase, fast to change under a tight deadline.
- Tests and review on every task. About 600 automated tests, including golden tests against the old system's own reports. Every task was reviewed for spec and security before the next one started.
- Fix the slow screen at the query level. The transactions list in its month-to-year view went from 568 to 18 queries, from about 11 s to 2 s.
- Attachments behind a permission check. Files live on object storage and are served only through short-lived signed links, after the user's permission is checked.
- Deployed on a dedicated server with managed MySQL over TLS.
Results
- The client moved off the old SaaS before the deadline, with all its history, attachments and reconciliations.
- 46,527 account-days of balances matched the old system to the cent, and 72 of 72 report comparisons matched to the cent.
- The operator kept the same screens and workflow.
- From the first meeting to production took about 2 days.





