DODIL BLOG
DocsLog inSign up

Modules / Payments

Payments & collections

Record what customers pay (typed in or straight from the bank statement), match it to the invoices it settles, refund what is owed back, and chase what is late, so "who owes us what" is always one true answer.

People ask for it as: “record a payment”, “who has paid”, “match the bank statement to invoices”, “chase late payers”, “refund the customer”, “statement of account”, “bank reconciliation”, “bank charges”, “direct debit”, “petty cash”, “paying in cheques”, “cash flow forecast”, “early payment discount taken”, “remittance advice”

Who uses it

RoleDoesSees
Whoever records money (bookkeeper, office manager)records receipts, imports the bank statement, allocates receipts to invoices, requests refundsevery receipt and every open invoice
Whoever chases moneyworks the overdue list, records promises and disputes, sends or approves remindersevery open invoice and its history
Owner / finance managerapproves refunds, sets credit limits and holds, sets the reminder policy, holds the controls on the cashier (tolerance, auto-matching, holds, time zone), signs the migration's reconciliation; v3 - keeps house banks and bank accounts, the reconciliation rules, approves direct-debit runs and cash differences, reads the cash positioneverything
The customerpays, sends a remittance advice, promises or disputestheir own statement and reminders
The systemimports statement lines, derives settlement and aging, suggests matches, runs the daily collections pass (reminders when told to, lapsed promises), takes allocations from invoicing, derives credit holds, runs the one-off Odoo migration; v3 - takes a bank feed, suggests statement-line matches, applies auto rules the owner allowed, collects direct debits on the entry day, posts realised FX differenceseverything, through its own service account (one service client per job, each with only its exact grants)

What it has to do

Reference user stories. Each has a test written into it — the given / when / then — which becomes an automated check once it is built. Expect to keep some, change some and drop some.

