update
This commit is contained in:
@@ -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 || '');
|
||||
|
||||
Reference in New Issue
Block a user