diff --git a/src/lib/pdf/purchase-order-document.tsx b/src/lib/pdf/purchase-order-document.tsx index fa6be64..33b0bfc 100644 --- a/src/lib/pdf/purchase-order-document.tsx +++ b/src/lib/pdf/purchase-order-document.tsx @@ -85,6 +85,12 @@ export function PurchaseOrderDocument({ generatedAtIso, totalAmount, }: PurchaseOrderDocumentProps) { + // `totalAmount` is kept on the interface and in the destructure for API + // backwards compat with the route handler — the printed Total is + // subtotal + vat, so the prop has no effect here. The `void` reference + // is the documented way to silence @typescript-eslint/no-unused-vars + // without losing the destructure. + void totalAmount; const accent = letterhead.accent_color || defaultAccentFor(