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, ',', '.');
| Belegnr. | -Datum | -Typ | +Beleg | Lieferant | Brutto | @@ -239,20 +237,22 @@ $restFormatted = number_format($remaining, 2, ',', '.'); data-beleg-id="= (int)$b['id'] ?>" style="cursor:= $hatBeleg ? 'pointer' : 'default' ?>" = $hatBeleg ? 'title="Klicken zum Vorschau anzeigen"' : '' ?>> - | - - = $h($b['beleg_nr']) ?> - - = $h($b['beleg_nr']) ?> - + |
+
+
+ = $h($b['beleg_nr']) ?>
+
+ = $h($b['beleg_nr']) ?>
+
+
+ = $h(View::formatDate($b['beleg_datum'])) ?>
+ = $h($b['belegtyp']) ?>
|
- = $h(View::formatDate($b['beleg_datum'])) ?> | -= $h($b['belegtyp']) ?> | = $b['supplier_name'] ? $h($b['supplier_name']) : '–' ?> | -- = $b['betrag_brutto'] ? $fmt($b['betrag_brutto']) . ' €' : '–' ?> + | + = $b['betrag_brutto'] ? $fmt($b['betrag_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 ?? []; |
|---|