Permalink
Browse files

adds state and country name in subscribers printable list

  • Loading branch information...
1 parent 416a6bf commit 1f1bcac0743a9db89d2cb4064bbabbcfd192f233 @kennyadsl kennyadsl committed Aug 1, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 app/controllers/spree/admin/products/issues_controller.rb
@@ -20,7 +20,8 @@ def show
pdf.text "#{address.firstname} #{address.lastname}"
pdf.text address.address1
pdf.text address.address2 if address.address2.present?
- pdf.text "#{address.city} (#{address.state_name}) #{address.zipcode}"
+ pdf.text "#{address.city} (#{address.state_id? ? address.state.abbr : address.state_name}) #{address.zipcode}"
+ pdf.text "#{address.country}"
end
send_data labels.document.render, :filename => "#{@issue.name}.pdf", :type => "application/pdf", disposition: "inline"
end

0 comments on commit 1f1bcac

Please sign in to comment.