Things people do

  • PAY-01As the person recording money, I want to record a receipt with its date, amount, currency and reference, so that the money is on the customer before I decide what it pays.

    Given a customer with bp_id 7311 and three open invoices · when I record 10,000.00 GBP received 2026-11-20 by bank transfer, reference "INV-2026-0041 0042" · then a receipt exists, unallocated; the customer's open items show it as unallocated cash; recording it again with the same bank reference is refused as a duplicate; a received_on after today (business_timezone) is refused, because money not yet received is not a receipt; a wrong amount is corrected by reversing the receipt and recording the right one, never by editing it

    Whoever records money (bookkeeper, office manager) · screen: Receipts · reference: implemented (ar-core, as AR-05's receipt)

  • PAY-02As the cashier, I want to import the bank statement, so that every receipt is recorded from the bank, not typed.

    Given a camt.053 (or CSV) statement with 42 credit lines, 3 of them already imported last week · when I import it · then 39 new receipts keyed payment_id = "bank:<account>:<statement entry ref>", each dated by the bank's booking date; the 3 are recognised and skipped; lines dated before statement_import_from (the migration's cut-over) are skipped as already migrated. v3: every line of the statement, debit or credit, is also kept as a statement line and reconciled in PAY-21 (this replaces v2's "debit lines are left for the ledger's bank reconciliation"); a credit whose counterparty account is one of our own bank accounts, or that a reconciliation rule names (interest, a supplier's refund), is not made a customer receipt; MT940 is read as well as camt.053 and CSV

    Whoever records money (bookkeeper, office manager) · screen: Receipts · reference: not built

  • PAY-03As the cashier, I want one receipt to settle several invoices, so that a customer paying three bills with one transfer is handled properly.

    Given a receipt of 10,000.00 and invoices of 4,000.00, 3,500.00 and 3,000.00 · when I allocate it across them · then 4,000.00 and 3,500.00 are paid, 2,500.00 goes to the third, which keeps 500.00 outstanding, and 0.00 is left unallocated; every allocation is dated today (business_timezone), never earlier; allocating more than the receipt's remainder or more than an invoice's outstanding is refused, naming both figures

    Whoever records money (bookkeeper, office manager) · screen: Receipts · reference: implemented (ar-core, AR-05)

  • PAY-04As the cashier, I want a difference within tolerance (a bank charge, a rounding) to close the invoice, so that 1.50 short does not stay on the chase list for ever.

    Given a tolerance of 2.00 and a receipt of 998.50 against an invoice of 1,000.00 · when I allocate it · then 998.50 allocates, and the 1.50 is proposed as a write-off to invoicing (AR-09) within the threshold; above the tolerance the difference stays outstanding

    Whoever records money (bookkeeper, office manager) · screen: Receipts · reference: not built

  • PAY-05As the cashier, I want money that pays nothing yet to stay on the customer as credit, so that it is used against the next invoice.

    Given an unallocated 500.00 on a customer · when their next invoice of 800.00 issues and I allocate the credit · then 500.00 allocates to the new invoice; 300.00 outstanding; the credit is never applied across currencies

    Whoever records money (bookkeeper, office manager) · screen: Receipts · reference: not built

  • PAY-06As the cashier, I want to undo an allocation with a reason, so that a mistake is corrected without deleting history.

    Given a receipt allocated to the wrong invoice · when I unallocate it with the reason "wrong invoice" · then a reversing allocation row (negative, same source, dated today, naming the row it reverses) is added; both are kept; the invoice's outstanding rises back from today; a statement already sent for an earlier date still re-computes to what it said

    Whoever records money (bookkeeper, office manager) · screen: Receipts · reference: not built

  • PAY-07As the cashier, I want a returned payment (a bounced direct debit, a recalled transfer) reversed, so that the invoices it paid are owed again.

    Given a receipt of 1,200.00 allocated to two invoices · when the bank returns it and I record the return · then the receipt is reversed on the bank's return date (today or earlier, not before it was received), its allocations are reversed with it by reversing rows, both invoices are outstanding again, and the reversal posts in the ledger

    Whoever records money (bookkeeper, office manager) · screen: Receipts · reference: not built

  • PAY-08As the cashier, I want to refund a customer's overpayment or credit, so that money owed back goes back with an approval.

    Given a customer with 300.00 unallocated credit · when I request a refund of 300.00 to their bank account and the approver approves, then I record it paid with the bank reference · then the refund is allocated against the credit (source_kind refund), the customer's credit is 0.00, the refund posts in the ledger on the bank's payment date (today or earlier, not before the approval); refunding more than the credit is refused; nobody approves their own refund

    Whoever records money (bookkeeper, office manager) · screen: Refunds · reference: not built

  • PAY-09As the person chasing money, I want one list of what is overdue and by how long, so that I know who to call this morning.

    Given invoices past their due date · when I open the overdue list · then I see them in the configured aging buckets (0-30, 31-60, 61-90, 90+), aged from the basis the business chose, with customer, outstanding, age, last contact, and the AI's late-payment risk when it is on

    Whoever chases money · screen: Collections · reference: implemented (ar-core, AR-06)

  • PAY-10As the collector, I want to record what a customer promised or disputed, so that the next person picking it up is not starting again.

    Given a customer with several overdue invoices · when I log one promise to pay on 2026-12-05 covering all of them · then it is recorded once against the customer, shows on each invoice, and suppresses reminders until that date; a promise dated today or earlier is refused; a dispute suppresses them until it is resolved

    Whoever chases money · screen: Collections · reference: implemented (ar-core, AR-07)

  • PAY-11As the collector, I want to send a customer a statement of everything open, so that they can reconcile their side.

    Given a customer with open invoices, credit notes and unallocated receipts · when I produce an open-item statement as at 2026-11-30 · then it lists every document unsettled at the end of 2026-11-30 (documents and allocations dated on or before it) with a closing balance equal to their sum, and records that it was sent; produced again later for the same date it shows the same balance, whatever was allocated since

    Whoever chases money · screen: Collections · reference: implemented (ar-core, AR-08)

  • PAY-12As the owner, I want a customer put on hold when they are far enough past due or over their limit, so that we stop taking orders from someone who is not paying.

    Given a credit limit of 20,000.00 and a hold rule "any invoice over 60 days" · when a customer has an invoice 61 days overdue · then the hold is derived and shown with its reason to sales-order and to sales; releasing it early is my act, recorded with a reason and an end date after today, effective from the moment it is recorded, never earlier; a new credit limit takes effect from tomorrow at the earliest, so what the limit WAS on any date stays answerable

    Owner / finance manager · screen: Credit · reference: not built

    Usually different per customer: whether limits exist at all; many small businesses want the warning without the block

  • PAY-13As the owner, I want the controls on the people who record money held by me, so that the cashier cannot widen their own tolerance or switch on automatic matching.

    Given a cashier holding pay:settings:write and an owner holding pay:settings:controls · when the cashier tries to raise match_tolerance from 2.00 to 50.00, then the owner does · then the cashier is refused, naming the permission; the owner's change applies to allocations made from now on and none already made; who changed it, from what, to what and when is recorded

    Owner / finance manager · screen: Settings · reference: not built

  • PAY-14As the cashier, I want to accept, change or reject the suggested match, so that nothing is allocated without a person deciding, and the record says what the AI proposed and who agreed.

    Given a suggestion (PAY-32) to allocate a 7,500.00 receipt to INV-2026-0041 and INV-2026-0042, confidence 0.97 · when I accept it; on another receipt I change one invoice before accepting; on a third I reject it · then the allocations cite the suggestion, its confidence and me as the one who accepted; the changed one records both what was proposed and what I chose; the rejected one allocates nothing and stays unallocated; in mode auto-with-review, the exact matches the system allocated are listed for me to confirm or undo (PAY-06) the same day

    Whoever records money (bookkeeper, office manager) · screen: Receipts · reference: not built

  • PAY-15As the owner moving off Odoo, I want the migrated receipts and allocations reconciled to Odoo per customer, with every difference explained, so that I can sign that what we are owed is the same on both sides.

    Given the migration (PAY-44) has loaded a test copy of the bucket from the Odoo database · when I open the reconciliation · then every check under migration.reconcile shows Odoo's figure, ours and the difference, per customer and currency; a check that must equal and does not blocks the sign-off; an explained difference names its reason; I sign it (pay:migration:sign) and the signature records the figures it signed

    Owner / finance manager · screen: Migration · reference: not built

  • PAY-16As the cashier, I want a customer who paid early to get the discount the terms promised, with the VAT corrected, so that their invoice closes without a short payment on the chase list.

    Given invoice INV-2026-0090 of 1,200.00 (1,000.00 + 200.00 VAT) issued 2026-11-02 with terms 2/10 net 30 (the discount until 2026-11-12, frozen on the invoice); a receipt of 1,176.00 received 2026-11-10 · when I allocate it · then 1,176.00 allocates, and the 24.00 difference is offered as the settlement discount (gate within_discount_window: received_on, the bank's date, on or before the invoice's settlement_discount_until; gate discount_matches_terms: exactly the percentage of the gross outstanding at receipt); applying it asks invoicing for the discount credit (ar AR-38: 20.00 + 4.00 VAT at the invoice's rates), which is then allocated, so the invoice is paid; under settlement_discount_vat invoice_wording the 24.00 is an allocation with source_kind settlement_discount instead, which tax reads for the return; a receipt dated 2026-11-13 gets no discount and the 24.00 stays outstanding (or goes to the tolerance, PAY-04)

    Whoever records money (bookkeeper, office manager) · screen: Receipts · reference: not built

  • PAY-17As the cashier, I want to load a customer's remittance advice or the bank's lockbox file, so that a large payment covering forty invoices is allocated from their list, not by searching.

    Given a receipt of 48,210.00 from a retailer; their remittance file (CSV, or ISO 20022 camt.054 with structured remittance, or a BAI2 lockbox file from a US bank) listing 40 invoice numbers, 2 deductions with reasons, and amounts · when I import it · then remittance lines kept (keyed [remittance_id, line_no]) and linked to the receipt by amount, date and payer; a proposed allocation per named invoice is opened as a match suggestion with model "remittance" (not AI), which I accept, change or reject as in PAY-14; a deduction line becomes a dispute on its invoice (PAY-10) with the customer's reason, never a write-off; an invoice number we do not know is listed, not guessed; a lockbox file whose items are the bank's own record creates the receipts itself (keyed "lockbox:<account>:<batch>:<item>"); importing the same file again adds nothing

    Whoever records money (bookkeeper, office manager) · screen: Receipts · reference: not built

  • PAY-18As the cashier, I want a customer's Direct Debit Instruction recorded and lodged with Bacs, so that we can collect their invoices on the due date.

    Given customer 7311 completes a DDI online: sort code 20-00-00, account 12345678, our Service User Number 123456 on house bank BARC-01 · when I record the mandate · then a mandate keyed by its reference (unique per SUN, 6-18 characters, e.g. DOD-7311-01) with the bank details stored masked except in the Bacs file, pending until lodged: the next submission carries it as AUDDIS 0N; with no AUDDIS rejection it is active; a rejection (e.g. "no account") records the reason and leaves it unusable; cancelling sends 0C; the payer is sent the DDI confirmation and the Direct Debit Guarantee; a mandate with no collection for 13 months is dormant and needs a new instruction

    Whoever records money (bookkeeper, office manager) · screen: Direct debits · reference: not built

  • PAY-19As the cashier, I want a direct-debit run that collects what is due from customers with active mandates, so that subscription invoices are paid on the day without anyone typing a payment.

    Given three customers with active mandates and invoices due on or before collection date 2026-12-01 (a working day); advance notice of 10 working days (or the 3 agreed in the DDI terms) · when I prepare the run, the approver approves it, the notices go, and I submit the file · then one run keyed "dd:<bank_account_id>:<collection_date>" naming each invoice; advance notices sent no later than the notice period before the collection date, else the invoice waits for the next run (gate advance_notice); the file is Bacs Standard 18 with transaction code 01 for a first collection, 17 regular, 19 final (SEPA pain.008 for a EUR account), kept as an object; on the entry day (collection date) each collection becomes a receipt keyed "dd:<run>:<mandate>" dated the collection date and allocated to its invoices with decided_how direct_debit; the approver may not be the preparer; a run already submitted is never rebuilt

    Whoever records money (bookkeeper, office manager) · screen: Direct debits · reference: not built

  • PAY-20As the cashier, I want the bank's unpaid direct-debit report and mandate amendments applied, so that a bounced collection is owed again and a cancelled mandate is never collected.

    Given the run of 2026-12-01; an ARUDD report with one collection returned reason 0 (refer to payer) and one reason 1 (instruction cancelled); an ADDACS report with one account transferred (C) to new details · when I import the reports · then each returned collection reverses its receipt by PAY-07 (the return dated by the report, the reason recorded), so its invoices are owed again; reason 0 may be re-presented once with code 18 in a later run, reason 1 cancels the mandate; the ADDACS C updates the mandate's details from its date; a DDICA indemnity claim reverses the collection and marks the mandate disputed; every report line is applied once (keyed by the report's reference and line)

    Whoever records money (bookkeeper, office manager) · screen: Direct debits · reference: not built

  • PAY-21As the cashier, I want every line of the bank statement reconciled, debits as well as credits, so that the bank balance in the books is the bank's.

    Given November's camt.053 for account BARC-01: 42 customer credits (receipts), 6 supplier payments from purchasing's run, one transfer of 20,000.00 to our deposit account, the HMRC VAT direct debit of 31,350.00, bank charges of 12.50, interest received of 3.21, a paying-in of 4 cheques · when I reconcile it · then each line ends matched or posted, never deleted: customer credits to their receipts; supplier payments to purchasing's payments (which confirms them, PUR-29); the transfer to the matching credit on the deposit account (PAY-25); the HMRC debit to tax's liability for 26AD; charges and interest posted by rule (PAY-24); the paying-in to its deposit batch (PAY-28); a line with no match stays open with the AI's suggestion (PAY-22); the statement is reconciled only when every line is (PAY-34); undoing a match is a recorded reversal with a reason

    Whoever records money (bookkeeper, office manager) · screen: Bank reconciliation · reference: not built

  • PAY-22As the cashier, I want a suggested match or account for each line nobody has matched, so that I confirm rather than investigate, and nothing is booked without me.

    Given an open debit "AMZN MKTP UK 45.99" with no rule · when the AI suggests "office supplies, account 7500, tax code S, a receipt image needed" from the payee and past postings, and I accept it, change the account, or reject it · then the suggestion is a row with its evidence, confidence and model; accepting posts the line with the account and tax code I confirmed (the VAT computed by tax with direction purchase, reclaimable only with a VAT receipt attached), decided_how accepted | changed and me as the decider; rejecting leaves the line open; the AI never posts; its suggestions are the eval set

    Whoever records money (bookkeeper, office manager) · screen: Bank reconciliation · reference: not built

  • PAY-23As the owner, I want reconciliation rules for the lines that recur (charges, interest, standing orders), so that the cashier reconciles the unusual ones and the books stay consistent.

    Given a rule "debit, text contains SERVICE CHARGE, account BARC-01 -> account 7900 bank charges, tax code E, mode suggest" · when I save it, and later switch it to auto · then the rule is a dated row (from tomorrow); in suggest mode a matching line gets the rule's proposal for the cashier to accept; auto mode needs pay:settings:controls and posts the line with decided_how auto, listed for the cashier to confirm or undo the same day; a rule never matches a line to a customer's invoice (receipts go through allocation); two rules matching one line are both shown, neither applied automatically

    Owner / finance manager · screen: Bank reconciliation · reference: not built

  • PAY-24As the cashier, I want bank charges, card fees and interest posted from their statement lines, so that the expense and the income are in the books on the bank's date.

    Given lines: charges 12.50 (debit), card-terminal fees 38.20 (debit), interest received 3.21 (credit) · when they are posted by rule or by me · then one journal per line dated by the bank's booking date (a document-dated fact): bank charges / bank 12.50 (tax code E), card fees / bank 38.20 (E), bank / interest income 3.21 (no VAT), journal id derived from the statement line, so posting twice changes nothing; the account comes from the rule or the person, never a default; a posted line is undone only by a reversing journal with a reason

    Whoever records money (bookkeeper, office manager) · screen: Bank reconciliation · reference: not built

  • PAY-25As the cashier, I want a transfer between our own accounts matched on both statements, so that money in transit is neither lost nor counted twice.

    Given a debit of 20,000.00 on BARC-01 on 2026-11-14 to account BARC-02, and the credit on BARC-02 on 2026-11-15 · when the statements are reconciled · then the two lines are matched as one transfer (counterparty account, amount and currency equal, dates within transfer_window_days); each posts on its own date through the transfer clearing account (BARC-01 -> clearing on the 14th, clearing -> BARC-02 on the 15th), so clearing is zero once both arrive and shows the money in transit between; a debit with no credit yet stays as in transit, listed; amounts in different currencies are never matched as one transfer

    Whoever records money (bookkeeper, office manager) · screen: Bank reconciliation · reference: not built

  • PAY-26As the person with the petty cash or the till, I want a cash journal that is counted and closed each day, so that cash in the drawer and in the books agree.

    Given cash journal PETTY-UK01 in GBP with an opening balance of 200.00; today a customer pays 50.00 in cash, I buy stamps for 12.00 (no VAT) and cleaning materials for 24.00 including 4.00 VAT with a receipt · when I record the entries, count 214.00 and close the day · then the customer's 50.00 is a receipt (method cash) allocated like any other; the expenses post to their accounts with the VAT computed by tax (direction purchase, reclaimable only with the receipt image kept); the expected balance is 214.00, counted 214.00, difference 0.00; a difference posts to cash over/short and needs the approver above cash_difference_threshold; a closed day refuses entries; entries are dated today (business_timezone), never later, and never in a closed day; a deposit to the bank is a transfer matched on the statement (PAY-25)

    Whoever records money (bookkeeper, office manager) · screen: Cash journal · reference: not built

  • PAY-27As the finance manager, I want our banks and every account we hold recorded per company, so that receipts, payments and direct debits use the right account and the invoice shows where to pay.

    Given companies UK01 and UK02; Barclays (house bank BARC, sort code 20-00-00, SUN 123456) holds UK01's GBP current, GBP deposit and EUR accounts; Lloyds holds UK02's GBP current · when I record them and make the GBP current account UK01''s default for receipts in GBP · then house banks and bank accounts (bank_account_id, company_code, currency, purposes receive | pay | dd_collect, the ledger account, IBAN and BIC, account number shown masked); one default receiving account per (company, currency) as a dated row from tomorrow; invoicing prints the default's details (PAY-47); a statement for an account never posts to another company; an account is closed from a date after today and keeps its history; purchasing pays out of the accounts with purpose pay

    Owner / finance manager · screen: Settings · reference: not built

  • PAY-28As the cashier, I want the cheques I pay in together recorded as one deposit, so that the single bank credit matches them and each cheque still pays its own invoices.

    Given four cheques received 2026-11-18 for 1,200.00, 800.00, 450.00 and 2,050.00 · when I add them to a deposit batch, close it with paying-in slip 004512, and the statement shows one credit of 4,500.00 · then each cheque is a receipt (method cheque) allocated to its invoices; the batch keyed "dep:<bank_account_id>:<slip>" totals 4,500.00; the statement line matches the batch, not the cheques, and is not made a receipt again; a bounced cheque later reverses its own receipt (PAY-07) and leaves the batch matched; a batch whose total differs from the line is never matched

    Whoever records money (bookkeeper, office manager) · screen: Receipts · reference: not built

  • PAY-29As the owner, I want today's cash position and a 13-week forecast, so that I see a shortfall before it happens.

    Given bank balances from the latest statements, open invoices with customers' payment habits, a direct-debit run on 2026-12-01, supplier bills due, the VAT return 26AD due 2027-02-07 and CIS due on the 22nd · when I open Cash position · then per currency (never summed across currencies): today's position (each account's latest closing balance plus unreconciled entries); then per week, expected receipts (open invoices by due date shifted by the customer's average days late over the last 12 months, direct debits on their collection dates, payment requests), expected payments (purchasing's open bills by due date and approved runs, the VAT and CIS liabilities from tax), and the running balance; each figure drills to its documents; derived on read, a snapshot kept only when I save one

    Owner / finance manager · screen: Cash position · reference: not built

  • PAY-51As the finance manager, I want money another module owes a person (an approved expense claim) paid out from our bank in a payout run, approved by me, so that a reimbursement is paid once, to the right account, and the module that asked knows it was paid.

    Given expense claim UK01-EXP-2026-00042 rev 1 approved for 352.40 GBP to Jane Doe (person partner 9001, person P-77); her bank details held by hr; paying account BARC-01 · when expenses calls POST /payouts (payout_ref exp:UK01-EXP-2026-00042:r1:pay) twice; I approve it; the cashier exports the payout run of 2026-11-12; the statement of 2026-11-13 shows the debit · then one payout keyed payout_ref, requested, then approved by me (I am not the payee, matched on email AND sub, and not the cashier who exports it); export writes a pain.001 (or Bacs Standard 18) file of the approved payouts of BARC-01 for that date, the payee's account read from hr at export (GET /persons/P-77/bank-account, payments' client only, never shown on a screen nor stored outside the file object); the matched debit (or the cashier's bank_ref and date, today or earlier) makes it paid and posts employee_payable 352.40 / bank 352.40 (event payout, journal derived from the payout_ref); after commit payments calls expenses' POST /reports/UK01-EXP-2026-00042/paid {payout_ref, payment_id, paid_on 2026-11-13, amount 352.40} and retries until it answers 2xx; a payout the bank returns is returned (the journal reversed, event payout_return) and the requester is told nothing paid; a requested or approved payout may be cancelled by its requester (POST /payouts/{payout_ref}/cancel) or by me with a reason, never once exported

    Owner / finance manager · screen: Payouts · reference: not built

Things that happen on their own

  • PAY-30on read (derived)The system works out what is still outstanding on each invoice whenever anyone looks, so that "paid" is never stale and no job can be missed.

    Given an invoice of 1,000.00 with a 400.00 receipt and a 100.00 credit note allocated · when anyone opens it, the overdue list or a statement · then 500.00 outstanding, part paid, in the bucket its age falls in; all computed from the invoice total (invoicing's read route) and SUM(allocations); no stored paid flag

    · reference: implemented (ar-core, AR-10)

  • PAY-31daily, for customers with reminders onThe system sends (or drafts) a reminder at each level the business set, so that chasing does not depend on someone remembering.

    Given an invoice 7 days overdue, levels at 7, 14 and 30 days, reminder mode suggest · when the daily pass runs, twice · then one level-1 reminder draft for the collector, keyed (invoice, level), so the second pass adds nothing; in mode auto it is sent; in mode off nothing happens; a promise or dispute suppresses it

    · reference: not built

  • PAY-32when a receipt is recorded or importedThe system suggests which invoices a receipt pays, so that the cashier confirms rather than searches.

    Given a receipt of 7,500.00 with reference "INV41 + INV42" and open invoices INV-2026-0041 (4,000.00) and INV-2026-0042 (3,500.00) · when it is recorded · then a suggestion row (pay_match_suggestion) proposing both, with the evidence (reference text, exact sum), a confidence and the model that made it; nothing is allocated until the cashier decides (PAY-14), unless the mode is auto-with-review and the match is exact, and then the allocation records that the system made it from that suggestion and the day's list asks a person to review it

    · reference: not built

  • PAY-33when an allocation (or its undo) links a receipt and an invoice whose rates to the functional currency differThe system posts the realised exchange difference when a foreign-currency invoice is paid, so that the receivable in sterling clears to zero.

    Given an invoice of EUR 1,000.00 issued at 0.8500 (GBP 850.00) and a receipt of EUR 1,000.00 received at 0.8600 (GBP 860.00, the ledger's rate on received_on, kept on the receipt) · when the receipt is allocated to the invoice · then a journal {source_document "alloc:<payment_id>:<invoice_id>:<seq>", event fx}: receivable 10.00 / fx_gain 10.00 (a loss the other way), dated the allocation date, posted once; the invoice's functional receivable is then zero; undoing the allocation posts event fx_reversal; a same-currency functional allocation posts nothing; the rates are the invoice's frozen rate (invoicing's totals route) and the receipt's rate, never re-read later

    · reference: not built

  • PAY-34when a statement is imported, and when its last line is reconciledThe system checks each statement balances and joins the one before, and that the books agree with the bank, so that a missing or doubled statement is caught.

    Given statement 2026-11 for BARC-01 with opening 52,400.10 and closing 61,035.77; October's closing was 52,400.10 · when it is imported and reconciled · then opening + SUM(lines) = closing exactly, or the import is refused naming the difference; its opening must equal the previous statement's closing (gate statement_continuous) or a gap is named; once every line is reconciled, the ledger balance of the account's gl account at the closing date (gl's account balance route) equals the closing balance, or the difference is shown with the unreconciled items; the statement is reconciled only then

    · reference: not built

  • PAY-35daily, when an open-banking feed provider is composedA bank feed delivers statement lines like a file, so that reconciliation runs on yesterday's transactions without anyone downloading anything.

    Given an account-information provider capability (UK Open Banking, read-only consent granted by the owner for 90 days) · when it posts the day's transactions · then the same import as PAY-02 (POST /statements/ingest with the lines and the booked balance), keyed by the bank's transaction id, so a line delivered twice or later in a file is one line; the consent's expiry is shown to the owner 7 days ahead; the provider never writes pay_ tables

    · reference: not built

Things that cross into other modules

  • PAY-40when invoicing, sales or sales-order asks for a balanceOther modules read settlement, open items and the credit status through payments' routes.

    Given invoicing listing invoices, sales-order confirming an order · when they call settlement(invoice_ids) or credit_status(bp_id) · then outstanding, state and age per invoice (as at a date, today by default); hold, reason and balance per customer, the hold also as a readiness gate {gate credit_ok, met, reason, fix} sales-order shows on confirm; never a read of pay_ tables

    · owned by payments · reference: not built

  • PAY-41when invoicing approves a credit note or a write-off (AR-30)Credit notes and write-offs allocate here, so that every reduction of a balance is in one table.

    Given an approved credit note of 100.00 against an invoice · when invoicing calls allocate(source_kind credit_note, source_id, invoice_id, amount) · then one allocation row; calling twice with the same (source, invoice, seq) adds nothing

    · owned by payments · reference: not built

  • PAY-42when a receipt, a reversal or a refund is recorded and the ledger is installedMoney in and out posts to the ledger.

    Given a receipt of 1,200.00 GBP to the bank account mapped to ledger account 1200 · when it posts · then bank 1,200.00 / receivable 1,200.00, journal_id derived from the payment_id, so re-posting changes nothing; a foreign-currency receipt posts the realised FX difference against the invoice's rate. v3: the body is the ledger's GL-30 shape {source_module: "payments", source_document: payment_id | refund_id | statement line id | cash entry id | "alloc:<payment_id>:<invoice_id>:<seq>", event: receipt | receipt_reversal | refund | bank_line | cash_entry | cash_difference | fx | fx_reversal, lines with purpose receivable (bp_id) or account_id (the bank account's gl_account_id)}; gl derives the id from (source_document, event); the FX difference is PAY-33

    · owned by gl · reference: partial: erp-brick-payments posts receipts, reversals and refunds in the GL-30 shape (wiring commit); the FX difference is not posted yet (PAY-33)

  • PAY-43when a card or direct-debit provider confirms a paymentA payment provider's confirmation is a receipt like a bank line.

    Given a provider capability installed (card or direct debit) · when it confirms a payment for an invoice · then a receipt keyed "provider:<provider>:<payment ref>", allocated to the invoice it was taken for; a duplicate notification adds nothing

    · owned by payments · reference: not built

  • PAY-44once, at the cut-over from Odoo (first into a test copy, then live)The migration loads Odoo's bank journals, customer payments, reconciliations, unreconciled bank lines and refunds as receipts, allocations and refunds, so that every open balance arrives with the history that explains it.

    Given an Odoo database read under migration.odoo.reads, and ar's migration already run (the invoices and credit notes exist, keyed by their Odoo numbers) · when the migration runs, then runs again · then rows as in migration.odoo.maps, each with origin "odoo:<model>:<id>", dated with Odoo's own dates (facts of the past, the one place back-dated rows are loaded) and never re-dated; the second run adds nothing (migration.odoo.idempotent_on); it writes through this module's use cases with pay:migration:import, never through the routes' person checks and never into ar_ tables

    · owned by payments · reference: not built

  • PAY-36when the cashier allocates a receipt to a down-payment request (ar AR-35)A receipt that pays a payment request settles it into a deposit invoice and pays that, so that VAT follows the money.

    Given request DPR-2026-0004 for 6,000.00; a receipt of 6,000.00 received 2026-11-20 · when I allocate the receipt to the request · then payments calls invoicing's POST /payment-requests/{request_id}/settle {payment_id, received_on, amount}, receives the deposit invoice id, and allocates the receipt to it (an ordinary allocation); a part payment settles a part; a retry settles once (invoicing keys on payment_id); the request itself never carries an allocation

    · owned by ar · reference: not built

  • PAY-45when a contractor customer pays our invoice net of a CIS deductionThe CIS a contractor customer deducted is allocated against our invoice and recorded with tax, so that the invoice is paid and the deduction is claimed back.

    Given our invoice of labour 2,000.00 (reverse charge, no VAT) to contractor 7311; a receipt of 1,600.00 and their payment and deduction statement showing 400.00 deducted, tax month ending 2026-12-05 · when I allocate the receipt and record the deduction with the statement reference · then the receipt allocates 1,600.00; payments calls tax's POST /cis/suffered, then allocates 400.00 with source_kind cis_deduction, source_id the statement reference, so the invoice is paid; tax refusing (more than 30% of the labour) leaves the 400.00 outstanding with tax's reason; the same statement recorded twice adds nothing

    · owned by tax · reference: not built

  • PAY-46when tax prepares a VAT return under cash accounting, or a bad-debt repaymentTax reads which receipts paid which invoices and when, so that cash accounting and bad debt relief are computed from the one allocation table.

    Given a business on cash accounting · when tax calls GET /cash-basis?from=&to= and GET /allocations?invoice_ids=&from= · then receipt allocations with the receipt's received_on and the allocation date, reversing rows included; never a read of pay_ tables

    · owned by payments · reference: not built

  • PAY-47when invoicing issues or renders an invoiceInvoicing prints our receiving bank account from payments, so that the account on the invoice is the one we reconcile.

    Given UK01's default GBP receiving account BARC-01 · when invoicing calls GET /bank-accounts/default?company_code=UK01&currency=GBP · then account name, sort code, account number (in full for printing, the caller holding pay:receipt:read), IBAN and BIC; no default answers 404 with {gate: receiving_account, fix: "Payments > Settings > Bank accounts"}

    · owned by payments · reference: not built

  • PAY-48when a statement debit is matched to a supplier paymentA supplier payment found on the statement confirms purchasing's payment, so that "paid" is the bank's word and nobody confirms it twice.

    Given purchasing's run paid Acme 4,200.00 from BARC-01 with reference PAY-RUN-0045-03 · when the statement debit is matched to it · then payments calls purchasing's POST /supplier-payments/{payment_id}/confirm with {bank_ref, paid_on (the booking date)}; a payment already confirmed by its clerk is matched without a second confirmation; a rejected payment (a credit returning it) is matched to the reversal; payments never writes pur_ tables

    · owned by purchasing · reference: not built

  • PAY-49when a shop seals a cash bag for the bank (pos POS-26)Another module hands over a cash bag it has sent to the bank, so that the single bank credit matches the bag and the cash in transit clears without anyone re-keying it.

    Given shop LON-SOHO seals bag 004513 with 1,240.00 GBP for BARC-SHOP-UK, expected on 2026-11-16; the statement of 2026-11-16 shows a credit of 1,240.00 and, a week later, one of 597.50 for bag 004514 sent as 600.00 · when pos calls POST /deposit-batches/expected twice for bag 004513, then the statement lines are matched · then one deposit batch keyed batch_ref "dep:pos:LON-SOHO:004513", kind cash, deposited, total 1,240.00, clearing purpose cash_in_transit (the repeat answers the same batch); the credit of 1,240.00 matches it and posts bank 1,240.00 / cash_in_transit 1,240.00 (journal derived from the batch_ref and event deposit_match, so posting twice changes nothing), and is never made a receipt; the 597.50 credit does not match bag 004514 (gate batch_total_equals_line) until an approver who is not the cashier accepts the 2.50 difference with a reason, which posts cash_over_short 2.50 (event deposit_difference); payments never writes pos_ tables

    · owned by payments · reference: not built

  • PAY-50when a shop closes a card terminal's batch (pos POS-26), and when the provider's payout reaches the bankAnother module tells payments what a card provider owes us for a day, so that the provider's net credit is matched, its fees are posted, and card clearing is empty when everything was paid.

    Given LON-SOHO's terminal batch T1-2026-11-14 with gross 2,310.40 GBP from provider ACQ1; the owner's card_fee_max_pct 2.50; the statement of 2026-11-17 shows a credit of 2,282.69 from ACQ1 for that day and LON-KX's 1,000.00 batch of the same day (a combined payout of 3,267.69) · when pos calls POST /card-settlements/expected for each batch, and the credit is matched · then two expected settlements keyed "card:pos:LON-SOHO:T1-2026-11-14" and "card:pos:LON-KX:T1-2026-11-14"; the one credit of 3,267.69 matches both (one provider, a credit may settle several expected settlements, never part of one); fees = 3,310.40 - 3,267.69 = 42.71 (1.29%, within 2.50%) split pro rata by gross, rounded once, the rest to the last; the journal: bank 3,267.69, card_fees 42.71 (tax code E, the fee being exempt), card_clearing 3,310.40 (event card_settlement); a credit whose fees exceed card_fee_max_pct leaves the settlements in state differs, shown on the bank reconciliation screen until an approver accepts the difference (to card_fees) or records a claim against the provider with a reason; a repeated expected settlement answers the same row

    · owned by payments · reference: not built

  • PAY-52when payroll approves a pay run (payroll PRL-12)Payroll hands payments one payout per payslip with the pay run as their batch, so that salaries are approved once as a batch, paid on the pay date in one Bacs file, and each payslip knows it was paid.

    Given run UK01-M-2026-27-M08: 46 payouts with batch_ref UK01-M-2026-27-M08, net 98,412.60, due_on 2026-11-30, paying account BARC-01; the finance approver F is payee of one of them (person 2190) · when payroll calls POST /payouts 46 times (and repeats them); F approves the batch; another approver approves F's payout; the cashier exports on 2026-11-26; the statement of 2026-11-30 shows the Bacs debit · then 46 payouts requested, a repeat answering the same; F''s approve_payout_batch approves the 45 of which F is not the payee (email AND sub) and leaves F''s own for another approver; export (approve by 2026-11-25 for a Bacs pay date of 2026-11-30, gate bacs_lead) writes one Bacs Standard 18 file for the batch with each payee''s account read from hr (HR-59, payments'' client only); the matched debit makes each paid and posts net_pay_payable / bank (event payout, journal per payout_ref); after commit payments calls payroll''s POST /pay-runs/UK01-M-2026-27-M08/payouts/{payout_ref}/paid {status paid, payment_id, paid_on, amount} and retries until 2xx; a payout the bank returns is returned and payroll is told with status returned; with the owner''s payout_auto_approve_sources naming payroll, the batch is approved by the request itself (approved_by "payroll")

    · screen: Payouts · owned by payments · reference: not built

How things move

receipt

received → reversed

  • none → received by customer · the money arrives in the bank or through a provider
  • none → received by cashier · when received_on today or earlier (business_timezone); the bank reference is not on another receipt · unallocated cash on the customer
  • none → received by system · when a statement was uploaded (camt.053 or CSV); the line is a credit dated on or after statement_import_from · keyed bank:account:entry, dated by the bank; a re-import adds nothing
  • received → received by system · when the receipt has unallocated money and the step is on · a suggestion row with its evidence, confidence and model; nothing allocated
  • received → received by cashier · when an open suggestion; the receipt and the invoices still have the amounts it proposed · allocation rows citing the suggestion and the person who accepted it; the suggestion closed as accepted, changed or rejected
  • received → received by cashier · when never more than the receipt's remainder or an invoice's outstanding; the same currency; dated today · allocation rows; settlement derived
  • received → received by cashier · when the difference is within match_tolerance · a write-off proposal to invoicing (AR-09)
  • received → received by cashier · when the row is not already reversed · needs reason · a reversing allocation row dated today; history kept
  • received → reversed by cashier · when the return date is today or earlier and not before received_on · needs bank_return_ref · its allocations reversed by reversing rows; the invoices are owed again
  • received → received by cashier · when received within the invoice's discount window; the difference is exactly the terms' discount · invoicing's discount credit allocated (ar AR-38), or an allocation source_kind settlement_discount under invoice_wording (PAY-16)
  • received → received by cashier · when tax accepts the deduction (at most 30% of the labour) · needs statement_ref · tax's CIS suffered recorded; an allocation source_kind cis_deduction (PAY-45)
  • received → received by cashier · when an issued request with something remaining · invoicing settles it into a deposit invoice; the receipt allocated to that invoice (PAY-36)
  • received → received by system · when an allocation whose receipt and invoice rates differ · receivable against fx_gain or fx_loss, keyed on the allocation (PAY-33)

refund

requested → approved → rejected → paid

  • none → requested by cashier · when the customer has unallocated credit at least the amount, in the refund's currency
  • requested → approved by approver · when the approver is not the requester; the credit is still at least the amount
  • requested → rejected by approver · needs reason
  • approved → paid by cashier · when paid_on today or earlier and not before the approval · needs bank_ref · allocated against the credit; posted in the ledger

collection

overdue → reminded → promised → disputed → resolved

  • none → overdue by system · when the due date passed with outstanding above zero
  • overdue / reminded → reminded by system · when reminders are on and a level is due · a draft in the collector's queue (suggest) or sent (auto)
  • reminded → reminded by collector · when mode suggest: a person sends the draft
  • overdue / reminded → promised / disputed by collector · when a promise date after today, or a dispute reason · a promise with a date, or a dispute with a reason
  • reminded → reminded by customer
  • promised → reminded by system · when outstanding above zero on the promised date
  • disputed → resolved by collector · needs outcome · a credit note in invoicing, or reminders resume
  • overdue / reminded / promised → resolved by system · when outstanding is zero (derived)

remittance

imported → applied

  • none → imported by cashier · when CSV, camt.054 or BAI2; not imported before (keyed on the file's own reference) · lines kept and linked to their receipt; a remittance suggestion opened per receipt; a lockbox file records its receipts (PAY-17)
  • imported → applied by cashier · when each line's invoice is open for at least the amount · allocations with decided_how remittance; deductions become disputes

bank_statement

imported → balanced → reconciled

  • none → imported by cashier · when camt.053, MT940 or CSV for a known bank account; not imported before · a statement line per entry; customer credits also receipts (PAY-02); a bank feed (PAY-35) arrives the same way
  • imported → balanced by system · when opening + lines = closing; opening = the previous closing · or the difference named (PAY-34)
  • balanced → reconciled by cashier · when every line matched or posted; the ledger balance at the closing date equals the closing balance · the statement locked; a later change is a reversal on an open statement

statement_line

open → matched → posted

  • open → open by system · when the line is open and the step is on · a suggestion row with evidence and confidence; nothing posted (PAY-22)
  • open → open / posted by system · when exactly one rule matches; in suggest mode it proposes, in auto mode (owner's control) it posts and lists the line for review · decided_how rule or auto (PAY-23)
  • open → matched by cashier · when the same amount and currency; the counterpart is not matched to another line · the counterpart confirmed (purchasing PAY-48, tax's liability), the transfer clearing posted on each side (PAY-21, PAY-25, PAY-28)
  • open → posted by cashier · when an account and a tax code; VAT reclaimable only with a receipt image · needs account · a journal dated by the bank, keyed on the line (PAY-24)
  • matched / posted → open by cashier · when its statement is not reconciled · needs reason · a reversing journal for a posting; the counterpart released

dd_mandate

pending → active → cancelled → dormant

  • none → pending by cashier · when a reference unique for the SUN; the bank details; the payer's confirmation · needs mandate_ref · pending until lodged (PAY-18)
  • pending → active / cancelled by system · when the next submission · active without a rejection; an AUDDIS rejection cancels it with the reason
  • pending / active → cancelled by cashier · needs reason
  • active → active / cancelled by system · details changed from the advice's date, or cancelled with the code (PAY-20)
  • active → dormant by system · when no collection for 13 months

dd_run

draft → approved → submitted → collected

  • none → draft by cashier · when a collection date that is a working day; active mandates; invoices due on or before it · keyed dd:<bank_account_id>:<collection_date>, invoices named (PAY-19)
  • draft → approved by approver · when the approver is not the preparer (email and sub)
  • approved → approved by system · when each notice at least the notice period before the collection date · an invoice whose notice is late moves to the next run
  • approved → submitted by cashier · when the file produced (Standard 18 or pain.008) and submitted by the input day · needs submission_ref · the file kept as an object; the run frozen
  • submitted → collected by system · when the collection date is today · a receipt per collection, allocated with decided_how direct_debit
  • collected → collected by cashier · returned collections reversed (PAY-07); reason 0 may be re-presented once (code 18)

cash_day

open → closed

  • none → open by cashier · when the previous day is closed; today in business_timezone · the opening balance is the last counted balance
  • open → open by cashier · when dated today; an expense has an account and a tax code · a receipt, a posting with tax's VAT, or a transfer to the bank (PAY-26)
  • open → open by cashier · the counted amount, by denomination
  • open → closed by cashier · when counted; a difference above cash_difference_threshold approved by an approver who is not the cashier · the difference posted to cash over/short; the day refuses entries
  • open → open by approver · when the approver is not the person who counted · needs reason

deposit_batch

open → deposited → matched

  • none → open by cashier · when a bank account with purpose receive
  • open → open by cashier · when a receipt with method cheque not in another batch
  • open → deposited by cashier · needs slip_no · keyed dep:<bank_account_id>:<slip>; the total fixed (PAY-28)
  • deposited → matched by cashier · when the line's amount equals the batch total · v6: an expected batch (kind cash) posts bank / its clearing_purpose (cash_in_transit), event deposit_match; a cheque batch posts nothing (its receipts did)
  • none → deposited by system · when batch_ref unique (a repeat answers the same); a bank account of the company with purpose receive, in the currency; amount above zero · a deposited batch of kind cash with no cheques, total = amount, clearing_purpose and source_module kept; matched like any batch
  • deposited → matched by approver · when an expected cash batch; the line's amount differs from the total; the approver is not the cashier (email AND sub) · needs reason · bank (the line) and cash_over_short (the difference) / the clearing purpose (the total), event deposit_difference

card_settlement

expected → matched → differs

  • none → expected by system · when settlement_ref unique (a repeat answers the same); the provider is a configured card provider of the company; gross above zero · an expected settlement: provider, company, currency, gross, business_date, transaction_count; card_clearing carries the gross (posted by the module that sold)
  • expected → matched by system or cashier · when a statement credit from the provider settles one or more expected settlements of that provider whole; fees = gross - credit, at or under card_fee_max_pct of the gross · journal bank (credit) + card_fees (tax code E) / card_clearing (gross), event card_settlement, derived from the statement line id; the fees split pro rata by gross, rounded once
  • expected → differs by system · when the matched credit implies fees above card_fee_max_pct · listed on the bank reconciliation screen with the fee and the limit
  • differs → matched by approver · when the approver is not the cashier who matched it (email AND sub) · needs reason · posted as match_card_settlement, the whole difference to card_fees, or to a claim against the provider (purpose card_claim) when the reason is a claim

payout

requested → approved → exported → paid → returned → cancelled

  • none → requested by system · when payout_ref unique (a repeat answers the same); the payee is a person partner (business-partner kind person); a paying bank account of the company in the currency; amount above zero; due_on today or later · a payout with its source_module and source_document, waiting for an approver
  • requested → approved by approver · when the approver is not the payee nor the requester's approver of the source document (email AND sub) · who and when
  • requested → approved by approver or system · when every payout of the batch_ref whose payee is not the approver (email AND sub); by system only when payout_auto_approve_sources names the source_module · the approver's own payout, if any, stays requested for another approver
  • approved → exported by cashier · when the payee's bank account read from hr (GET /persons/{person_id}/bank-account) or, without it, typed and confirmed by a second person; the cashier is not the approver · a pain.001 or Bacs Standard 18 file of the approved payouts of one paying account and payment date, stored as an object; the bank details only in the file
  • exported → paid by system or cashier · when a matched statement debit, or a bank_ref and paid_on today or earlier given by the cashier · journal <clearing_purpose> / bank (employee_payable for expenses, net_pay_payable for payroll), event payout, derived from the payout_ref; after commit the source is told (expenses' POST /reports/{source_document}/paid; v7 payroll's POST /pay-runs/{source_document}/payouts/{payout_ref}/paid), retried until it answers 2xx
  • paid → returned by system or cashier · when a statement credit naming the payout, or the cashier with the bank's return reference · the journal reversed (event payout_return); the source is told it was not paid (v7: payroll's route with status returned)
  • requested / approved → cancelled by system or approver · when not exported; by system only for the module that requested it (POST /payouts/{payout_ref}/cancel) · needs reason

What it keeps

ThingMeaningIdentified byShared?
receiptmoney received from a customerpayment_id: derived from where it came from ("bank:<account>:<statement entry ref>", "provider:<provider>:<ref>"), else a uuid with the bank reference checked for duplicates (shared.yaml keys.payment_id)module-owned
allocationwhat settled what; the single mechanism behind every reduction in a balancesource_kindsource_idinvoice_idseqmodule-owned
match suggestionwhat the AI proposed a receipt pays, and what a person decidedsuggestion_id (derived "<payment_id>#<n>")module-owned
refundmoney paid back to a customerrefund_idmodule-owned
collection eventa reminder sent, a promise made, a dispute raised or resolvedbp_idkindlevelref_idmodule-owned
statementan open-item statement as at a date, as it was sentbp_idas_atmodule-owned
credit policya customer's credit limit from a datebp_idvalid_frommodule-owned (configuration)
credit overridea person's manual hold or early release on a customerbp_idkindstarts_atmodule-owned
house banka bank the business holds accounts with (v3)house_bank_id (the business's own code, e.g. BARC)module-owned (configuration)
bank accountan account the business receives into or pays from (v3: purchasing pays out of the same accounts)bank_account_id (the business's own code)module-owned (configuration)
bank account readthe audit row written for every unmasked read of one of our bank accounts (PAY-27 seam)read_id (derived from bank_account_id, caller and requested_at)module-owned
default bank accountthe receiving account invoices print for a company and currency, from a date (v3)company_codecurrencyvalid_frommodule-owned (configuration)
bank statementone statement of one account as the bank sent it (v3)statement_id = "<bank_account_id>:<the bank's statement id or the period>"module-owned
statement lineone entry of a statement, credit or debit, and what it was reconciled to (v3)line_id = "bank:<bank_account_id>:<the bank's entry reference>" (the same key a credit's receipt takes)module-owned
line suggestionwhat the AI or a rule proposed for a statement line, and the decision (v3)suggestion_id = "<line_id>#<n>"module-owned
reconciliation rulea recurring line's treatment, from a date (v3)rule_idvalid_frommodule-owned (configuration)
remittancea remittance advice or lockbox file and its lines (v3)remittance_idline_nomodule-owned
dd mandatea customer's Direct Debit Instruction (v3)sunmandate_refmodule-owned
dd runone direct-debit collection run (v3)run_id = "dd:<bank_account_id>:<collection_date>"module-owned
dd collectionone mandate's collection in a run (v3)run_idmandate_refmodule-owned
cash journala till or petty-cash box (v3)cash_journal_idmodule-owned (configuration)
cash entryone cash receipt, expense or deposit (v3)cash_journal_identry_dateseqmodule-owned
cash counta day's count and close (v3)cash_journal_iddaymodule-owned
deposit batchcheques paid in together on one slip (v3)batch_id = "dep:<bank_account_id>:<slip_no>"module-owned
card settlementwhat a card provider owes us for one terminal batch, matched to its net credit (v6)settlement_ref ("card:<module>:<shop_id>:<terminal_batch_ref>")module-owned
payoutmoney we pay a person on another module's request (an expense reimbursement), approved and paid in a run (v6)payout_ref (the requester's: "exp:<report_id>:r<revision>:pay", v7 "prl:<pay_run_id>:<person_id>:net[:<n>]")module-owned
reminder levelone step of the follow-up policypolicy_idlevelmodule-owned (configuration)
settingshow this business takes and chases moneykeymodule-owned (configuration)

Two places that each know "what has been paid" is how a customer is chased for an invoice they paid last week. Allocations live here and nowhere else; invoicing and sales read them.

What runs on its own

StoryWhenWhat
PAY-30on readsettlement and aging
PAY-31dailyreminders at each customer's levels
PAY-32when a receipt is recorded or importedthe match suggestion
PAY-44once at cut-over (test copy, then live)the Odoo migration (migration.odoo)
PAY-19on each run's collection date (the entry day)collect_dd_run, and daily mark_mandate_dormant
PAY-22after a statement import commitssuggest_statement_match for each open line, then apply_reconciliation_rule
PAY-33when an allocation or its undo commitspost_fx_difference
PAY-35daily, by the feed providerimport_bank_statement through POST /statements/ingest

Questions that shape your version

Read these out and let the customer correct one — people rarely recall a policy on demand and can always react to one. Standard is a named authority you can look up and hold us to. Commonly seen is exactly that: arrangements we have met, with no survey behind them. A customer doing none of them is not doing it wrong.

  1. v6: Who releases a reimbursement or other payout to a person, and how is it paid?
    small business
    the owner approves, a weekly run
    larger business
    finance approves within the claim's own approval, a payroll-cycle run
  2. v6: How much may a card provider keep in fees before someone looks?
  3. How do customers pay you (bank transfer, card, direct debit, cash)?
    b2b uk
    bank transfer, reference = invoice number
    subscriptions
    direct debit or card through a provider
  4. Can you download your bank statement as a file?

    Standard ISO 20022 camt.053 BankToCustomerStatement, the statement message most UK and EU business banks export

  5. Do customers pay several invoices with one transfer, or short-pay for bank charges?
  6. Do you want reminders sent automatically, drafted for you, or do you prefer to chase by hand?
    saas
    automatic at 7, 14 and 30 days overdue, then the service pauses
    professional services
    nothing automatic, a partner calls before anything is sent
    smaller firms
    a statement once a month rather than per-invoice chasing
  7. Should an overdue customer be stopped from ordering?

    Standard UK Late Payment of Commercial Debts (Interest) Act 1998: statutory interest and fixed compensation are available on late B2B payments

  8. Who may approve a refund?
  9. Which banks and accounts do you hold, for which company?
  10. Do you collect by Direct Debit yourselves (a SUN) or through a bureau?

    Standard Bacs Direct Debit scheme rules: advance notice (10 working days unless agreed), AUDDIS lodgement, the Direct Debit Guarantee

  11. Do you keep petty cash or a till?
  12. Which statement lines recur every month (charges, interest, standing orders)?

What you can change yourself

These are settings, not code: someone in your team changes them on a screen, without a developer and without a release.

Where the platform limits what we can promise

No read-your-writes inside an open transaction. allocate, commit, then re-derive the outstanding with SUM() in a second transaction before refusing or accepting the next allocation
A bare INSERT of an already-committed key is rejected (23505); it is not an upsert. the statement import claims each payment_id with a plain INSERT and treats 23505 as already imported

For builders

Code

Public repositories, anonymous clone, one release tag each. Read README.md and AGENTS.md first.

Known gaps in the reference

© 2026 DODILHomeDocsConsole