Skip to main content

Interface: PayTimeEntry

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

One day's logged work. The engine sums hours for entries whose date falls within a week's (or the period's) inclusive span; negative hours are rejected by calculateContractorPay with invalid_hours.

Properties​

date​

readonly date: CalendarDate

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

Calendar day the hours were worked (used to bucket the entry into a week/period).


hours​

readonly hours: number

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

Hours worked that day. Must be non-negative; the engine does not floor or round it.