Function: outstandingInvoicesForPayer()
outstandingInvoicesForPayer(
companyId,facilityIds):Promise<CandidateInvoice[]>
Defined in: src/server/services/checks.ts:68
The candidate pool for a packet check: outstanding invoices across the payer's WHOLE facility set
(or every facility for a management company, 'all'). Carries the date anchor coalesce(period_end, sent_at) and facility_id so remittance targeting can match across facilities and the apply trail
stays per-facility. Oldest-first so the single-facility remainder fallback is well-ordered.
Parameters
companyId
string
facilityIds
readonly string[] | "all"
Returns
Promise<CandidateInvoice[]>