Skip to main content

Interface: SupplementalLineInput

Defined in: src/lib/invoice/supplemental.ts:27

One parent-line assignment's billing facts for the supplemental computation. Only assignments the parent actually billed (its line items) are eligible — hours on an assignment with no parent line are the documented limit of this design (ADR-0055) and surface as a coverage gap, not here.

Extended by​

Properties​

actualHours​

readonly actualHours: number

Defined in: src/lib/invoice/supplemental.ts:35

Hours actually worked in the week NOW: every payable status, including entries locked to the family.


assignmentId​

readonly assignmentId: string

Defined in: src/lib/invoice/supplemental.ts:29


contractedHours​

readonly contractedHours: number

Defined in: src/lib/invoice/supplemental.ts:33

The assignment's weekly contracted hours — the family's shared billing cap.


contractorId​

readonly contractorId: string

Defined in: src/lib/invoice/supplemental.ts:28


contractorName​

readonly contractorName: string

Defined in: src/lib/invoice/supplemental.ts:30


familyBilledHours​

readonly familyBilledHours: number

Defined in: src/lib/invoice/supplemental.ts:37

Hours the family (parent + prior live supplementals) has already billed for this assignment.


hourlyRateCents​

readonly hourlyRateCents: number

Defined in: src/lib/invoice/supplemental.ts:39

The PARENT line's rate in integer cents — frozen for the whole family.


lateEntries?​

readonly optional lateEntries?: readonly object[]

Defined in: src/lib/invoice/supplemental.ts:47

The payable entries in the week NOT locked to the family, by ISO date (sorted) with their summed hours — where the late hours come from. Informational: the delta is cap math, so over-cap entries appear here at their full hours while billing to zero.


overageApproved?​

readonly optional overageApproved?: boolean

Defined in: src/lib/invoice/supplemental.ts:41

The week's overage is approved → the cap lifts to the full actual hours.


serviceType​

readonly serviceType: string | null

Defined in: src/lib/invoice/supplemental.ts:31