Sha256: 2eb40c9f0204b3ce3b6d3e207625ccd2307094f95e61b479067be545add4238a
Contents?: true
Size: 1.05 KB
Versions: 22
Compression:
Stored size: 1.05 KB
Contents
Order: #<%= @order.id %> Email: <%= @order.email %> Phone: <%= @order.phone %> <% @order.line_items.sellables.each do |line_item| %> <%= line_item.quantity %> x <%= raw line_item.description %> (<%= number_to_currency line_item.price %>) <% end -%> Subtotal: <%= number_to_currency @order.line_items.sellables.inject(0) { |subtotal, li| subtotal + li.price } %> Shipping & Handling: <%= number_to_currency @order.line_items.shipments.inject(0) { |shipping, shipment| shipping + shipment.price } %> Tax: <%= number_to_currency @order.tax_charge %> Total: <%= number_to_currency @order.total %> Less Payment: <%= number_to_currency(@order.line_items.payments.inject(0) { |total, p| total + p.price if p.payment.status == "paid" }) %> Adjustments: <%= number_to_currency(@order.line_items.adjustments.inject(0) { |total, adj| total + adj.price }) %> 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
22 entries across 22 versions & 1 rubygems