Interface: PayRunPreview
Defined in: src/server/services/payroll.ts:128
Read-only result of computing (not persisting) a pay run for a period.
Remarks
totalCentavos is the sum of every line's amountCentavos, in PHP integer centavos. The
assignmentIds / pricedEntryCount / pricedHours triple is the close-time TOCTOU snapshot: it
counts only in-period payable entries (each calendar day is locked by exactly one period), not
the wider settling-week span the outsourced engine actually prices over. errors holds per-contractor
pay-engine failures (the Result error branch of calculateContractorPay); those contractors are
omitted from lines but the run still succeeds.
Properties
assignmentIds
readonlyassignmentIds:string[]
Defined in: src/server/services/payroll.ts:140
Assignment ids actually paid — the scope the close locks/verifies (not the whole period).
errors
readonlyerrors:object[]
Defined in: src/server/services/payroll.ts:151
contractorId
contractorId:
string
contractorName
contractorName:
string
message
message:
string
lines
readonlylines:PayRunLine[]
Defined in: src/server/services/payroll.ts:137
period
readonlyperiod:object
Defined in: src/server/services/payroll.ts:129
end
readonlyend:string
half
readonlyhalf:PeriodHalf
month
readonlymonth:number
paymentDate
readonlypaymentDate:string
start
readonlystart:string
year
readonlyyear:number
pricedEntryCount
readonlypricedEntryCount:number
Defined in: src/server/services/payroll.ts:142
Count of payable entries that fed the priced amounts (for the close-time TOCTOU check).
pricedHours
readonlypricedHours:number
Defined in: src/server/services/payroll.ts:144
Raw (unrounded) sum of payable hours that fed the priced amounts (TOCTOU check).
totalCentavos
readonlytotalCentavos:number
Defined in: src/server/services/payroll.ts:138
warnings
readonlywarnings:object
Defined in: src/server/services/payroll.ts:145
draftDays
readonlydraftDays:number
Un-submitted draft days that were excluded from pay.
pendingApprovalDays
readonlypendingApprovalDays:number
Days still awaiting facility overage approval (left unlocked; pay unaffected).