From c222b793b0c3afc7e11993b087845a826bc34152 Mon Sep 17 00:00:00 2001 From: flfeders Date: Wed, 22 Jul 2026 19:48:30 +0200 Subject: [PATCH] Raise invoice payment QR code --- backend/src/utils/pdf.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/backend/src/utils/pdf.ts b/backend/src/utils/pdf.ts index eae891b..61588a1 100644 --- a/backend/src/utils/pdf.ts +++ b/backend/src/utils/pdf.ts @@ -990,13 +990,14 @@ export const createInvoicePDF = async (server:FastifyInstance, returnMode, invoi const mm = 2.83 const qrSize = 32 * mm const rightMargin = 20 * mm - const bottomMargin = 20 * mm + const bottomMargin = 40 * mm + const labelGap = 5 * mm const qrX = lastPage.getWidth() - rightMargin - qrSize const qrY = bottomMargin lastPage.drawText("Überweisung per QR-Code", { x: qrX, - y: qrY + qrSize + 7, + y: qrY + qrSize + labelGap, size: 8, color: rgb(0, 0, 0), lineHeight: 8,