update bug sale

This commit is contained in:
Aung Myo
2017-06-16 18:04:39 +06:30
parent cd804a3d18
commit cb43afc405
6 changed files with 116 additions and 64 deletions

View File

@@ -34,7 +34,6 @@
<th>Order status</th>
<th>Order date</th>
<th>Items Count</th>
<th>Action</th>
</tr>
</thead>
@@ -42,13 +41,13 @@
<% @orders.each do |order| %>
<tr>
<td><%= order.order_id %></td>
<td><%= link_to order.order_id, transactions_order_path(order) %></td>
<td><%= order.order_type %></td>
<td><%= order.customer.name rescue '-' %></td>
<td><%= order.status %></td>
<td> <%= order.date.strftime("%d-%m-%Y") %> </td>
<td> <%= order.item_count %> </td>
<td><%= link_to 'Show', transactions_order_path(order) %></td>
</tr>
<% end %>
</tbody>