From 68dcdd565d8ffd2f211604afc8713e7ca7d3bbc9 Mon Sep 17 00:00:00 2001 From: SJCoetz Date: Thu, 6 Aug 2026 12:21:00 +0200 Subject: [PATCH] chore(pdf): silence unused-vars on intentional totalAmount destructure Co-authored-by: Orca --- src/lib/pdf/purchase-order-document.tsx | 6 ++++++ 1 file changed, 6 insertions(+) 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(