Skip to content

Commit

Permalink
FIX spacing between issued to and delivery address
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmyli97 committed Dec 4, 2024
1 parent 4c6cd65 commit b00d1b0
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions app/pdfs/distribution_pdf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,21 @@ def compute_and_render
text @organization.email, align: :right
end

text "Issued to:", style: :bold
font_size 12
text @distribution.partner.name
move_up 24

profile = @distribution.partner.profile

text "Partner Primary Contact:", style: :bold, align: :right
font_size 12
text "Partner Primary Contact:", style: :bold, align: :right
text (profile.primary_contact_name.presence || " "), align: :right
font_size 10
text (profile.primary_contact_email.presence || " "), align: :right
text (profile.primary_contact_phone.presence || " "), align: :right
move_up 40

text "Issued to:", style: :bold
font_size 12
text @distribution.partner.name
font_size 10
move_down 10

if (profile.address1.present? || profile.program_address1.present?) &&
(@distribution.delivery? || @distribution.shipped?)
Expand Down
Binary file modified spec/fixtures/files/distribution_incomplete_address.pdf
Binary file not shown.
Binary file modified spec/fixtures/files/distribution_no_contact.pdf
Binary file not shown.
Binary file modified spec/fixtures/files/distribution_pickup.pdf
Binary file not shown.
Binary file modified spec/fixtures/files/distribution_program_address.pdf
Binary file not shown.
Binary file modified spec/fixtures/files/distribution_same_address.pdf
Binary file not shown.

0 comments on commit b00d1b0

Please sign in to comment.