Interface: ReconLine
Defined in: src/server/services/invoice/weeklyRun.ts:116
One per-contractor reconciliation line on the invoice shelf: contracted vs logged hours with the approved/unapproved split, and the cents amount that line will bill.
loggedHours, approvedHours, and unapprovedHours are decimal hours rounded to 2 places;
contractedHours is the raw contracted value from the assignment. hourlyRateCents and amountCents are integer
cents (hourlyRateCents is null when the assignment has no rate, in which case amountCents is 0
and the shelf surfaces a "No rate" warning). amountCents bills the lesser of loggedHours and
contractedHours × the rate — unless the facility approved this week's overage, which lifts the
cap and bills full logged hours (mirrors the generator's computeInvoiceLines). variancePct is
|logged − contracted| / contracted as a percent rounded to 1 decimal; when contractedHours is 0
(or less) it is 100 if any hours were logged, else 0. varianceFlagged is true only when the overage
was NOT approved and variancePct exceeds the facility's threshold.
Properties
amountCents
amountCents:
number
Defined in: src/server/services/invoice/weeklyRun.ts:126
approvedHours
approvedHours:
number
Defined in: src/server/services/invoice/weeklyRun.ts:123
assignmentId
assignmentId:
string
Defined in: src/server/services/invoice/weeklyRun.ts:118
contractedHours
contractedHours:
number
Defined in: src/server/services/invoice/weeklyRun.ts:121
contractorId
contractorId:
string
Defined in: src/server/services/invoice/weeklyRun.ts:117
contractorName
contractorName:
string
Defined in: src/server/services/invoice/weeklyRun.ts:119
hourlyRateCents
hourlyRateCents:
number|null
Defined in: src/server/services/invoice/weeklyRun.ts:125
loggedHours
loggedHours:
number
Defined in: src/server/services/invoice/weeklyRun.ts:122
serviceType
serviceType:
string|null
Defined in: src/server/services/invoice/weeklyRun.ts:120
unapprovedHours
unapprovedHours:
number
Defined in: src/server/services/invoice/weeklyRun.ts:124
varianceFlagged
varianceFlagged:
boolean
Defined in: src/server/services/invoice/weeklyRun.ts:128
variancePct
variancePct:
number
Defined in: src/server/services/invoice/weeklyRun.ts:127