From f4ebe89d00492a6fba6214a5e03dedc857feec47 Mon Sep 17 00:00:00 2001 From: fds2610-bot Date: Sun, 3 May 2026 17:58:08 +0200 Subject: [PATCH] =?UTF-8?q?Fix:=20Inhaber-Zeile=20in=20Rechnungs-Footer=20?= =?UTF-8?q?nur=20bei=20gef=C3=BClltem=20Feld=20anzeigen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Services/PdfInvoiceService.php | 5 +++-- src/Views/invoices/show.php | 2 +- src/version.txt | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Services/PdfInvoiceService.php b/src/Services/PdfInvoiceService.php index 9a4b446..09e2230 100644 --- a/src/Services/PdfInvoiceService.php +++ b/src/Services/PdfInvoiceService.php @@ -220,13 +220,14 @@ HTML; private function buildFooter(array $settings): string { $h = fn($v) => htmlspecialchars((string)$v, ENT_QUOTES, 'UTF-8'); + $inhaber = trim((string)($settings['inhaber'] ?? '')); + $inhaberLine = $inhaber !== '' ? "Inh. {$h($inhaber)}
" : ''; return << {$h($settings['firma'] ?? '')}
- Inh. {$h($settings['inhaber'] ?? '')}
- {$h($settings['strasse'] ?? '')}
+ {$inhaberLine}{$h($settings['strasse'] ?? '')}
{$h($settings['plz'] ?? '')} {$h($settings['ort'] ?? '')}
USt-ID: {$h($settings['ust_id'] ?? '')} diff --git a/src/Views/invoices/show.php b/src/Views/invoices/show.php index f064f0c..5d2e143 100644 --- a/src/Views/invoices/show.php +++ b/src/Views/invoices/show.php @@ -174,7 +174,7 @@ $badgeClass = match($invoice['status']) {

- Inh.
+ Inh.


USt-ID: diff --git a/src/version.txt b/src/version.txt index b52cf7f..91fa3d4 100644 --- a/src/version.txt +++ b/src/version.txt @@ -1 +1 @@ -1-260428 +1-260503