% logo = @invoice.site.logo.url(:thumb) logo = logo.gsub('//','https://') if !logo.nil? %>
Invoice #<%= @invoice.id %>
Status: <% @invoice.status %>
Financial status: <% @invoice.financial_status %>
Line Item | Unit Price | Quantity | Subtotal | |
---|---|---|---|---|
<%= p.title %> |
<% if li.is_gift %>
<%= number_to_currency(li.unit_price) %> | <%= li.quantity %> | <%= number_to_currency(li.subtotal) %> | |
Subtotal: | <%= number_to_currency(@invoice.subtotal) %> | |||
Tax: | <%= number_to_currency(@invoice.tax) %> | |||
Shipping and Handling: | <%= number_to_currency(@invoice.shipping + @invoice.handling) %> | |||
Gift wrap: | <%= number_to_currency(@invoice.gift_wrap) %> | |||
"<%= d.gift_card.code %>" gift card: | <%= number_to_currency(d.amount) %> | |||
Discount: | <%= number_to_currency(@invoice.custom_discount) %> | |||
Total: | <%= number_to_currency(@invoice.total) %> |
<%= sa.first_name %> <%= sa.last_name %>
<%= sa.address1 %>
<% if sa.address2 && sa.address2.strip.length > 0 %><%= sa.address2 %>
<% end %>
<%= sa.city %>, <%= sa.state %> <%= sa.zip %>
<%= ba.first_name %> <%= ba.last_name %>
<%= ba.address1 %>
<% if ba.address2 && ba.address2.strip.length > 0 %><%= ba.address2 %>
<% end %>
<%= ba.city %>, <%= ba.state %> <%= ba.zip %>