Skip to main content

Function: computeSupplementalLines()

computeSupplementalLines(inputs, periodStart, periodEnd): SupplementalComputation

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

Compute the supplemental's lines for a drifted week. Pure — no I/O.

Parameters

inputs

readonly SupplementalLineInput[]

Per-assignment facts (one per PARENT line item; see SupplementalLineInput).

periodStart

CalendarDate

The family's billing-week start (the parent's, printed in descriptions).

periodEnd

CalendarDate

The family's billing-week end.

Returns

SupplementalComputation

Positive-delta lines only, sorted by contractor name, and their summed totalCents. An empty lines array means the family is clear — there is nothing to supplement.