Skip to main content

Interface: ContractorPayEstimate

Defined in: src/server/services/payroll.ts:315

A contractor's own estimated pay for a period (for the contractor dashboard), summed across all of their rate-bearing assignments — matching how the period close would pay them.

Remarks​

Money fields are PHP integer centavos; hour fields are rounded to 2 dp. For a multi-assignment contractor, bimonthlyRateCentavos and weeklyContractedHours are the totals across assignments.

Properties​

bimonthlyRateCentavos​

readonly bimonthlyRateCentavos: number

Defined in: src/server/services/payroll.ts:319

Sum of bi-monthly contract rates (centavos) across assignments.


facilityName​

readonly facilityName: string | null

Defined in: src/server/services/payroll.ts:316

The single facility's name, or the literal 'Multiple facilities' when the contractor has more than one assignment in the period (null if the lone facility is unknown).


holidayHours​

readonly holidayHours: number

Defined in: src/server/services/payroll.ts:321

Total credited holiday hours (in-house admins only), rounded to 2 dp.


hoursWorked​

readonly hoursWorked: number

Defined in: src/server/services/payroll.ts:320

Total payable hours logged so far across assignments, rounded to 2 dp.


ratio​

readonly ratio: number

Defined in: src/server/services/payroll.ts:323

Paid fraction = totalCentavos / bimonthlyRateCentavos (0 when the rate is 0).


serviceType​

readonly serviceType: string | null

Defined in: src/server/services/payroll.ts:317

Always null here; reserved for callers that join service metadata.


totalCentavos​

readonly totalCentavos: number

Defined in: src/server/services/payroll.ts:322

Estimated total payout across assignments, in centavos.


weeklyContractedHours​

readonly weeklyContractedHours: number

Defined in: src/server/services/payroll.ts:318

Sum of weekly contracted hours across the contractor's assignments.


weeks​

readonly weeks: SerializedWeek[]

Defined in: src/server/services/payroll.ts:324

Per-week serialized breakdown, concatenated across all assignments.