Orders

Show/hide search form | New Manual Order

<% if @orders.count > 0 %> <%= raw @gen.sortable_table_headings({ 'id' => 'ID', 'customer_id' => 'Customer', 'date_created' => 'Date Created', 'total' => 'Total', 'status' => 'Status', 'shipping_method' => 'Shipping Method' }) %> <% @orders.each do |order| %> <% end %>
<%= raw order.id %> <%= order.customer.nil? ? "Unknown" : "#{order.customer.first_name} #{order.customer.last_name}" %> <%= raw order.date_created %> <%= number_to_currency(order.total) %> <%= raw order.status %> <%= raw order.shipping_method %>

<%= raw @gen.generate %>

<% else %>

There are no orders right now.

<% end %> <% content_for :caboose_js do %> <% end %>