Skip to content

Which invoices make this deposit?

A deposit against forty open items. Exact subset-sum over minor units — no floating point.

Runs
In this tab
Data sent
None
Rounding
Once, at the end
Also in
The Chrome extension

Which invoices make this deposit?, worked

Showing a worked example — type over it

In the currency's smallest unit: 25 lets a USD match miss by up to 0.25, for a short-paid fee.

ISO 4217 code — sets the decimals: JPY 0, USD 2, KWD 3.

Result

1 combination.

4 items14,203.55
ItemAmount
INV-1013,400.00
INV-1021,200.55
INV-1035,003.00
INV-1054,600.00

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 — exact, not floating point.

Quoted from the toolbelt spec, the document this tool was built against.

Where these numbers come from.

Negatives are parenthesised because that is what a statement does. The rest is four promises.

More in reconciliation & investigation

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.

Works in your QuickBooks Online or Xero file

Get your books closed every month

Lopifi is building AI bookkeeping that keeps your books closed on US GAAP as transactions happen, with a CPA review every quarter, for $200 a month. We’re not open yet.

$200/month when we open. No card now.