InvoiceForm
With the revenue-recognition preview per line.
npx shadcn add @lopifi/invoice-formHow 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.
Lines with account and dimensions, itemized tax by jurisdiction and rate, terms, PO reference. Shows a revenue recognition preview per line before posting: whether each line credits revenue or deferred revenue, and on what schedule. The invoice number is system-assigned and gapless; the user can't pick it.
Discount terms render in full: "2% discount if paid within 10 days, otherwise due in 30 days", with both amounts and the discount deadline computed.
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 InvoiceForm renders in, the calculators behind its figures, and the ledger payloads that feed it.
- InvoiceForm, runningThe ar showcase — live, with theme, density, grayscale and reduced-motion switches.
- VAT / sales taxAdd tax to a net price or back it out of a gross one, and the parts still add up.
- Payment terms & due datesDue dates from payment terms, and whether an early-payment discount is worth taking.
- Sales invoicesWhat does an accounts-receivable invoice look like in each API?
- Items, products and servicesIs an item optional, required, or a subsystem?
- TaxWho computes the tax, and can you override it?
- 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
npx shadcn add @lopifi/invoice-form