Skip to main content

Function: findStrandedLateHours()

findStrandedLateHours(client, companyId): Promise<StrandedGroup[]>

Defined in: src/server/services/strandedHours.ts:142

Find contractor hours in STRANDED statuses whose paying run is closed (see ADR-0056): genuinely stranded (entered after the run's pricing snapshot — payable-but-never-paid) and alreadyPaid groups (priced by the run but missed by its calendar-range lock, #162). Company-scoped on every query. Works with either the service client or an RLS-scoped server client.

Parameters​

client​

SupabaseClient<Database>

companyId​

string

Returns​

Promise<StrandedGroup[]>