Fix: Buchungs-Redirect, Steuerart-Label, Bankbuchungs-Listenansicht

- 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
This commit is contained in:
fds2610-bot 2026-05-30 14:23:05 +02:00
parent af83ae8592
commit 6bff984ca0
3 changed files with 16 additions and 17 deletions

View file

@ -209,10 +209,9 @@ class BookingController extends BaseController
if ($newAssetId !== null) { if ($newAssetId !== null) {
View::redirect("/assets/{$newAssetId}/edit", 'Buchung erfasst. Bitte Wirtschaftsgut-Details ergänzen.'); 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 { } 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) { } catch (\PDOException $e) {
error_log('[Steuerkram] PDO-Fehler in BookingController::store(): ' . $e->getMessage()); error_log('[Steuerkram] PDO-Fehler in BookingController::store(): ' . $e->getMessage());

View file

@ -224,9 +224,7 @@ $restFormatted = number_format($remaining, 2, ',', '.');
<table> <table>
<thead> <thead>
<tr> <tr>
<th>Belegnr.</th> <th>Beleg</th>
<th>Datum</th>
<th>Typ</th>
<th>Lieferant</th> <th>Lieferant</th>
<th class="td-right">Brutto</th> <th class="td-right">Brutto</th>
<th></th> <th></th>
@ -239,20 +237,22 @@ $restFormatted = number_format($remaining, 2, ',', '.');
data-beleg-id="<?= (int)$b['id'] ?>" data-beleg-id="<?= (int)$b['id'] ?>"
style="cursor:<?= $hatBeleg ? 'pointer' : 'default' ?>" style="cursor:<?= $hatBeleg ? 'pointer' : 'default' ?>"
<?= $hatBeleg ? 'title="Klicken zum Vorschau anzeigen"' : '' ?>> <?= $hatBeleg ? 'title="Klicken zum Vorschau anzeigen"' : '' ?>>
<td class="td-mono" onclick="event.stopPropagation()"> <td onclick="event.stopPropagation()" style="white-space:nowrap">
<?php if ($hatBeleg): ?> <div class="td-mono" style="font-size:.8rem">
<a href="/belege/<?= (int)$b['id'] ?>" target="_blank"><?= $h($b['beleg_nr']) ?></a> <?php if ($hatBeleg): ?>
<?php else: ?> <a href="/belege/<?= (int)$b['id'] ?>" target="_blank"><?= $h($b['beleg_nr']) ?></a>
<a href="/invoices/<?= (int)$b['invoice_id'] ?>" target="_blank"><?= $h($b['beleg_nr']) ?></a> <?php else: ?>
<?php endif; ?> <a href="/invoices/<?= (int)$b['invoice_id'] ?>" target="_blank"><?= $h($b['beleg_nr']) ?></a>
<?php endif; ?>
</div>
<div class="td-mono text-muted" style="font-size:.78rem"><?= $h(View::formatDate($b['beleg_datum'])) ?></div>
<div style="margin-top:.15rem"><span class="badge badge-gray" style="font-size:.7rem"><?= $h($b['belegtyp']) ?></span></div>
</td> </td>
<td class="td-mono"><?= $h(View::formatDate($b['beleg_datum'])) ?></td>
<td><span class="badge badge-gray"><?= $h($b['belegtyp']) ?></span></td>
<td> <td>
<?= $b['supplier_name'] ? $h($b['supplier_name']) : '<span class="text-muted">–</span>' ?> <?= $b['supplier_name'] ? $h($b['supplier_name']) : '<span class="text-muted">–</span>' ?>
</td> </td>
<td class="td-right td-mono"> <td class="td-right td-mono" style="white-space:nowrap">
<?= $b['betrag_brutto'] ? $fmt($b['betrag_brutto']) . ' €' : '<span class="text-muted">–</span>' ?> <?= $b['betrag_brutto'] ? $fmt($b['betrag_brutto']) : '<span class="text-muted">–</span>' ?>
</td> </td>
<td onclick="event.stopPropagation()"> <td onclick="event.stopPropagation()">
<?php if ($hatBeleg): ?> <?php if ($hatBeleg): ?>

View file

@ -484,7 +484,7 @@ $suppliers = $suppliers ?? [];
<select name="steuerart" id="steuerart_select"> <select name="steuerart" id="steuerart_select">
<?php <?php
$steuerartOptionen = [ $steuerartOptionen = [
'normal' => 'Normal (Inland)', 'normal' => 'Normal (Inland/Drittland)',
'ig_lieferung' => 'Steuerfreie ig. Lieferung § 4 Nr. 1b (Kz 41)', 'ig_lieferung' => 'Steuerfreie ig. Lieferung § 4 Nr. 1b (Kz 41)',
'export' => 'Steuerfreie Ausfuhr § 4 Nr. 1a (Kz 44)', 'export' => 'Steuerfreie Ausfuhr § 4 Nr. 1a (Kz 44)',
'ig_erwerb_19' => 'Innergemeinschaftlicher Erwerb 19 % – ReverseCharge (Kz 89/91/67)', 'ig_erwerb_19' => 'Innergemeinschaftlicher Erwerb 19 % – ReverseCharge (Kz 89/91/67)',