update footer

This commit is contained in:
Jonas Heinrich 2025-08-21 15:03:34 +02:00
parent a8c272a2d6
commit a779ea08aa

View file

@ -130,9 +130,9 @@
<h1 class="invoice-title"><?php echo trans('invoice') . ' ' . $invoice->invoice_number; ?></h1>
<?php
$leistungsort = $custom_fields['invoice']['leistung_ort'];
$leistung_von = $custom_fields['invoice']['leistung_von'];
$leistung_bis = $custom_fields['invoice']['leistung_bis'];
$leistungsort = $custom_fields['invoice']['leistung_ort'] ?? null;
$leistung_von = $custom_fields['invoice']['leistung_von'] ?? null;
$leistung_bis = $custom_fields['invoice']['leistung_bis'] ?? null;
if ($leistung_von && $leistung_bis) {
$leistung_von = new DateTime($leistung_von);
$leistung_bis = new DateTime($leistung_bis);
@ -260,14 +260,8 @@
</main>
<footer>
<?php if ($invoice->invoice_terms) : ?>
<div class="notes">
<b><?php _trans('terms'); ?></b><br/>
<?php echo nl2br(htmlsc($invoice->invoice_terms)); ?>
</div>
<?php endif; ?>
</footer>
<sethtmlpagefooter name="defaultFooter" value="on" />
<sethtmlpagefooter name="footerWithPageNumbers" value="on" />
</body>
</html>