Skip to content

Commit

Permalink
Swap first_name/last_name in the PDF form
Browse files Browse the repository at this point in the history
  • Loading branch information
tudoramariei committed Nov 1, 2024
1 parent bf1ec96 commit 244de2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/donations/pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 244de2b

Please sign in to comment.