Which invoices make this deposit?
Find which open items add up to a deposit, to the cent.
Which invoices make this deposit?, worked
Arithmetic only — not tax, accounting, legal or investment advice. Check against current rules.
How the which invoices make this deposit? works.
Subset finder: A deposit of 14,203.55 against 40 open invoices: which combination sums to it? Meet-in-the-middle over minor units, so it's exact with no floating point.
Quoted from the toolbelt spec, the document this tool was built against.
Where these numbers come from.
Negatives are parenthesized because that’s what a statement does. The rest is four promises.
Minor units, never floats
Amounts are integers in the currency's smallest unit, end to end. A float never touches a cent.
Rounded in the right place
Rounded where an invoice or a ledger would round, never operand by operand, so a split still sums to the whole. A tool that rounds each period says so.
Unit tested
The arithmetic lives in one unit-tested module, and the extension uses the same one.
No network
There is no request to make. What you type stays in this tab and is gone when you close it.
More in reconciliation & investigation
- Difference diagnoserName the keying error behind an out-of-balance: transposition, slide, sign flip or omission.
- Two-list matcherMatch bank against ledger and list what's left unmatched on each side.
- Duplicate paymentsSame vendor, same amount, close in time. Or the same reference on any date.
- Benford & round numbersBenford and round-number tests that point at the rows to pull first.
Learn what it computes
- AR · Lesson 6 · 9 minCash application: matching payments to invoicesMatching Northwind's receipts to its invoices: a short pay, a lump sum with no remittance, and a card payment that arrives net of the processor's fee.
- Accounting · Lesson 13 · 10 minClosing the monthThe close proves every balance against something outside the ledger, then locks the period so the numbers can't change after sign-off.
The same number, elsewhere.
A calculator answers the question once. These carry the answer into a product, name what it computed, and argue the method.
- ComponentCashApplicationThe highest-value screen in AR. Every case is a first-class path.
- ComponentPaymentSuggestionInvoice combinations summing exactly to a lump sum.
- ComponentUnappliedCashPanelNever revenue; net credit balances flagged as liabilities.
- TermApplicationAssigning received cash to specific invoices
- TermUnapplied cashCustomer cash received but not yet assigned to an invoice. It reduces that customer's AR; only a net credit balance is reclassified to a liability at period end
- TermDeposit in transitA receipt recorded in the book cash account but not yet on the bank statement — added to the bank balance in a reconciliation
- DocOrder to cash (AR)The receivables stack from quote to revenue: quote → order → fulfillment → invoice → collection → cash application → revenue.
- EntryJournal entry for a customer short paymentDebit Cash for what arrived and credit Accounts receivable for the same amount. If the deduction is agreed, issue a credit note: debit Sales returns and allowances, credit Accounts receivable. If it is not, leave the difference open on the invoice, marked disputed.
- EntryJournal entry for unapplied customer cashDebit Cash and credit Accounts receivable for the customer, unapplied, on the day the money arrives. When the invoices it pays are identified, apply it to them; the entry is already made, so only the subledger changes. Never credit revenue.
- DocCurrency decimal placesHow many decimals each ISO 4217 code is stored at — JPY 0, USD 2, KWD 3.