Skip to main content

Function: sendInvoices()

sendInvoices(input): Promise<SendInvoicesState>

Defined in: src/server/actions/invoicing.ts:85

Owner-only batch send (cockpit Review & Send). Delegates the gated, locking, audited send + email outbox to performSend so this and the legacy "Mark sent" share one path. Held/skipped invoices are reported back, not silently dropped.

Parameters

input

acknowledgeUnapproved?

boolean

bcc?

string[]

cc?

string[]

invoiceIds

string[]

perInvoice?

Record<string, { bodyText?: string; cc?: string[]; replyTo?: string | null; }>

replyTo?

string | null

saveDefault?

boolean

Returns

Promise<SendInvoicesState>