adjust address formatting in confirmation email.

This commit is contained in:
Andrew Spinks
2012-07-11 22:25:42 +10:00
parent 6a27f8da32
commit 0e43fcfaa1

View File

@@ -20,8 +20,7 @@ Delivery Details
============================================================
Address:
<% address = @order.distributor.pickup_address %>
<%= address.address1 %>
<%= ", #{address.address2}" unless address.address2.blank? %>
<%= address.address1 %> <%= ", #{address.address2}" unless address.address2.blank? %>
<%= [address.city, address.state_text, address.zipcode, address.country.name].compact.join ', ' %>
Colection time:
<%= @order.distributor.next_collection_at %>