Orders

Show/hide search form New Manual Order Print Pending Orders

<% if @orders.count > 0 %> <%= raw @pager.sortable_table_headings({ 'id' => 'ID', 'order_number' => 'Order Number', 'customer_id' => 'Customer', 'date_created' => 'Date Created', 'total' => 'Total', 'status' => 'Status' }) %> <% @orders.each do |order| %> <% end %>
<%= raw order.id %> <%= raw order.order_number %> <% 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 @pager.generate %>

<% else %>

There are no orders right now.

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