Skip to main content

Interface: SupplementalLine

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

A computed supplemental line: the input plus the billable delta and its priced amount.

Extends​

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.

Inherited from​

SupplementalLineInput.actualHours


amountCents​

readonly amountCents: Cents

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


assignmentId​

readonly assignmentId: string

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

Inherited from​

SupplementalLineInput.assignmentId


contractedHours​

readonly contractedHours: number

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

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

Inherited from​

SupplementalLineInput.contractedHours


contractorId​

readonly contractorId: string

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

Inherited from​

SupplementalLineInput.contractorId


contractorName​

readonly contractorName: string

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

Inherited from​

SupplementalLineInput.contractorName


deltaHours​

readonly deltaHours: number

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

The unbilled hours this supplemental bills = max(0, weekCap − familyBilledHours), 2 dp.


description​

readonly description: string

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


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.

Inherited from​

SupplementalLineInput.familyBilledHours


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.

Inherited from​

SupplementalLineInput.hourlyRateCents


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.

Inherited from​

SupplementalLineInput.lateEntries


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.

Inherited from​

SupplementalLineInput.overageApproved


serviceType​

readonly serviceType: string | null

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

Inherited from​

SupplementalLineInput.serviceType