From d72f9077a09c8a3495beedd803b7154a55eed33b Mon Sep 17 00:00:00 2001 From: fds2610-bot Date: Tue, 5 May 2026 15:37:01 +0200 Subject: [PATCH] Fix: $payDays vor erster Verwendung in PdfInvoiceService definieren --- src/Services/PdfInvoiceService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Services/PdfInvoiceService.php b/src/Services/PdfInvoiceService.php index 720c054..fc16e8a 100644 --- a/src/Services/PdfInvoiceService.php +++ b/src/Services/PdfInvoiceService.php @@ -115,6 +115,8 @@ class PdfInvoiceService . ''; } + $payDays = $inv['payment_days'] ?? 14; + // Fälligkeitsdatum (nicht bei Stornorechnung) $fälligText = ''; if (!$isStorno && !empty($inv['faellig_datum'])) { @@ -145,8 +147,6 @@ class PdfInvoiceService } } - $payDays = $inv['payment_days'] ?? 14; - // Empfänger-Land nur wenn nicht DE $land = ($inv['land'] ?? 'DE') !== 'DE' ? '
' . $h($inv['land']) : '';