From 5a4797288d6b2cca4b943f9c04696a9005869e3b Mon Sep 17 00:00:00 2001 From: Max Moon Date: Mon, 7 Sep 2026 22:06:33 +0100 Subject: [PATCH] feat: allow draft invoice downloads --- src/app/(app)/invoices/[id]/page.tsx | 8 +++++++- src/app/api/invoices/[id]/pdf/route.ts | 6 ------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/app/(app)/invoices/[id]/page.tsx b/src/app/(app)/invoices/[id]/page.tsx index 2afdec8..39b9dc3 100644 --- a/src/app/(app)/invoices/[id]/page.tsx +++ b/src/app/(app)/invoices/[id]/page.tsx @@ -83,6 +83,12 @@ export default async function InvoicePage({ params }: InvoicePageProps) { + ) : ( @@ -156,7 +162,7 @@ export default async function InvoicePage({ params }: InvoicePageProps) {

Invoice preview

The downloaded PDF uses this same document.

- {invoice.lifecycle === "issued" ? ( + {invoice.lifecycle !== "void" ? (