From 20f7d5a05a4947658aea41625eb7dfa4c1881a3b Mon Sep 17 00:00:00 2001 From: DanielS Date: Thu, 9 Jul 2026 22:57:31 +0200 Subject: [PATCH] fix: resolve syntax error in invoice-pdf.tsx --- shop/components/invoice-pdf.tsx | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/shop/components/invoice-pdf.tsx b/shop/components/invoice-pdf.tsx index 7713967..66909b7 100644 --- a/shop/components/invoice-pdf.tsx +++ b/shop/components/invoice-pdf.tsx @@ -103,7 +103,7 @@ export const InvoicePDF = ({ order, orderSnapshot, customer }: any) => { const totalTax = Math.round(totalNet * (taxRate / 100) * 100) / 100; const totalGross = Math.round((totalNet + totalTax) * 100) / 100; - const formattedPrice = (val: number) => + const formattedPrice = (val: number) => new Intl.NumberFormat('de-DE', { style: 'currency', currency: 'EUR' }).format(val); return ( @@ -123,7 +123,7 @@ export const InvoicePDF = ({ order, orderSnapshot, customer }: any) => { - {isSubscription ? 'Vertragsbestätigung (Abonnement)' : 'B2B-Rechnung'} + {isSubscription ? 'Angebot Vertrag B2B' : 'Angebot Vertrag B2B'} @@ -203,7 +203,7 @@ export const InvoicePDF = ({ order, orderSnapshot, customer }: any) => { - {isSubscription ? ( + {isSubscription && ( SEPA-Lastschriftmandat @@ -215,13 +215,6 @@ export const InvoicePDF = ({ order, orderSnapshot, customer }: any) => { )} - ) : ( - - Zahlungsziel - - Zahlbar innerhalb von 14 Tagen nach Erhalt dieser Rechnung ohne Abzug. - - )}