The situation
Smartledgers runs bookkeeping for small businesses. Every week, clients upload crumpled thermal receipts, skewed phone photos and multi-page supplier PDFs, and every single one has to land in accounting software without a swapped tax code or wrong decimal breaking month-end reconciliation.
Connecting a ready-made AI tool is easy; trusting unchecked AI to write directly into client financial ledgers is reckless. Smartledgers needed automated extraction accurate enough to stop manual data entry, paired with a fast review screen that keeps a human accountable for every posted number.
The hard part
Real SME receipts have no clean template: faded thermal ink, folded paper, mixed layouts and multi-page supplier invoices with varied tax lines. The system had to separate line items from totals, check the totals automatically, and flag any uncertain field immediately instead of silently guessing wrong.
What we built
A live document workflow in Elixir/Phoenix, Python and PostgreSQL built around accounting accuracy:
- Multi-engine document reading: Automatic image cleanup paired with Google Vision, Baidu OCR and custom extraction models to handle faded, skewed and unseen layouts.
- Structured validation: Extracts supplier details, dates, tax amounts, line items and totals, checking that line items, tax and totals add up and flagging any mismatch.
- Side-by-side review screen: Bookkeepers inspect the original scan beside extracted fields, focusing directly on highlighted uncertain values instead of retyping the whole bill.
- Direct QuickBooks & Xero sync: Once approved, clean entries post directly into each client’s accounting software with a full audit trail.
What changed day to day
- Bookkeepers review exceptions instead of typing every line: Messy receipts and multi-page supplier invoices are read automatically and queued side by side with the original scan, highlighting only uncertain values for fast confirmation.
- No unchecked AI posts to client accounts: Totals and tax figures are checked automatically, and a human approves flagged fields before any entry syncs to Xero or QuickBooks.
- Full audit trail on every bill: Every posted record shows both what the system extracted and who signed it off.



