Skip to main content

Interface: LedgerInvoice

Defined in: src/lib/reconcile/ledger.ts:19

An invoice row, live or dead, exactly as the buckets need it.

Properties​

amountPaidCents​

readonly amountPaidCents: number

Defined in: src/lib/reconcile/ledger.ts:27


deletedAt​

readonly deletedAt: string | null

Defined in: src/lib/reconcile/ledger.ts:25


dueDate​

readonly dueDate: string | null

Defined in: src/lib/reconcile/ledger.ts:28


emailStatus​

readonly emailStatus: string | null

Defined in: src/lib/reconcile/ledger.ts:31

'failed' / 'skipped' mean the facility may never have seen the invoice (cause #2).


facilityId​

readonly facilityId: string

Defined in: src/lib/reconcile/ledger.ts:21


id​

readonly id: string

Defined in: src/lib/reconcile/ledger.ts:20


invoiceNumber​

readonly invoiceNumber: string

Defined in: src/lib/reconcile/ledger.ts:22


replacesInvoiceId​

readonly replacesInvoiceId: string | null

Defined in: src/lib/reconcile/ledger.ts:33

The invoice this one replaces (0073 reissue chain), for cause #6.


sentAt​

readonly sentAt: string | null

Defined in: src/lib/reconcile/ledger.ts:29


status​

readonly status: string

Defined in: src/lib/reconcile/ledger.ts:24

STORED status — predicates use this; effectiveInvoiceStatus derives the display one.


totalAmountCents​

readonly totalAmountCents: number

Defined in: src/lib/reconcile/ledger.ts:26


writtenOffAt​

readonly writtenOffAt: string | null

Defined in: src/lib/reconcile/ledger.ts:35

Set = the owner wrote this debt off deliberately (ADR-0053). Not DEAD, not MISSING.