Fix: Vorschau-Titel größer (20pt), Referenzzeile einzeilig

This commit is contained in:
fds2610-bot 2026-05-05 10:16:45 +02:00
parent 3fcc4e6e26
commit 9d819b491c
2 changed files with 4 additions and 4 deletions

View file

@ -110,7 +110,7 @@ class PdfInvoiceService
$stornoRefHtml = '';
if ($isStorno && !empty($inv['original_rechnungs_nr'])) {
$stornoRefHtml = '<div style="font-size:7pt;margin-top:2mm">'
. 'zu Rechnung Nr. <strong>' . $h($inv['original_rechnungs_nr']) . '</strong><br>'
. 'zu Rechnung Nr. <strong>' . $h($inv['original_rechnungs_nr']) . '</strong>'
. ' vom ' . $fmtDate($inv['original_rechnungs_datum'] ?? '')
. '</div>';
}

View file

@ -102,11 +102,11 @@ $badgeClass = match($invoice['status']) {
<?php if ($invoice['land'] !== 'DE'): ?><br><?= $h($invoice['land']) ?><?php endif; ?>
</div>
</div>
<div style="text-align:right;font-size:15pt">
<div style="text-align:right;font-size:20pt">
<?= !empty($invoice['storno_of_id']) ? 'STORNORECHNUNG' : 'Rechnung' ?>
<?php if (!empty($invoice['storno_of_id']) && !empty($originalrechnung)): ?>
<div style="font-size:.65rem;margin-top:.3rem;font-weight:normal">
zu Rechnung Nr. <strong><?= $h($originalrechnung['rechnungs_nr']) ?></strong><br>
zu Rechnung Nr. <strong><?= $h($originalrechnung['rechnungs_nr']) ?></strong>
vom <?= $h(View::formatDate($originalrechnung['rechnungs_datum'] ?? '')) ?>
</div>
<?php endif; ?>