Interface: WeekBillingFact
Defined in: src/server/services/invoice/weekFacts.ts:64
One contractor's billing facts for the facility week — the chosen assignment (latest effective,
primary on tie, then lowest id) plus its hour aggregates. Hours are decimal rounded to 2 places;
hourlyRateCents is integer cents or null (no rate). Soft-deleted (terminated) contractors are
excluded — consistent with the payroll engine and both prior pipelines.
Properties
approvedHours
readonlyapprovedHours:number
Defined in: src/server/services/invoice/weekFacts.ts:76
The approved/locked half of loggedHours (shelf's reconciliation split).
assignmentId
readonlyassignmentId:string
Defined in: src/server/services/invoice/weekFacts.ts:66
contractedHours
readonlycontractedHours:number
Defined in: src/server/services/invoice/weekFacts.ts:70
Weekly contracted hours from the assignment (the default billing cap).
contractorId
readonlycontractorId:string
Defined in: src/server/services/invoice/weekFacts.ts:65
contractorName
readonlycontractorName:string
Defined in: src/server/services/invoice/weekFacts.ts:67
hourlyRateCents
readonlyhourlyRateCents:number|null
Defined in: src/server/services/invoice/weekFacts.ts:72
Integer USD cents, or null when the assignment has no rate (only present without requireRate).
invoiceIds
readonlyinvoiceIds:string[]
Defined in: src/server/services/invoice/weekFacts.ts:82
Invoice ids stamped on this assignment's week entries — the ADR-0050 §3 reissue-warning subject.
loggedHours
readonlyloggedHours:number
Defined in: src/server/services/invoice/weekFacts.ts:74
Hours in PAYABLE_STATUSES — what bills (and what the generator calls actualHours).
overageApproved
readonlyoverageApproved:boolean
Defined in: src/server/services/invoice/weekFacts.ts:80
An approved overage request for this week lifts the contracted cap on this line.
serviceType
readonlyserviceType:string|null
Defined in: src/server/services/invoice/weekFacts.ts:68
unapprovedHours
readonlyunapprovedHours:number
Defined in: src/server/services/invoice/weekFacts.ts:78
The submitted/pending half — what the send soft gate holds on.