<%= @order.full_name %>,

Thank you for placing an order at <%= @website.name %>

Your order number is: <%= @order.order_number %>

The status of your order is: <%= @order.status_description %>

<% if @order.preferred_delivery_date -%>
<%= @order.preferred_delivery_date_prompt %>: <%= @order.preferred_delivery_date.strftime(@order.preferred_delivery_date_format) %>
<% end -%>

You have ordered:
<% @order.order_lines.each do |l| %>
[<%= l.product_sku %>] <%= l.product_name %><%= ' (' + l.feature_descriptions + ')' unless l.feature_descriptions.empty? %> x <%= l.quantity %> (<%= formatted_gbp_price(l.line_total_net) %>)
<% end %>
<%= @order.shipping_method %>: <%= formatted_gbp_price(@order.shipping_amount) %>

<% unless @website.vat_number.empty? -%>
VAT: <%= formatted_gbp_price(@order.tax_total) %>
<% end -%>

Order total: <%= formatted_gbp_price(@order.total) %>

To be delivered to:
<%= format_address(@order.delivery_address, false) %>

<%= @order.full_name %>,

Thank you for placing an order at <%= @website.name %>

Your order number is: <%= @order.order_number %>

The status of your order is: <%= @order.status_description %>

<% if @order.preferred_delivery_date -%>
<%= @order.preferred_delivery_date_prompt %>: <%= @order.preferred_delivery_date.strftime(@order.preferred_delivery_date_format) %>
<% end -%>

You have ordered:
<% @order.order_lines.each do |l| %>
[<%= l.product_sku %>] <%= l.product_name %><%= ' (' + l.feature_descriptions + ')' unless l.feature_descriptions.blank? %> x <%= l.quantity %> (<%= formatted_gbp_price(l.line_total_net) %>)
<% end %>
<%= @order.shipping_method %>: <%= formatted_gbp_price(@order.shipping_amount) %>

<% unless @website.vat_number.empty? -%>
VAT: <%= formatted_gbp_price(@order.tax_total) %>
<% end -%>

Order total: <%= formatted_gbp_price(@order.total) %>

To be delivered to:
<%= format_address(@order.delivery_address, false) %>

Use blank? for safe use on nil
Use blank? for safe use on nil
