Skip to main content

Interface: DraftSendDetail

Defined in: src/server/services/invoice/weeklyRun.ts:612

Pre-send confirmation row for one draft invoice in the Review & send dialog: who it will be addressed to, when it is due, and an advisory amount-anomaly signal. baselineCents is integer cents (or null when there isn't enough issued history); anomaly is purely advisory and never blocks a send.

Properties

anomaly

anomaly: boolean

Defined in: src/server/services/invoice/weeklyRun.ts:620

This draft's amount is unusually far from the baseline — an advisory "double-check" flag.


baselineCents

baselineCents: number | null

Defined in: src/server/services/invoice/weeklyRun.ts:618

Mean of the facility's recent ISSUED invoice totals (null when there isn't enough history).


dueDate

dueDate: string | null

Defined in: src/server/services/invoice/weeklyRun.ts:616


invoiceId

invoiceId: string

Defined in: src/server/services/invoice/weeklyRun.ts:613


toEmails

toEmails: string[]

Defined in: src/server/services/invoice/weeklyRun.ts:615

The billing-contact email(s) the invoice will actually be sent to — shown before confirming.