Skip to main content

Function: offboardContractor()

offboardContractor(_prev, formData): Promise<OffboardState>

Defined in: src/server/actions/offboarding.ts:27

Owner-only: offboard a contractor. Archives them, sets the contract end date, end-dates their active assignments, and locks their editable hours through the end date so nothing changes after they leave. Overage still pending facility approval is left unlocked (that invoicing path stays open). Reversible by re-activating + unlocking if done by mistake.

Parameters

_prev

OffboardState

formData

FormData

Returns

Promise<OffboardState>