Skip to main content

Interface: SendResult

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

Outcome of a performSend batch, partitioning the requested invoice ids into four disjoint buckets. Only sent invoices were issued; held, skipped, and stale were each left untouched (status unchanged) for a different reason, so the UI can show the operator exactly what to fix.

Properties

held

held: HeldInvoiceResult[]

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

Drafts blocked by a send gate — no billing contact or unapproved hours (HeldInvoiceResult).


sent

sent: SentInvoiceResult[]

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

Issued invoices, each with its own email-delivery outcome (SentInvoiceResult).


skipped

skipped: SkippedInvoiceResult[]

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

Ids not in a sendable state — not found, already sent, or void (SkippedInvoiceResult).


stale

stale: StaleInvoiceResult[]

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

Drafts whose stored total no longer matches a recompute; Correct them first (StaleInvoiceResult).