# Which invoices make this deposit?

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

Source: https://lopifi.com/tools/subset
Part of: Lopifi — US GAAP books on autopilot, reviewed by a CPA (https://lopifi.com)

---

- **Group:** Reconcile

## Inputs

- `target` — The amount received
- `pool` — Open items
- `tolerance` — Tolerance (minor units) (In the currency's smallest unit: 25 lets a USD match miss by up to 0.25, for a short-paid fee.)
- `max` — Max items in a combination
- `currency` — Currency (ISO 4217 code — sets the decimals: JPY 0, USD 2, KWD 3.)

Runs entirely in the browser: no network call, no data leaves the page. The same definition powers the Lopifi Tools Chrome extension.
