From 244de2bff9f29146a4cffc40f2be655814a19704 Mon Sep 17 00:00:00 2001 From: Tudor Amariei Date: Fri, 1 Nov 2024 14:12:13 +0200 Subject: [PATCH] Swap first_name/last_name in the PDF form --- backend/donations/pdf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/donations/pdf.py b/backend/donations/pdf.py index 74eb8efe..2b3acc39 100644 --- a/backend/donations/pdf.py +++ b/backend/donations/pdf.py @@ -44,7 +44,7 @@ def add_donor_data(c: Canvas, person: Dict): if len(person["first_name"]) > 18: c.setFontSize(12) - c.drawString(75, donor_block_x, person["first_name"]) + c.drawString(75, donor_block_x - 22, person["first_name"]) c.setFontSize(default_font_size) # father's first letter @@ -55,7 +55,7 @@ def add_donor_data(c: Canvas, person: Dict): if len(last_name) > 34: c.setFontSize(10) - c.drawString(75, donor_block_x - 22, last_name) + c.drawString(75, donor_block_x, last_name) # ======================================= # THIRD ROW