MiniCTRM - Build Tutorial 741: Settlement and bank accounts: confirmations, balances and the overdue bucket
→ to begin · N for the speaker notes
On a phone: Next or a swipe left to begin, Notes for the words.
What you'll learn
Bank accounts with daily balances the cash ladder starts from, a settlement confirmation as an operational event keyed on the payment row so every payment reads Expected, Invoiced or Settled, an overdue bucket on the cash ladder with aging and a warning line on Credit Exposure, and a bank statement import matched to payments with every difference explained.
Why MiniCTRM's cash ladder stops at Invoiced
What you need first – The four lessons this one builds on, what it reuses unchanged, and where a from-scratch build takes it.
Three states of a payment – Expected, Invoiced and Settled, who sets each, and Overdue as a bucket that is not a state.
Bank accounts and daily balances – An account per entity, bank and currency; a balance per account and day; the ladder starts from the bank.
A settlement confirmation – An operational event keyed on the payment's meaning, through its own service and privilege pair; partial settlements; the state read from the rows.
The overdue bucket – Past the value date plus grace and not settled: a bucket at the front of the ladder with aging, and a warning on Credit Exposure that changes no number.
The bank statement – One layout, an adapter script per bank, matching by rules, unmatched lines by hand, a balance that fails closed, and the rules in CLAUDE.md.
Ship it – /ship, with the settlement tests among the rest.
How MiniCTRM did it – The Cash Ladder with its typed opening balances and no settlement, and Invoicing from Draft to Void.
Copyright 2026-2027 Brian Shydlo. MiniCTRM is source-available under the PolyForm Strict License 1.0.0 (https://polyformproject.org/licenses/strict/1.0.0): free for learning and other noncommercial use; no changes and no redistribution; commercial use needs permission.
Welcome
The back office's day ends at the bank
1 / 12Why MiniCTRM's cash ladder stops at Invoiced
Not in MiniCTRM today: MiniCTRM's decision
2 / 12What you need first
What you need first
3 / 12Three states of a payment
Expected, Invoiced, Settled - and a bucket
4 / 12Bank accounts and daily balances
Bank accounts and daily balances
5 / 12A settlement confirmation
A settlement confirmation as an operational event
6 / 12The overdue bucket
The overdue bucket, and a warning that changes no number
7 / 12The bank statement
The bank statement import and matching
8 / 12Ship it
Ship it
9 / 12How MiniCTRM did it
The Cash Ladder, with nothing of settlement
10 / 12How MiniCTRM did it
Invoicing: Expected to Invoiced, and Not yet
11 / 12What you have now
What you have now
12 / 12
You have finished lesson 741, Settlement and bank accounts: confirmations, balances and the overdue bucket.