Sales

Receipt Matching Rules

How Trabalance decides which invoices a receipt pays. One automatic rule — opening balances first, then oldest by invoice date — and manual allocation when you want to choose.

When a receipt is posted, its cash must be linked to one or more invoices to close them. You can allocate it yourself on the receipt, or leave it on account and let cash application do it. Understanding the rule helps you predict which invoices will close and spot mismatches before they create AR problems.

The automatic rule, and the Match Invoices dialog for doing it by hand.

The Two Ways Cash Meets Invoices

MethodHow It WorksWhen It Applies
Automatic cash applicationEvery unapplied receipt and credit note for a customer is applied to their open documents: opening balances and statements first, then invoices oldest-first by their invoice date, each exhausted in full before the next receives anything. Anything left over stays unmatched.Whenever a receipt or credit note posts, whenever the customer page is opened, and on a worker sweep every 20 minutes. Nothing to start.
Manual allocationYou name the invoices and the amounts — on the receipt form (Apply to Invoice) or afterwards from the receipt page (Match Invoices). Overrides the automatic order for that cash.Disputed invoices, partial payments against specific invoices, complex allocation scenarios.

The Automatic Rule

1
Opening balances first

Statements and opening balances are settled before any invoice, whatever their date. Historical debt is cleared first.

2
Then invoices, oldest first by invoice date

The remaining cash goes to the customer's open invoices in order of their own invoice date — never the date they were saved. Partly paid invoices count with their outstanding balance.

3
Each document is exhausted before the next

Cash is never spread thinly across invoices. The oldest is paid in full (or as far as the cash goes), then the next.

4
The remainder stays unmatched

If the receipt exceeds every open document, the excess remains on the receipt as an unmatched balance. The customer page shows it as Unapplied payments and, once nothing is owed, "This customer is in credit by …".

Boundaries: same customer only, same currency only, posted documents only; an invoice in a different center is skipped; a pairing you have detached by hand is never re-created.

ExampleOpen Documents (oldest first)ReceiptResult
Exact amountINV-000045 · USD 4,750.00USD 4,750.00INV-000045: Paid. Receipt: Matched.
Covers two invoicesINV-000041 · 3,000.00; INV-000045 · 4,750.00USD 7,750.00Both Paid. Receipt: Matched.
Part paymentINV-000041 · 3,000.00; INV-000045 · 4,750.00USD 5,000.00INV-000041: Paid. INV-000045: Partly paid (2,750 remaining). Receipt: Matched.
OverpaymentINV-000045 · 4,750.00USD 5,000.00INV-000045: Paid. Receipt: Partly matched, 250.00 unmatched.

Manual Allocation

On the receipt form

1
Select the customer and enter the amount

The Payment Type choice appears: Apply to Invoice or Payment on Account.

2
Apply to Invoice

The Apply to Invoices table lists the open invoices, statements and opening balances. Enter an Amount per document, use Pay in full, or click Apply oldest first to fill the rows by the automatic rule.

3
Check the toolbar

Payment · Allocated · remaining. A row above its outstanding balance is refused; the total can never exceed the receipt.

4
Save

Each invoice updates independently based on its allocation amount.

After posting

Open the receipt. While it is Unmatched or Partly matched, the page shows the Unmatched balance and a Match Invoices button. The dialog shows Remaining balance, Allocated and Unallocated, a search box, and one row per open document — Invoice #, Subject, Total, Balance, Amount to match. Confirm with Match N Invoices. An allocation can be detached again from the receipt page.

⚠️Period close and unmatched receipts

Unmatched receipts understate the true state of the invoices they should have settled. Before closing a period, open each customer's Collections table, filtered to Unmatched and Partly matched, and match every receipt you can trace to an invoice. Receipts that genuinely cannot be matched (an advance with no invoice yet) should carry a clear Details/Memo explaining why.

Matching and the Ledger

Matching does not create journal entries — the journal was written when the receipt was posted. Matching is a linking operation that controls which invoices display as outstanding. The debit to Bank and credit to AR are always recorded at posting, regardless of whether an allocation exists. Allocation controls which invoices show as Paid, not the accounting balance. Credit notes are applied by the same engine and, likewise, never post a second journal when applied.