Skip to main content

Function: loadTimeApproval()

loadTimeApproval(companyId, periodStart, periodEnd): Promise<TimeApprovalView>

Defined in: src/server/services/timeApproval.ts:67

Time summary for a period, for the Approve Time grid — one row per (contractor, assignment) so the grid groups by facility and a contractor split across facilities is reviewed/approved per facility. Reports tracked vs PTO (approved holidays) hours, days worked, and whether anything is still pending approval. PTO is contractor-level, so it's attributed to a single row to avoid double count.

Parameters

companyId

string

periodStart

string

periodEnd

string

Returns

Promise<TimeApprovalView>