Skip to main content

Function: pauseFacilityBilling()

pauseFacilityBilling(facilityId, fromIso, untilIso): Promise<{ ok: true; } | { error: string; ok: false; }>

Defined in: src/server/actions/invoicing.ts:188

Pause a facility's billing over a dated window. While paused, the weekly run skips the facility's assignments (no billing, no coverage-gap noise) and shows it as paused; it auto-resumes once until passes. until null = paused indefinitely (until resumeFacilityBilling).

Parameters

facilityId

string

fromIso

string

untilIso

string | null

Returns

Promise<{ ok: true; } | { error: string; ok: false; }>