Skip to main content

Interface: StaleInvoiceResult

Defined in: src/server/services/invoice/send.ts:89

A draft whose stored total no longer matches a fresh recompute from current hours — held back from the send so the operator can Correct (recompute) it first. liveCents is null when the total couldn't be recomputed (e.g. the facility went inactive), in which case reason carries why.

Properties

facilityName

facilityName: string

Defined in: src/server/services/invoice/send.ts:92

Billed facility's display name (falls back to 'Facility' if unresolved).


id

id: string

Defined in: src/server/services/invoice/send.ts:90

Draft invoice UUID held back from the send.


invoiceNumber

invoiceNumber: string

Defined in: src/server/services/invoice/send.ts:91

Human-facing invoice number on the draft.


kind

kind: "out_of_date" | "blocked"

Defined in: src/server/services/invoice/send.ts:100

See per-field note: 'out_of_date' vs 'blocked'.


liveCents

liveCents: number | null

Defined in: src/server/services/invoice/send.ts:94

Total from recomputing current hours, in integer USD cents; null when the draft could not be recomputed (kind: 'blocked').


reason

reason: string

Defined in: src/server/services/invoice/send.ts:101

Machine/UI hint for the hold; for 'out_of_date' it is the literal 'out_of_date', for 'blocked' it is the underlying preview error or a missing-week message.


storedCents

storedCents: number

Defined in: src/server/services/invoice/send.ts:93

The frozen total the draft was generated with, in integer USD cents.