Function: isOutstandingInvoice()
isOutstandingInvoice(
inv):boolean
Defined in: src/lib/reconcile/ledger.ts:178
The JS mirror of the SQL in invoice_ar_summary (0116): live, issued, still owing, and not
written off. Every surface that counts "money owed" — this ledger, the invoices KPI, the
dashboard strip — is this one predicate, so they cannot drift apart.
Parameters
inv
Returns
boolean