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
readonlyactualHours:number
Defined in: src/lib/invoice/index.ts:31
Hours actually worked in the week. Billed quantity = min(actual, contracted) unless approved.
assignmentId
readonlyassignmentId:string
Defined in: src/lib/invoice/index.ts:24
contractedHours
readonlycontractedHours:number
Defined in: src/lib/invoice/index.ts:29
Contractor's weekly contracted hours — the billing cap (unless overage is approved).
contractorId
readonlycontractorId:string
Defined in: src/lib/invoice/index.ts:23
contractorName
readonlycontractorName:string
Defined in: src/lib/invoice/index.ts:25
hourlyRateCents
readonlyhourlyRateCents: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?
readonlyoptionaloverageApproved?: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
readonlyserviceType:string|null
Defined in: src/lib/invoice/index.ts:27
e.g. "MDS Assessor" — printed as "