fix: update RPC calls to use company_id instead of user_id for invoice and arrival number generation (#154)

This commit is contained in:
Mattsson
2026-03-31 17:34:51 +02:00
committed by GitHub
parent 0dd1f5ebc1
commit fad4899cb4
14 changed files with 23 additions and 15 deletions
@@ -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