Function: fetchInvoicePayments()
fetchInvoicePayments(
svc,companyId,invoiceIds):Promise<SectionRead<AccountPaymentInput>>
Defined in: src/db/queries/ar.ts:534
Every check application against the given invoices, joined to its check's number and date — the
facility account view's per-payment rows. Scoped by invoice id (the caller already company-proved
them) because a check can pay another facility's invoice; filtering by the check's facility would
silently drop those. Chunked .in() to keep each URL bounded, paginated within each chunk.
Parameters
svc
SupabaseClient
companyId
string
invoiceIds
readonly string[]
Returns
Promise<SectionRead<AccountPaymentInput>>