V1.1 Verschiedene Anpassungen

This commit is contained in:
2026-02-03 21:32:20 +01:00
parent 952c353118
commit 4be9a365b3
18 changed files with 1068 additions and 114 deletions

View File

@@ -618,6 +618,12 @@ async function generateCheckinCheckoutQRPDF(req, res, urlType = 'internal') {
doc.fontSize(18).text(title, { align: 'center' });
doc.moveDown(1.5);
const displayFirst = (req.session.firstname || '').trim();
const displayLast = (req.session.lastname || '').trim();
const displayName = [displayFirst, displayLast].filter(Boolean).join(' ') || 'Mitarbeiter';
doc.fontSize(12).font('Helvetica').text('Mitarbeiter: ' + displayName, { align: 'center' });
doc.moveDown(0.5);
const topY = doc.y;
doc.image(checkinQRBuffer, left1, topY, { width: qrSize, height: qrSize });
doc.image(checkoutQRBuffer, left2, topY, { width: qrSize, height: qrSize });