Sha256: b920997b5df8d52d87364be14148477d816689f5dbbb07af3c290e809278cdf2

Contents?: true

Size: 1015 Bytes

Versions: 26

Compression:

Stored size: 1015 Bytes

Contents

Order: #<%= @order.id %>

Email: <%= @order.email %>
Phone: <%= @order.phone %>

<% @order.line_items.each do |line_item| %>
<%= line_item.quantity %> x <%= raw line_item.description %> (<%= number_to_currency line_item.total %>)
<% end -%>

Subtotal: <%= number_to_currency @order.line_items.inject(0) { |subtotal, li| subtotal + li.total } %>
Shipping & Handling: <%= number_to_currency @order.shipments.inject(0) { |shipping, shipment| shipping + shipment.total } %>
Tax: <%= number_to_currency @order.tax_charge %>
Total: <%= number_to_currency @order.total %>
Less Payment: <%= number_to_currency(@order.payments.inject(0) { |total, p| total + p.total if p.status == "paid" }) %>
Adjustments: <%= number_to_currency(@order.adjustments.inject(0) { |total, adj| total + adj.total }) %>
Balance Due: <%= number_to_currency @order.total_due %>

Billing Information
<%= raw @order.billing_address.display.gsub("<br />", "\n") %>

Shipping Information
<%= raw @order.shipping_address.display.gsub("<br />", "\n") %>

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
piggybak-0.5.5 app/views/piggybak/orders/download.text.erb
piggybak-0.5.4 app/views/piggybak/orders/download.text.erb
piggybak-0.5.3 app/views/piggybak/orders/download.text.erb
piggybak-0.5.2 app/views/piggybak/orders/download.text.erb
piggybak-0.5.1 app/views/piggybak/orders/download.text.erb
piggybak-0.5.0 app/views/piggybak/orders/download.text.erb
piggybak-0.4.39 app/views/piggybak/orders/download.text.erb
piggybak-0.4.38 app/views/piggybak/orders/download.text.erb
piggybak-0.4.37 app/views/piggybak/orders/download.text.erb
piggybak-0.4.36 app/views/piggybak/orders/download.text.erb
piggybak-0.4.35 app/views/piggybak/orders/download.text.erb
piggybak-0.4.34 app/views/piggybak/orders/download.text.erb
piggybak-0.4.33 app/views/piggybak/orders/download.text.erb
piggybak-0.4.32 app/views/piggybak/orders/download.text.erb
piggybak-0.4.31 app/views/piggybak/orders/download.text.erb
piggybak-0.4.30 app/views/piggybak/orders/download.text.erb
piggybak-0.4.29 app/views/piggybak/orders/download.text.erb
piggybak-0.4.28 app/views/piggybak/orders/download.text.erb
piggybak-0.4.27 app/views/piggybak/orders/download.text.erb
piggybak-0.4.26 app/views/piggybak/orders/download.text.erb