Function: discardPayRun()
discardPayRun(
_prev,formData):Promise<DiscardState>
Defined in: src/server/actions/payroll.ts:320
Owner-only: discard a not-yet-funded pay run (undo a mistaken close). Unlocks the batch's paid
entries, deletes its payments, and removes the batch via the discard_payroll_batch RPC.
Funded/closed runs cannot be discarded.
Parameters
_prev
formData
FormData
Returns
Promise<DiscardState>