Financial Statement Package Builder: Turn the Trial Balance Into a Balanced P&L, Balance Sheet, and Cash Flow Before You Hit Send
Import your trial balance and a TB-account → statement-line mapping, and the tool builds a formatted P&L, balance sheet, and indirect cash-flow statement with prior-period comparatives, proves that assets = liabilities + equity and that the cash-flow ties to the change in cash, flags any unmapped accounts, and waits for the controller to review and approve before the package is exported and distributed.
A logged-in tool where you import a trial balance and a TB-account → statement-line mapping, the agent builds a formatted profit & loss, balance sheet, and indirect cash-flow statement with prior-period comparatives, validates that the balance sheet balances and the cash-flow ties to the actual change in cash, flags every unmapped account before it can go out, the controller reviews and approves, and you export the full statement package as CSV and PDF.
Before you start
- A Supabase account (free)
- A Vercel account (free)
- A Resend account (free)
- A trial balance export for the period (CSV is fine) and the prior period for comparatives
- A mapping from each TB account to its financial-statement line item (you can build this once in the tool)
- Claude Code or any AI coding agent
The problem this kills
Every month it's the same workbook. Export the trial balance, paste it into the statements tab, and drag the SUMIFS that pull each account into its P&L or balance-sheet line. Then comes the part that eats the evening: the balance sheet is off by $1,240 and you have no idea which of three new accounts somebody opened last quarter didn't get pointed at a line. You eyeball the prior-period column, re-key two numbers a controller "fixed" in an email, and rebuild the indirect cash flow by hand — backing into operating cash from net income and the change in every working-capital account — praying the bottom of it equals the actual change in your cash balance.
The math isn't hard. The misery is everything around it: a mapping that lives in your head and breaks every time the chart of accounts grows, a balance sheet that won't tie because one account slipped through, comparatives that get out of sync the moment a prior number is restated, and a cash flow that's so fiddly to rebuild that nobody fully trusts it. And when it finally balances, it ships as a workbook — with no record of who checked that it tied or who approved it going out.
A statement package is a governed deliverable. It deserves to be a real tool that keeps the mapping, proves the balance sheet balances and the cash flow ties before anything is exported, flags every account it doesn't recognize, and makes the controller sign off before a single statement leaves the building.
What you'll build
A small internal web app for your finance team. You import a trial balance for the period and a mapping that tells the tool which financial-statement line each TB account rolls up to (assets, liabilities, equity, revenue, expense — down to your exact line items). The tool builds a formatted profit & loss, balance sheet, and indirect cash-flow statement, with a prior-period comparative column next to every line.
Before any of it is allowed out the door, the tool validates the package: it enforces assets = liabilities + equity to the penny, confirms the cash-flow statement ties to the actual change in cash on the balance sheet, and flags every TB account that isn't mapped so nothing silently falls off a statement. You reuse the same mapping next period — it's saved, not rebuilt. The controller reviews the statements, confirms they balance and tie to prior, and approves. Only then can you export the full package as CSV and PDF. Re-import the same trial balance for the same period and a duplicate guard stops it from being processed twice.
What's inside the Implementation Plan
The downloadable plan is a step-by-step file you paste into an AI coding agent. It opens by interviewing you about your business — who builds the statements today and in what tool, which ERP/GL the trial balance comes from and its exact columns, how your accounts are typed and numbered, the precise line items your P&L and balance sheet present, how you currently build the cash flow, what your sign convention is, and the messy exceptions like new accounts, reclasses, restated comparatives, and intercompany eliminations. It reflects a short tailored spec back to you and gets your thumbs-up before it builds anything, so the package matches your chart of accounts and your statement format — not a generic template.
From there it walks the agent through the data model, the trial-balance import with dedupe, the reusable account-to-line mapping with an unmapped-account flag, the statement builders for the P&L and balance sheet, the indirect cash-flow build, the validation engine (balance check plus cash-flow tie-out), prior-period comparatives, the controller review-and-approve gate, and the CSV/PDF export. Every step ends with a ready-to-copy prompt. There's a full "No API yet?" path that uses Google Sheet / CSV imports as the data source and produces a clean CSV in the exact columns your downstream system or auditor expects — so you can build and run the whole thing this weekend no matter what ERP you're on.
The governance it includes (this is the point)
These statements go to owners, lenders, and boards, so the controls aren't optional. The plan builds in login so only your finance team can use the tool, row-level security so you only ever see your own organization's numbers, a complete audit trail of who imported which trial balance, who changed which mapping, who reviewed, and who approved, a hard human-approval gate so nothing is exported or distributed until the controller signs off on a package that provably balances and ties, and duplicate guards keyed on account + period so re-importing a corrected trial balance can never be double-counted. The balance check and the cash-flow tie-out are themselves a control: the package literally cannot be approved while it's out of balance.
Who it's for
Controllers, assistant controllers, and bookkeepers who hand-build the monthly or quarterly statement package from the trial balance — anyone tired of chasing a balance sheet that's off by a few hundred dollars, re-pointing new accounts every close, and rebuilding the indirect cash flow from scratch. If you can export a trial balance and tell us which line each account belongs on, you can build this.
You've got this — start with the plan, paste the first prompt, and answer the interview. You'll have a balanced, tied-out statement package on screen before the weekend's out.