update customer view and order add column table and orderby
This commit is contained in:
@@ -48,6 +48,9 @@
|
||||
|
||||
<tr>
|
||||
<th><%= t("views.right_panel.detail.order_id") %></th>
|
||||
|
||||
<th><%= t :table %>/<%= t :room %></th>
|
||||
<th><%= t("views.right_panel.detail.order_by") %></th>
|
||||
<th><%= t("views.right_panel.detail.type") %></th>
|
||||
<th><%= t :customer %></th>
|
||||
<th><%= t("views.right_panel.detail.order_status") %></th>
|
||||
@@ -57,10 +60,14 @@
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<% @orders.each do |order| %>
|
||||
<% @orders.each do |order|
|
||||
@dining = BookingOrder.find_by_order_id(order.order_id).booking.dining_facility
|
||||
%>
|
||||
|
||||
<tr>
|
||||
<td><%= link_to order.order_id, transactions_order_path(order) %></td>
|
||||
<td><%= @dining.type %>-<%= @dining.name %></td>
|
||||
<td><%= order.waiters %></td>
|
||||
<td><%= order.order_type %></td>
|
||||
<td><%= order.customer.name rescue '-' %></td>
|
||||
<td><%= order.status %></td>
|
||||
|
||||
Reference in New Issue
Block a user