update filter in sale and order and creditnote
This commit is contained in:
@@ -16,6 +16,39 @@
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<td colspan="8">
|
||||
<%= form_tag transactions_credit_notes_path, :method => :get do %>
|
||||
<div class="form-group col-md-4">
|
||||
<label>Enter Keywords</label>
|
||||
<input type="text" name="receipt_no" class="form-control" placeholder="Receipt No/Cashier Name/Status" style="margin-right: 10px">
|
||||
</div>
|
||||
<div class="form-group col-md-2">
|
||||
<label>Select Customer</label>
|
||||
<select class="selectpicker form-control col-md-12" name="customer" style="height: 40px" >
|
||||
<option value="">Select Customer</option>
|
||||
<% @customers.each do |customer| %>
|
||||
<option value="<%= customer.customer_id %>">
|
||||
<%= customer.name %></option>
|
||||
<%end %>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group col-md-2">
|
||||
<label class="">From</label>
|
||||
<input class="form-control datepicker" name="from" id="date" type="text" placeholder="From date">
|
||||
</div>
|
||||
<div class="form-group col-md-2">
|
||||
<label class="">To</label>
|
||||
<input class="form-control datepicker" name="to" id="date" type="text" placeholder="To date">
|
||||
</div>
|
||||
|
||||
<div class="form-group col-md-1">
|
||||
<label></label>
|
||||
<input type="submit" value="Search" class='btn btn-primary btn-md'>
|
||||
</div>
|
||||
<% end %>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Sale Id </th>
|
||||
<th>Receipt no </th>
|
||||
@@ -27,6 +60,8 @@
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<% if @sales != 0 %>
|
||||
|
||||
<% @sales.each do |sale| %>
|
||||
<tr>
|
||||
<td><%= link_to sale.sale_id, transactions_sale_path(sale) %></td>
|
||||
@@ -39,7 +74,9 @@
|
||||
<td> <%= sale.receipt_date.strftime("%d-%m-%Y") %> </td>
|
||||
</tr>
|
||||
<% end %>
|
||||
|
||||
<% else %>
|
||||
<tr><td colspan="8"><strong><p style="text-align: center">There is no data for search....</p></strong></td></tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
<br>
|
||||
|
||||
Reference in New Issue
Block a user