Orders

Show/hide search form | New Manual Order | Print Pending Orders

<% if @orders.count > 0 %> <%= raw @pager.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 %> <% if order.customer.nil? %> Unknown <% else %> <% if order.customer.first_name && order.customer.first_name.strip.length > 0 %> <%= order.customer.first_name %> <%= order.customer.last_name %> <% else %> <%= order.customer.email %> <% end %> <% end %> <%= raw order.date_created %> <%= number_to_currency(order.total) %> <%= raw order.status %> <%= raw order.shipping_carrier %> <%= raw order.shipping_service_name %>

<%= raw @pager.generate %>

<% else %>

There are no orders right now.

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