MiniCTRMSearch

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.

Before you start

The lessons this one builds on: 612 Operations: confirms, invoices and operational events, 613 Treasury and accounting: the cash ladder, postings and month-end, 623 Integrations: CSV in and out, feed adapters and the API, 632 Robustness: transactions, one door per write, validation, retries, the activity log.

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 / 12
The back office's day ends at the bank
Why MiniCTRM's cash ladder stops at Invoiced

Not in MiniCTRM today: MiniCTRM's decision

2 / 12
Not in MiniCTRM today: MiniCTRM's decision
What you need first

What you need first

3 / 12
What you need first
Three states of a payment

Expected, Invoiced, Settled - and a bucket

4 / 12
Expected, Invoiced, Settled - and a bucket
Bank accounts and daily balances

Bank accounts and daily balances

5 / 12
Bank accounts and daily balances
A settlement confirmation

A settlement confirmation as an operational event

6 / 12
A settlement confirmation as an operational event
The overdue bucket

The overdue bucket, and a warning that changes no number

7 / 12
The overdue bucket, and a warning that changes no number
The bank statement

The bank statement import and matching

8 / 12
The bank statement import and matching
Ship it

Ship it

9 / 12
Ship it
How MiniCTRM did it

The Cash Ladder, with nothing of settlement

10 / 12
The Cash Ladder, with nothing of settlement
How MiniCTRM did it

Invoicing: Expected to Invoiced, and Not yet

11 / 12
Invoicing: Expected to Invoiced, and Not yet
What you have now

What you have now

12 / 12
What you have now

You have finished lesson 741, Settlement and bank accounts: confirmations, balances and the overdue bucket.

Where next?

← → move · N notes · Home / End