fix: update RPC calls to use company_id instead of user_id for invoice and arrival number generation (#154)
This commit is contained in:
@@ -340,7 +340,7 @@ async function commitCreateInvoice(
|
||||
|
||||
// Generate invoice number
|
||||
const { data: invoiceNumber } = await supabase.rpc('generate_invoice_number', {
|
||||
p_user_id: userId,
|
||||
p_company_id: companyId,
|
||||
})
|
||||
|
||||
// Create invoice
|
||||
|
||||
Reference in New Issue
Block a user