Skip to main content

Function: setFacilityInvoiceCcContacts()

setFacilityInvoiceCcContacts(_prev, formData): Promise<RelationshipState>

Defined in: src/server/actions/facilities.ts:970

Admin: bulk-set which of a facility's contacts are CC'd on its invoices. Clears the flag on all the facility's contacts, then sets it on the selected ids (scoped to the facility, so an id from another facility can't be flagged). The per-contact toggle on the Contacts tab edits the same column.

Parameters

_prev

RelationshipState

formData

FormData

Returns

Promise<RelationshipState>