Skip to content

Screens

A document inbox that catches a changed bank account

Clients' documents wait in one queue, possible frauds first, then those with findings, then the clean ones. The open document is drawn as paper from the fields read off it, and each finding marks the value it is about with its number. When a supplier's bank account has changed, Return to client becomes the main action and accepting needs a written reason.

By Bohuslav PoláčekChecked

Kestrel's inbox rendered from the kit's own components when the site was built: the queue beside the brewery's invoice that asks to be paid to a new account.

Open it in the live demo An app for an accounting office

What the screen shows

  • The queue: the clients' documents sorted by what the check found. A possible fraud says Suspicion in the danger colour, a document with findings says how many in ink, a clean one is Checked beside a neutral glyph. Each row is two cells, the supplier over the client and the amount over the findings (DataTable with CellStack), so a phone keeps every fact without scrolling sideways.
  • The decision: a card at the top of the open document, and first on a phone too. It says what was found and what to do, with Return to client and Accept with a reason.
  • The paper: the kit's Paper draws the invoice from the fields read off the PDF, in the order they sit on the page. A finding's number sits on the value it is about, here the IBAN, and pointing at a finding in the list under the paper lights up its value.

A check that flags, a person who decides

The check is a set of pure functions over what was read off the document, the client and what the office already knows: the VAT register, the supplier's earlier invoices, the client's other documents. The api runs it on every read, so a field corrected in place (a pencil, Enter saves) runs it again and a finding never outlives the data behind it. The table below lists what it compares.

It leaves one thing to a person on purpose: whether a finding is a reason to send the document back. A changed bank account changes the card. Return to client becomes the ink action and opens a message for the client, started from what the check found and edited by the accountant, which goes by e-mail with a link to the client's portal and into the document's history (audit trail). Accepting instead takes a written reason, kept in the same history.

The decision works from the keyboard too: Cmd+Enter (Ctrl+Enter off a Mac) accepts and adding Shift returns, with the keys shown on the buttons from 1024px. Every shortcut has a modifier, because the framework allows no single-key shortcuts (WCAG 2.1.4).

What AI tools tend to get wrong here

Asked for an invoice capture review screen, a code generator tends to put the extracted fields in a form beside a picture of the scan, give each field a confidence score and colour every row green, amber or red. The person then compares two lists by eye and learns to ignore the colours. Three rules of the framework keep this screen from going that way:

  • The paper is drawn from the fields, so a finding points at the value itself.
  • A row that is fine stays quiet and colour goes to what needs doing: a word beside a glyph, never a row of coloured pills (StatusLabel).
  • The screen is the kit's worklist (work queue): one row of controls above the list and the decision as a card, never a coloured banner. The audit's control-rows rule fails a screen with a second row of controls, and this inbox is the worklist sample that e2e/screens.spec.ts opens at 1440 and 390, light and dark.

What the check reads and what it flags

The checks the documents module runs on every document, with the words the inbox shows for each finding (domain/checks.ts and meta.tsx in the demo).

Questions

How does the inbox spot a possibly fraudulent invoice?

It compares the bank account on the document with the supplier's earlier invoices and with the accounts published in the VAT register. A changed or unpublished account is a danger finding: the row says Suspicion, it sorts to the top of the queue, and the paper marks the IBAN with the finding's number.

Does the check reject documents by itself?

No. It says what it found and how serious it is, and whether that is a reason to return the document is the bookkeeper's call. A suspected fraud is accepted only with a written reason, which stays in the document's history.

What does Return to client send?

A message for the client, started from what the check found in plain words and edited by the accountant. It goes by e-mail with a link to the client's portal, where the returned document is the first thing the client sees, and into the document's history.

What happens to a clean document?

It waits in the queue as Checked, and its decision card sends it into the client's accounting program with one click.

Which checks run on every document?

The VAT number and the VAT register, the rates against the items, the totals, duplicates, the IBAN's check digits and history, the tax point, the exchange rate and the office's limits for simplified documents and cash. The table on this page lists each one with what it flags.

Two ways

Build it yourself, or have it built

  • Build it yourself

    Build your app on the framework

    Get the codebase these apps stand on and build yours with Claude Code, Cursor or Codex.

    One payment, lifetime updates

    Get the framework
  • Have it built

    Have us build your app

    Tell us how your team works. We plan the app with you and build it on the same framework at a fixed price.

    After launch, Care keeps it improving, from €99 a month.

    from €1,990

    Describe your app