close_and_lock_payroll_batch
PostgREST stored procedure — POST /rest/v1/rpc/close_and_lock_payroll_batch.
Call it through the Supabase client (RLS and the service role are enforced by the function):
const { data, error } = await supabase.rpc('close_and_lock_payroll_batch', { p_actor, p_assignment_ids, p_batch_id, p_company_id, p_expected_entry_count, p_expected_hours });
Arguments
| Argument | Type | Required |
|---|---|---|
p_actor | uuid | yes |
p_assignment_ids | uuid[] | yes |
p_batch_id | uuid | yes |
p_company_id | uuid | yes |
p_expected_entry_count | integer | yes |
p_expected_hours | numeric | yes |
Generated from
specs/supabase.json. The function's behaviour is defined by its SQL migration; this page documents its call signature only.