Skip to main content

Function: sendInvoices()

sendInvoices(input): Promise<SendInvoicesState>

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

Batch send (cockpit Review & Send). Billing-domain staff may send (owner decision 2026-08-21); the cockpit's isOwner gating on the BUTTON is a UI convention, not the security boundary. 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>