fix: resolve syntax error in invoice-pdf.tsx

This commit is contained in:
DanielS
2026-07-09 22:57:31 +02:00
parent 2b92626bf9
commit 20f7d5a05a

View File

@@ -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) => {
</View>
<Text style={styles.title}>
{isSubscription ? 'Vertragsbestätigung (Abonnement)' : 'B2B-Rechnung'}
{isSubscription ? 'Angebot Vertrag B2B' : 'Angebot Vertrag B2B'}
</Text>
<View style={styles.section}>
@@ -203,7 +203,7 @@ export const InvoicePDF = ({ order, orderSnapshot, customer }: any) => {
</View>
</View>
{isSubscription ? (
{isSubscription && (
<View style={styles.sepaBox}>
<Text style={{ fontWeight: 'bold', marginBottom: 4 }}>SEPA-Lastschriftmandat</Text>
<Text style={{ fontSize: 8, color: '#555' }}>
@@ -215,13 +215,6 @@ export const InvoicePDF = ({ order, orderSnapshot, customer }: any) => {
</Text>
)}
</View>
) : (
<View style={{ marginTop: 20 }}>
<Text style={{ fontWeight: 'bold' }}>Zahlungsziel</Text>
<Text style={{ color: '#555' }}>
Zahlbar innerhalb von 14 Tagen nach Erhalt dieser Rechnung ohne Abzug.
</Text>
</View>
)}
<View style={styles.footer}>