Skip to main content

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​

readonly approvedHours: number

Defined in: src/server/services/invoice/weekFacts.ts:76

The approved/locked half of loggedHours (shelf's reconciliation split).


assignmentId​

readonly assignmentId: string

Defined in: src/server/services/invoice/weekFacts.ts:66


contractedHours​

readonly contractedHours: number

Defined in: src/server/services/invoice/weekFacts.ts:70

Weekly contracted hours from the assignment (the default billing cap).


contractorId​

readonly contractorId: string

Defined in: src/server/services/invoice/weekFacts.ts:65


contractorName​

readonly contractorName: string

Defined in: src/server/services/invoice/weekFacts.ts:67


hourlyRateCents​

readonly hourlyRateCents: 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​

readonly invoiceIds: 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​

readonly loggedHours: number

Defined in: src/server/services/invoice/weekFacts.ts:74

Hours in PAYABLE_STATUSES — what bills (and what the generator calls actualHours).


overageApproved​

readonly overageApproved: 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​

readonly serviceType: string | null

Defined in: src/server/services/invoice/weekFacts.ts:68


unapprovedHours​

readonly unapprovedHours: number

Defined in: src/server/services/invoice/weekFacts.ts:78

The submitted/pending half — what the send soft gate holds on.