Skip to main content

Function: addContractService()

addContractService(facilityId, serviceName, hourlyRateUsd?): Promise<FacilityFormState>

Defined in: src/server/actions/facilities.ts:486

Add (or update the rate of) a service line on a facility's latest contract — used when an assignment's role isn't yet in the contract. Matches by case-insensitive service name. Requires an existing contract on file. Company-scoped; stamps edited_at.

Parameters

facilityId

string

serviceName

string

hourlyRateUsd?

number

Returns

Promise<FacilityFormState>