Function: loadInvoicePdfAttachment()
loadInvoicePdfAttachment(
svc,pdfPath,invoiceNumber):Promise<EmailAttachment|null>
Defined in: src/server/services/invoice/send.ts:195
Best-effort load of an invoice's stored PDF as a base64 email attachment. Returns null when the invoice has no PDF yet or the download fails — the email still goes out, just without the file.
Parameters
svc
SupabaseClient<Database>
pdfPath
string | null | undefined
invoiceNumber
string
Returns
Promise<EmailAttachment | null>