Skip to main content

Interface: WeekPayResult

Defined in: src/lib/pay/index.ts:146

One settlement row in a PayBreakdown. For outsourced workers this is one settling ISO Mon–Sun week; for in-house admins and mid-period offboards it is a single row spanning the whole (active) period. payCentavos === roundHalfAwayFromZero(allocatedCentavos × ratio).

Properties

adjustedContractedHours

readonly adjustedContractedHours: number

Defined in: src/lib/pay/index.ts:158

The week's full-time-equivalent expectation (the denominator of ratio).


allocatedCentavos

readonly allocatedCentavos: Centavos

Defined in: src/lib/pay/index.ts:164

This row's share of the bi-monthly rate before applying ratio (PHP Centavos).


days

readonly days: number

Defined in: src/lib/pay/index.ts:152

Calendar days in [start, end] inclusive (7 for a whole settling week).


end

readonly end: CalendarDate

Defined in: src/lib/pay/index.ts:150

Inclusive span end (Sunday for an outsourced week; period/active-window end otherwise).


holidayHours

readonly holidayHours: number

Defined in: src/lib/pay/index.ts:156

Approved PTO hours credited in this span (always 0 for outsourced rows).


hoursWorked

readonly hoursWorked: number

Defined in: src/lib/pay/index.ts:154

Hours actually worked in this span (sum of overlapping PayTimeEntry hours).


overageApproved

readonly overageApproved: boolean

Defined in: src/lib/pay/index.ts:162

True when this week's hours-over-contracted were paid because overage was approved.


payCentavos

readonly payCentavos: Centavos

Defined in: src/lib/pay/index.ts:166

Final pay for this row in PHP Centavos (= allocatedCentavos × ratio, rounded).


ratio

readonly ratio: number

Defined in: src/lib/pay/index.ts:160

Worked ÷ full-time expectation. May exceed 1 for an approved-overage week.


start

readonly start: CalendarDate

Defined in: src/lib/pay/index.ts:148

Inclusive span start (Monday for an outsourced week; period/active-window start otherwise).