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 ?? [];