Interface: PayRunLine
Defined in: src/server/services/payroll.ts:101
One contractor-assignment's computed pay for a period. A contractor with more than one assignment
(different facilities) produces one line per assignment; the lines are combined into a single
payout per contractor at persist time (see combineLinesIntoPayments).
Remarks
All money fields are PHP integer centavos (1 PHP = 100 centavos), never floats. Hour fields are the settling-week totals the contractor was paid for (see computePayRun), rounded to 2 dp.
Properties
amountCentavos
readonlyamountCentavos:number
Defined in: src/server/services/payroll.ts:111
Computed payout for this assignment in centavos; always > 0 (zero-pay lines are dropped).
assignmentId
readonlyassignmentId:string
Defined in: src/server/services/payroll.ts:105
The contractor↔facility assignment version this line was priced from.
bimonthlyRateCentavos
readonlybimonthlyRateCentavos:number
Defined in: src/server/services/payroll.ts:110
Full bi-monthly contract rate in centavos (the cap for a fully worked, non-overage period).
breakdown
readonlybreakdown:SerializedWeek[]
Defined in: src/server/services/payroll.ts:114
Per-week serialized pay breakdown (hours, contracted, ratio, pay) for the payslip detail view.
contractedHours
readonlycontractedHours:number
Defined in: src/server/services/payroll.ts:108
Pro-rated contracted hours over the same settling weeks (adjusted for assignment effective/end dates), rounded to 2 dp.
contractorId
readonlycontractorId:string
Defined in: src/server/services/payroll.ts:102
Contractor UUID; payments are keyed by this id, not by name.
contractorName
readonlycontractorName:string
Defined in: src/server/services/payroll.ts:103
Display name (First Last) for preview/draft tables only; the Wise file and payslips use the full legal name separately.
contractorType
readonlycontractorType:ContractorType
Defined in: src/server/services/payroll.ts:104
'outsourced' or 'in_house_admin'; only in-house admins accrue
holiday credit, and only on their primary assignment.
facilityName
readonlyfacilityName:string|null
Defined in: src/server/services/payroll.ts:106
Facility display name, or null if the facility row was not found.
hoursWorked
readonlyhoursWorked:number
Defined in: src/server/services/payroll.ts:107
Payable hours that fed this line, summed over the settling weeks, rounded to 2 dp.
idempotencyKey
readonlyidempotencyKey:string
Defined in: src/server/services/payroll.ts:113
Per-contractor key payrun:{companyId}:{start}:{end}:{contractorId} —
identical across a contractor's assignment lines so they merge into one payment.
paymentDate
readonlypaymentDate:string
Defined in: src/server/services/payroll.ts:112
ISO date (YYYY-MM-DD) the payout is scheduled, derived from the period.
ratio
readonlyratio:number
Defined in: src/server/services/payroll.ts:109
Paid fraction = amountCentavos / bimonthlyRateCentavos (0 when rate is 0).