Fix: Betreff-Tabelle gleichmäßige Spaltenbreite + Datum rechtsbündig in Vorschau + PDF

This commit is contained in:
fds2610-bot 2026-04-28 07:00:23 +02:00
parent c1cfad9dc3
commit 77b17cf158
2 changed files with 9 additions and 9 deletions

View file

@ -146,7 +146,7 @@ class PdfInvoiceService
<th>Rechnungsnummer</th>
<th>Kundennummer</th>
<th>Leistungszeitraum</th>
<th>Datum</th>
<th style="text-align:right">Datum</th>
</tr>
</thead>
<tbody>
@ -155,7 +155,7 @@ class PdfInvoiceService
<td><strong>{$h($inv['rechnungs_nr'] ?? 'Entwurf')}</strong></td>
<td>{$h($inv['kundennummer'])}</td>
<td>{$h($lz ?: '–')}</td>
<td>{$fmtDate($inv['rechnungs_datum'])}</td>
<td style="text-align:right">{$fmtDate($inv['rechnungs_datum'])}</td>
</tr>
</tbody>
</table>

View file

@ -89,14 +89,14 @@ $badgeClass = match($invoice['status']) {
</div>
<!-- Meta-Tabelle -->
<table style="width:100%;border-collapse:collapse;margin-top:2cm;margin-bottom:1.5rem;font-size:.7rem">
<table style="width:100%;table-layout:fixed;border-collapse:collapse;margin-top:2cm;margin-bottom:1.5rem;font-size:.7rem">
<thead>
<tr>
<th style="padding:.4rem .5rem;text-align:left;white-space:nowrap;font-weight:bold">Betreff</th>
<th style="padding:.4rem .5rem;text-align:left;white-space:nowrap;font-weight:bold">Rechnungsnummer</th>
<th style="padding:.4rem .5rem;text-align:left;white-space:nowrap;font-weight:bold">Kundennummer</th>
<th style="padding:.4rem .5rem;text-align:left;white-space:nowrap;font-weight:bold">Leistungszeitraum</th>
<th style="padding:.4rem .5rem;text-align:right;white-space:nowrap;width:100%;font-weight:bold">Datum</th>
<th style="width:20%;padding:.4rem .5rem;text-align:left;font-weight:bold">Betreff</th>
<th style="width:20%;padding:.4rem .5rem;text-align:left;font-weight:bold">Rechnungsnummer</th>
<th style="width:20%;padding:.4rem .5rem;text-align:left;font-weight:bold">Kundennummer</th>
<th style="width:20%;padding:.4rem .5rem;text-align:left;font-weight:bold">Leistungszeitraum</th>
<th style="width:20%;padding:.4rem .5rem;text-align:right;font-weight:bold">Datum</th>
</tr>
</thead>
<tbody>
@ -105,7 +105,7 @@ $badgeClass = match($invoice['status']) {
<td style="padding:.4rem .5rem;white-space:nowrap;font-weight:700"><?= $h($invoice['rechnungs_nr'] ?? 'Entwurf') ?></td>
<td style="padding:.4rem .5rem;white-space:nowrap"><?= $h($invoice['kundennummer']) ?></td>
<td style="padding:.4rem .5rem"><?= $lzHtml ?: '–' ?></td>
<td style="padding:.4rem .5rem;white-space:nowrap;text-align:right"><?= $h(View::formatDate($invoice['rechnungs_datum'])) ?></td>
<td style="padding:.4rem .5rem;text-align:right"><?= $h(View::formatDate($invoice['rechnungs_datum'])) ?></td>
</tr>
</tbody>
</table>