Function: closeAndLockBatch()
closeAndLockBatch(
batchId):Promise<PayrollActionState>
Defined in: src/server/actions/payroll.ts:223
Owner-only: Close & lock a DRAFT pay run. Recomputes the run to obtain the exact priced set, then
via close_and_lock_payroll_batch re-verifies the hours have not drifted since Prepare, locks the
period's paid entries, refreshes the batch total (base + adjustments), and advances it to
prepared (ready to download the Wise file and fund). The Wise file is downloadable afterward.
Parameters
batchId
string
Returns
Promise<PayrollActionState>