Skip to main content

Interface: InvoiceLineInput

Defined in: src/lib/invoice/index.ts:22

One contractor's billing facts for a single facility billing week (Sunday-anchored), as fed into computeInvoiceLines. Carries the raw inputs only — the billed quantity, amount, variance, and description are derived (see InvoiceLine). Money fields are integer USD cents.

Extended by

Properties

actualHours

readonly actualHours: number

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

Hours actually worked in the week. Billed quantity = min(actual, contracted) unless approved.


assignmentId

readonly assignmentId: string

Defined in: src/lib/invoice/index.ts:24


contractedHours

readonly contractedHours: number

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

Contractor's weekly contracted hours — the billing cap (unless overage is approved).


contractorId

readonly contractorId: string

Defined in: src/lib/invoice/index.ts:23


contractorName

readonly contractorName: string

Defined in: src/lib/invoice/index.ts:25


hourlyRateCents

readonly hourlyRateCents: number

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

Facility's contracted USD hourly rate, in integer cents (e.g. $80.00/hr → 8000).


overageApproved?

readonly optional overageApproved?: boolean

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

Facility approved this week's overage → bill the full actual hours (lift the contracted cap).


serviceType

readonly serviceType: string | null

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

e.g. "MDS Assessor" — printed as " Services () - ".