Skip to main content

Function: summarizeByContractor()

summarizeByContractor(periods, fromIso, toIso, selected): SummaryRow[]

Defined in: src/lib/payroll/insights.ts:206

Re-aggregate the preloaded periods per selected contractor over [fromIso, toIso]. The window keys on period START (a straddling period is in/out wholesale — deliberate). toIso empty = through latest. Contractors with no statements in range drop out.

Parameters

periods

readonly InsightPeriod[]

fromIso

string

toIso

string

selected

ReadonlySet<string>

Returns

SummaryRow[]