Skip to main content

Function: readInvoiceConfig()

readInvoiceConfig(svc, companyId): Promise<InvoiceConfig>

Defined in: src/server/services/invoice/generate.ts:361

The company's invoice_config (issuer letterhead, bank details, logo). Shared with the AR statement PDF so both documents print the same letterhead and the same remittance instructions — a statement that named different bank details than the invoices it lists would be a payment incident waiting to happen.

Parameters

svc

SupabaseClient<Database>

companyId

string

Returns

Promise<InvoiceConfig>