Skip to main content

Type Alias: PayScope

PayScope = { kind: "company"; } | { contractorId: string; kind: "contractor"; } | { assignmentId: string; contractorId: string; kind: "assignment"; }

Defined in: src/server/services/payInputs.ts:60

Who to load: the whole company (pay run), a single contractor (own estimate), or a single assignment (the catch-up marginals). Assignment scope still loads the contractor's OTHER chosen assignments too, so payForAssignment's primary-only holiday routing sees the same assignment set the pay run does.