Fix: Storno-Button in Rechnungsübersicht für Stornorechnungen ausblenden

This commit is contained in:
fds2610-bot 2026-05-05 17:05:41 +02:00
parent 9f1557ae66
commit e33fb4252e

View file

@ -64,7 +64,7 @@
<?php if ($inv['status'] !== 'Entwurf'): ?>
<a href="/invoices/<?= $h($inv['id']) ?>/pdf" class="btn btn-secondary btn-sm">PDF</a>
<?php endif; ?>
<?php if (in_array($inv['status'], ['Finalisiert','Gesendet','Bezahlt'])): ?>
<?php if (in_array($inv['status'], ['Finalisiert','Gesendet','Bezahlt']) && empty($inv['storno_of_id'])): ?>
<form method="post"
action="/invoices/<?= $h($inv['id']) ?>/cancel"
style="display:inline"