This commit is contained in:
Matthias Hochmeister
2026-03-26 16:02:05 +01:00
parent 80cfb244cf
commit 19dd528765
2 changed files with 68 additions and 29 deletions

View File

@@ -590,14 +590,17 @@ export default function BestellungDetail() {
doc.setFont('helvetica', 'normal');
doc.setTextColor(0, 0, 0);
// Ort/Datum line (left)
doc.line(10, curY, 90, curY);
// Place and date (right-aligned, above signature line)
const today = new Date();
const dd = String(today.getDate()).padStart(2, '0');
const mm = String(today.getMonth() + 1).padStart(2, '0');
const yyyy = today.getFullYear();
doc.text(`St. Valentin, am ${dd}.${mm}.${yyyy}`, 200, curY - 6, { align: 'right' });
// Signature line (right)
doc.line(120, curY, 200, curY);
curY += 4;
doc.text('Ort, Datum', 10, curY);
const sigName = bestellung.besteller_dienstgrad
? `${kurzDienstgrad(bestellung.besteller_dienstgrad)} ${bestellung.besteller_name || ''}`
: (bestellung.besteller_name || '');