# Bank lines matched to the documents they paid

Each line of this morning's bank statements carries the document it most likely paid, how sure the match is in a word and the reasons behind it. A payment smaller than what is left to pay is a part payment, and the line says what will stay open. One action in the header confirms the certain matches, and the rest are confirmed line by line.

Checked 2 December 2026. By Bohuslav Poláček. https://meadowstack.com/screens/bank-reconciliation/

*Kestrel's bank lines rendered from the kit's own components when the site was built: six payments waiting for a confirmation, each with its suggestion.*

A live screen, rendered from the kit's components on the page: https://meadowstack.com/screens/bank-reconciliation/

Open it in the live demo: https://meadowstack.com/demo/?lang=en#/kestrel/doklady/banka

From the example app [An app for an accounting office](https://meadowstack.com/examples/accounting-office-documents/).

## What the screen shows

- **The lines that wait**: To confirm, the first of four views (To confirm, No document, Handled, All), with the payments from the statements imported this morning, newest first. Each shows the counterparty as the bank wrote it, the client, the day, the account, the reference and the amount with a real minus.
- **The suggestion**: the document the payment most likely paid, a glyph and a word for how sure the match is (certain, likely, possible) and the reasons in plain words, such as "same payment reference, account from the document and supplier's name".
- **Part payments**: the line says how much of the document it pays and what will be left; a payment of the rest says what was left before it.
- **The actions**: Confirm on each line, and the menu beside it for the rest: match by hand from the client's open documents, turn the suggestion down, or say that no document will come, for a fee or a private payment. The header's one action confirms every certain match and says how many there are.

## Why a part payment is never certain

The rules are one pure function in the module's domain (`matching.ts`) that the api and the page share. The signals, strongest first: the same payment reference, the account the document asks to be paid to, the amount still to pay, the supplier's name in the bank's text. A certain match needs the reference plus the amount or the account. A part payment stops at likely, because somebody should see that the document stays open for the rest, and a suggestion somebody turned down is not offered again.

Every confirmation changes the list at once, goes into the history of the line and of the document ([audit trail](https://meadowstack.com/patterns/audit-trail/)), and its toast has Undo. With one client chosen, the client's account stands above the lines: the bank, the masked IBAN to reveal or copy, this morning's closing balance and how many lines still wait.

## What AI tools tend to get wrong here

A generated reconciliation screen usually sets two tables side by side, bank lines and invoices, gives each pair a match score in percent and offers a button that matches everything above a threshold. A percentage does not say why, and a threshold confirms part payments as if they were whole. Here the suggestion sits on the bank line with its reasons in words, the level comes from named signals, and the one bulk action takes only the certain matches.

The screen is the kit's index archetype ([list](https://meadowstack.com/patterns/list/)): one primary action in the header and the views in the one row under it, since the audit's `segmented-in-header` rule fails a `SegmentedControl` inside a screen's header. Bank statements are for the people who keep the books: the assistant, who records the documents that come in, sees `NoAccess` under the title ([permissions](https://meadowstack.com/patterns/permissions/)).

## How sure a suggestion is

*The levels as the documents module computes them (domain/matching.ts in the demo). The supplier's name is shown among the reasons but never changes the level.*

| Suggestion | When the rules give it | What a person does |
| --- | --- | --- |
| Certain match | The payment reference, plus the amount still to pay or the account the document asks to be paid to | Confirms it on its line, or with every other certain match through the header's action |
| Likely match | The amount still to pay and the account without the reference, or a part payment with the reference | Confirms it on its line |
| Possible match | The amount still to pay without the reference or the account, or a part payment with only the account | Confirms it on its line |
| No suggestion | Neither the amount still to pay nor a part payment with the reference or the account behind it | Matches it by hand from the client's open documents, or marks it as a payment no document will come for |

## Questions

### Does the app confirm matches by itself?

No. Every match waits for a person: Confirm on its line, or the header's action, which confirms every certain match at once and says how many there are.

### How is a part payment handled?

A payment smaller than what is left to pay, with the payment reference or the account behind it, is a part payment. It is never a certain match, the line says what will be left, and the document stays open for the rest.

### What if a payment has no document?

The menu beside Confirm matches it by hand from the client's open documents, turns the suggestion down, or marks it as a payment no document will come for, such as a bank fee. A line still without a document leads to the client's reminders.

### Who can see the bank lines?

The people who keep the books. The assistant, who records documents as they come in, sees a no-access notice under the title, and a client sees in their portal only the payments of their own account that still need a document.

### Where do the bank lines come from?

From the clients' bank statements, imported every morning as ABO or CAMT.053 files. The header says which format came and when.

## Related

- [An app for an accounting office](https://meadowstack.com/examples/accounting-office-documents/) (Example app)
- [A month close that knows what each step waits for](https://meadowstack.com/screens/month-end-close/) (Screens)
- [A document inbox that catches a changed bank account](https://meadowstack.com/screens/document-inbox/) (Screens)
- [A driver record that says what expires next](https://meadowstack.com/screens/driver-record/) (Screens)
- [A fleet cost report that ranks every truck](https://meadowstack.com/screens/fleet-costs/) (Screens)
- [A kitchen's food safety day, kept by the clock](https://meadowstack.com/screens/food-safety-checks/) (Screens)
