Function: fetchFacilityStatementEmails()
fetchFacilityStatementEmails(
svc,companyId):Promise<Map<string,StatementRecipientPreview>>
Defined in: src/db/queries/ar.ts:658
facilityId → everyone a statement would reach, for every facility. The AR page reads it once so the collections panel can show the real recipients (or "no billing email on file") without a round trip. It shows the whole set on purpose: a dialog naming one address while the send goes to three is how a statement reaches someone the operator never meant to include.
Parameters
svc
SupabaseClient
companyId
string
Returns
Promise<Map<string, StatementRecipientPreview>>