From 6bff984ca06b6b9622de20bb4b742f8af0d0ed2a Mon Sep 17 00:00:00 2001 From: fds2610-bot Date: Sat, 30 May 2026 14:23:05 +0200 Subject: [PATCH] Fix: Buchungs-Redirect, Steuerart-Label, Bankbuchungs-Listenansicht MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Nach Buchung aus Bank-Kontext bleibt Ansicht auf dem Beleg (kein Redirect zu /bank) - Steuerart-Option 'Normal' umbenannt in 'Normal (Inland/Drittland)' - Offene-Belege-Tabelle: erste drei Spalten gestapelt, kein doppeltes €-Zeichen --- src/Controllers/BookingController.php | 5 ++--- src/Views/bank/show.php | 26 +++++++++++++------------- src/Views/belege/detail.php | 2 +- 3 files changed, 16 insertions(+), 17 deletions(-) diff --git a/src/Controllers/BookingController.php b/src/Controllers/BookingController.php index e016081..1e23129 100644 --- a/src/Controllers/BookingController.php +++ b/src/Controllers/BookingController.php @@ -209,10 +209,9 @@ class BookingController extends BaseController if ($newAssetId !== null) { View::redirect("/assets/{$newAssetId}/edit", 'Buchung erfasst. Bitte Wirtschaftsgut-Details ergänzen.'); - } elseif ($bankTxId > 0) { - View::redirect('/bank', 'Buchung erfasst und Bankbuchung verknüpft.'); } else { - View::redirect("/belege/{$belegId}", 'Buchung erfasst.'); + $msg = $bankTxId > 0 ? 'Buchung erfasst und Bankbuchung verknüpft.' : 'Buchung erfasst.'; + View::redirect("/belege/{$belegId}", $msg); } } catch (\PDOException $e) { error_log('[Steuerkram] PDO-Fehler in BookingController::store(): ' . $e->getMessage()); diff --git a/src/Views/bank/show.php b/src/Views/bank/show.php index 875ea63..9da9253 100644 --- a/src/Views/bank/show.php +++ b/src/Views/bank/show.php @@ -224,9 +224,7 @@ $restFormatted = number_format($remaining, 2, ',', '.'); - - - + @@ -239,20 +237,22 @@ $restFormatted = number_format($remaining, 2, ',', '.'); data-beleg-id="" style="cursor:" > - - - -
Belegnr.DatumTypBeleg Lieferant Brutto - - - - - + +
+ + + + + +
+
+
–' ?> - –' ?> + + –' ?> diff --git a/src/Views/belege/detail.php b/src/Views/belege/detail.php index 2f861e9..d05ea6c 100644 --- a/src/Views/belege/detail.php +++ b/src/Views/belege/detail.php @@ -484,7 +484,7 @@ $suppliers = $suppliers ?? [];