Finance
Finance data model
- `Invoice` optionally links Company, Contact, Lead, Opportunity, Quote, and Document. It stores lifecycle state, commercial context, and calculated totals. - `InvoiceItem` belongs
Use this when you need detailed reference information for Finance.
Invoiceoptionally links Company, Contact, Lead, Opportunity, Quote, and Document. It stores lifecycle state, commercial context, and calculated totals.InvoiceItembelongs to one invoice and stores quantity, unit price, and calculated line total.Paymentbelongs to an invoice and optionally a schedule row. Its status controls whether it affects balances.Receipthas a one-to-one relationship with a confirmed payment.Expenserecords an operational outgoing with category and approval state.PaymentSchedulebelongs to an invoice and summarizes one installment's due, paid, and balance values.
The existing ActivityLog cleanly supports finance events, so no parallel FinanceActivity model was added. Decimal database columns use two-place monetary precision; reusable calculation rules live in @submicron/finance-engine.
Developer Details
- Source
- apps/docs/content/finance/data-model.md
- Owner
- Module Owner
- Status
- Current
- Module
- Finance
- Related route
- /finance