Skip to main content

Function: getLoggedHoursForPeriod()

getLoggedHoursForPeriod(contractorId, periodDate, assignmentId?, endDate?): Promise<LoggedHoursState>

Defined in: src/server/actions/manualTimeEntry.ts:425

Read-only: hours already logged per date for a contractor across the bi-monthly period containing periodDate, so the manual-entry grid can show what's already there before the owner adds or corrects hours. Scoped to a single assignmentId when given (a contractor can hold concurrent assignments at different facilities — summing them would misrepresent the day). Owner-gated.

Parameters

contractorId

string

periodDate

string

assignmentId?

string

endDate?

string

Returns

Promise<LoggedHoursState>