update search
This commit is contained in:
85
app/views/transactions/orders/show.html.erb
Normal file
85
app/views/transactions/orders/show.html.erb
Normal file
@@ -0,0 +1,85 @@
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="<%= crm_root_path %>">Home</a></li>
|
||||
<li class="active">
|
||||
<a href="<%= settings_orders_path %>">Order</a>
|
||||
</li>
|
||||
<li class="active">
|
||||
<a href="<%= settings_orders_path %>"><%= @order.order_id %></a>
|
||||
</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<div class="main-box-body clearfix">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Type</th>
|
||||
<th>Customer</th>
|
||||
<th>Order status</th>
|
||||
<th>Order date</th>
|
||||
<th>Order By</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<tr>
|
||||
<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.waiter rescue '-' %> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h3>Order Items</h3>
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Item Name</th>
|
||||
<th>Qty</th>
|
||||
<th> Unit Price</th>
|
||||
<th>Total Price</th>
|
||||
<th>Option</th>
|
||||
<th>Status</th>
|
||||
<th>Order By</th>
|
||||
<th>Created at</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<% @order.order_items.each do |order| %>
|
||||
|
||||
<tr>
|
||||
<td><%= order.item_name %></td>
|
||||
<td><%= order.qty %></td>
|
||||
<td><%= order.price %></td>
|
||||
<td><%= order.qty * order.price %></td>
|
||||
<td> <%= order.options %> </td>
|
||||
<td> <%= order.order_item_status %> </td>
|
||||
<td> <%= order.item_order_by %> </td>
|
||||
<td> <%= order.created_at.strftime("%d-%m-%Y") %> </td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
<a href="<%= settings_orders_path%>" class="btn btn-primary pull-left">
|
||||
<i class="fa fa-arrow-left fa-xs"></i> Back
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user