add pagination to footer

This commit is contained in:
Jonas Heinrich 2025-03-08 17:09:38 +01:00
parent 232c81e4b1
commit 4e210c1698
4 changed files with 70 additions and 29 deletions

View file

@ -15,7 +15,7 @@
float: right;
}
.company {
font-size: 0.8rem;
font-size: 0.9rem;
}
.invoice-details table {
width: 200px;
@ -35,6 +35,11 @@
color: #408236;
font-size: 0.8rem;
}
.page-number {
font-size: 0.8rem;
margin-top: 1.5rem;
text-align: center;
}
table.footer td.first-child {
width: 180px;
}
@ -43,6 +48,14 @@
}
h1.invoice-title {
color: #3a3a3a;
margin-bottom: 0rem;
font-weight: 800;
}
p.invoice-subtitle {
color: #3a3a3a;
font-weight: bold;
margin-top: 0.5rem;
margin-bottom: 2rem;
}
</style>
</head>
@ -56,7 +69,9 @@
<div id="client" class="client">
<small class="sender">Heinrich GmbH Blumenstraße 16-18 75233 Tiefenbronn</small>
<div class="client_address">
<b>per Email: info@test.de</b><br>
<?php if ($invoice->client_email && $custom_fields['invoice']['Via Email']) {
echo '<b>per Email: ' . $invoice->client_email . '</b><br>';
} ?>
<?php if ($invoice->client_title) {
echo $invoice->client_title . '<br>';
} ?>
@ -164,6 +179,16 @@
</div>
<h1 class="invoice-title"><?php echo trans('invoice') ?></h1>
<?php
$rechnungs_betreff = $custom_fields['invoice']['Betreff'];
$rechnungs_text = $custom_fields['invoice']['Text'];
if ($rechnungs_betreff) {
echo '<p class="invoice-subtitle">' . $rechnungs_betreff . '</p>';
}
if ($rechnungs_text) {
echo '<p>' . $rechnungs_text . '</p>';
}
?>
<table class="item-table">
<thead>
@ -211,7 +236,7 @@
<tr>
<td <?php echo($show_item_discounts ? 'colspan="5"' : 'colspan="4"'); ?> class="text-right">
Nettosumme
Summe
</td>
<td class="text-right"><?php echo format_currency($invoice->invoice_item_subtotal); ?></td>
</tr>
@ -219,7 +244,7 @@
<?php if ($invoice->invoice_item_tax_total > 0) { ?>
<tr>
<td <?php echo($show_item_discounts ? 'colspan="5"' : 'colspan="4"'); ?> class="text-right">
<?php _trans('item_tax'); ?>
19% MwSt.
</td>
<td class="text-right">
<?php echo format_currency($invoice->invoice_item_tax_total); ?>
@ -258,18 +283,9 @@
</td>
</tr>
<?php endif; ?>
<tr>
<td <?php echo($show_item_discounts ? 'colspan="5"' : 'colspan="4"'); ?> class="text-right">
0% MwSt
</td>
<td class="text-right">
0,00
</td>
</tr>
<tr>
<td <?php echo($show_item_discounts ? 'colspan="5"' : 'colspan="4"'); ?> class="text-right">
<b>Gesamtbetrag</b>
<b>Endsumme</b>
</td>
<td class="text-right">
<b><?php echo format_currency($invoice->invoice_balance); ?></b>
@ -289,5 +305,11 @@
<?php endif; ?>
</footer>
<div>
Zahlungsbedingungen: zahlbar ab Rechnungsdatum innerhalb 8 Tagen rein netto.
<br><br>
Bitte überweisen Sie den Rechnungsbetrag unter Angabe der Rechnungsnummer auf unser Geschäftskonto. Vielen Dank.<br><br>
Wir weisen Sie darauf hin, dass Sie nach § 14b Abs. 1 S. 5 UStG verpflichtet sind, diese Rechnung zwei Jahre lang aufzubewahren.<br><br>
</div>
</body>
</html>