Interface: LedgerInvoice
Defined in: src/lib/reconcile/ledger.ts:19
An invoice row, live or dead, exactly as the buckets need it.
Properties
amountPaidCents
readonlyamountPaidCents:number
Defined in: src/lib/reconcile/ledger.ts:27
deletedAt
readonlydeletedAt:string|null
Defined in: src/lib/reconcile/ledger.ts:25
dueDate
readonlydueDate:string|null
Defined in: src/lib/reconcile/ledger.ts:28
emailStatus
readonlyemailStatus:string|null
Defined in: src/lib/reconcile/ledger.ts:31
'failed' / 'skipped' mean the facility may never have seen the invoice (cause #2).
facilityId
readonlyfacilityId:string
Defined in: src/lib/reconcile/ledger.ts:21
id
readonlyid:string
Defined in: src/lib/reconcile/ledger.ts:20
invoiceNumber
readonlyinvoiceNumber:string
Defined in: src/lib/reconcile/ledger.ts:22
replacesInvoiceId
readonlyreplacesInvoiceId:string|null
Defined in: src/lib/reconcile/ledger.ts:33
The invoice this one replaces (0073 reissue chain), for cause #6.
sentAt
readonlysentAt:string|null
Defined in: src/lib/reconcile/ledger.ts:29
status
readonlystatus:string
Defined in: src/lib/reconcile/ledger.ts:24
STORED status — predicates use this; effectiveInvoiceStatus derives the display one.
totalAmountCents
readonlytotalAmountCents:number
Defined in: src/lib/reconcile/ledger.ts:26
writtenOffAt
readonlywrittenOffAt:string|null
Defined in: src/lib/reconcile/ledger.ts:35
Set = the owner wrote this debt off deliberately (ADR-0053). Not DEAD, not MISSING.