CashApplication
The highest-value screen in AR. Every case is a first-class path.
npx shadcn add @lopifi/cash-applicationHow it behaves
What it renders, what it refuses to render, and why. The same paragraphs as the family spec, so the two can’t disagree.
The highest-value screen in AR, and the hardest to get right.
Left: unapplied payments. Right: open invoices for that customer. As invoices are selected, a running sum against the payment shows when the selection is exact.
Every case is a first-class path: exact, partial, overpayment, lump-sum-to-many, short pay, no-invoice, duplicate, bank fee deducted in transit, FX settlement difference.
Rules: unapplied cash is never revenue; it is shown separately within AR, and a customer's net credit balance is flagged for reclassification to a liability · a remaining difference always requires a disposition (write-off with reason and account, leave unapplied, or dispute) · write-off thresholds enforce approval · applying is reversible and audited.
The match uses the reconciliation animation, one of the four sanctioned moments.
The accounting it encodes
The concepts this component renders, each defined once in the lexicon.
More in Receivables (AR)
See also
Where this component is specified, defined and running.
Elsewhere in the system
The live section CashApplication renders in, the calculators behind its figures, and the ledger payloads that feed it.
- CashApplication, runningThe ar showcase — live, with theme, density, grayscale and reduced-motion switches.
- Penny-exact allocationSplit 100.00 three ways and get 33.34 / 33.33 / 33.33, with nothing left in suspense.
- Which invoices make this deposit?Find which open items add up to a deposit, to the cent.
- Payments and allocationHow is a payment tied to the documents it settles?
- Receivables (AR)Receivables (AR) — specs for 13 React components: InvoiceForm, InvoiceDetail, InvoiceRegister, CashApplication and 9 more.
Components are copied into your repository and meant to be edited. Rounding policy, fiscal calendar and compliance copy differ per company.
Release notes
Get an email when Receivables (AR) changes
Your copy doesn’t update itself when we fix something here.
- One email when a Receivables (AR) component needs a migration
- Nothing when nothing changes
Or install it now