Fix: Storno-Button in Rechnungsübersicht für Stornorechnungen ausblenden
This commit is contained in:
parent
9f1557ae66
commit
e33fb4252e
1 changed files with 1 additions and 1 deletions
|
|
@ -64,7 +64,7 @@
|
||||||
<?php if ($inv['status'] !== 'Entwurf'): ?>
|
<?php if ($inv['status'] !== 'Entwurf'): ?>
|
||||||
<a href="/invoices/<?= $h($inv['id']) ?>/pdf" class="btn btn-secondary btn-sm">PDF</a>
|
<a href="/invoices/<?= $h($inv['id']) ?>/pdf" class="btn btn-secondary btn-sm">PDF</a>
|
||||||
<?php endif; ?>
|
<?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"
|
<form method="post"
|
||||||
action="/invoices/<?= $h($inv['id']) ?>/cancel"
|
action="/invoices/<?= $h($inv['id']) ?>/cancel"
|
||||||
style="display:inline"
|
style="display:inline"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue