Function: loadPayrollInsights()
loadPayrollInsights(
companyId):Promise<PayrollInsightsData&object>
Defined in: src/server/services/payrollInsights.ts:65
Preload for blocks 1–3 of the Payroll insights report: every saved payment for the company (paged past the PostgREST row cap — these are grand totals, truncation would silently under-report money; a failed read throws instead of rendering ₱0), grouped into periods, plus the contractor roster for the pickers.
Parameters
companyId
string
Returns
Promise<PayrollInsightsData & object>