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