Skip to main content

Interface: SupplementalLine

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

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:49


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:48

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


description

readonly description: string

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


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


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