Changes
Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
co-authored by
renee-png
parent
ae45753b7e
commit
36d457a5ca
@@ -275,14 +275,15 @@ export async function downloadInvoicePdf(input: InvoicePdfInput, filename: strin
|
||||
ty += 11;
|
||||
}
|
||||
|
||||
// Info card (right) — key/value rows
|
||||
// Info card (right) — key/value rows.
|
||||
// "Case No." is shown directly under the invoice number for quick reference.
|
||||
const infoRows: Array<[string, string]> = [
|
||||
["Inv. Number", input.invoice.number],
|
||||
];
|
||||
if (input.invoice.matter) infoRows.push(["Matter", input.invoice.matter]);
|
||||
if (input.invoice.caseNumber) infoRows.push(["Case No.", input.invoice.caseNumber]);
|
||||
infoRows.push(["Date of Issue", formatDate(input.invoice.issueDate)]);
|
||||
if (input.invoice.terms) infoRows.push(["Terms", input.invoice.terms]);
|
||||
if (input.invoice.dueDate) infoRows.push(["Date Due", formatDate(input.invoice.dueDate)]);
|
||||
if (input.invoice.dueDate) infoRows.push(["Date Due", formatDate(input.invoke.dueDate ?? input.invoice.dueDate)]);
|
||||
|
||||
const rowH = 18;
|
||||
const infoTop = y - 4;
|
||||
|
||||
Reference in New Issue
Block a user