Function: inactiveDefaultBack()
inactiveDefaultBack(
svc,companyId):Promise<number|null>
Defined in: src/server/services/weeklyHours.ts:68
The back offset that lands the latest week with inactive-assignment hours on the newest edge of
the window — so toggling "show inactive" jumps to where those (now-ended) contractors last worked.
Returns null when there are no inactive assignments with recorded hours.
Parameters
svc
SupabaseClient
companyId
string
Returns
Promise<number | null>