Skip to main content

Function: getLoggedHoursForPeriod()

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

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

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). Also resolves any invoice_id on those days to a display label (ADR-0050 §3) so every CreateManualTimeEntryForm mount gets the reissue warning from this one owner-gated, company-scoped read. Owner-gated.

Parameters

contractorId

string

periodDate

string

assignmentId?

string

endDate?

string

Returns

Promise<LoggedHoursState>