update audit sales
This commit is contained in:
@@ -51,6 +51,7 @@ class Transactions::SalesController < ApplicationController
|
|||||||
end
|
end
|
||||||
|
|
||||||
@sale_receivables = SalePayment.where('sale_id = ?', @sale.id)
|
@sale_receivables = SalePayment.where('sale_id = ?', @sale.id)
|
||||||
|
@sale_audits = SaleAudit.where('sale_id = ?', @sale.id)
|
||||||
|
|
||||||
#get customer amount
|
#get customer amount
|
||||||
@customer = Customer.find(@sale.customer_id)
|
@customer = Customer.find(@sale.customer_id)
|
||||||
|
|||||||
@@ -39,9 +39,9 @@
|
|||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link" data-toggle="tab" href="#customer" role="tab">Customer Details</a>
|
<a class="nav-link" data-toggle="tab" href="#customer" role="tab">Customer Details</a>
|
||||||
</li>
|
</li>
|
||||||
<!-- <li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link" data-toggle="tab" href="#sale_audit" role="tab">Sale Audits</a>
|
<a class="nav-link" data-toggle="tab" href="#sale_audit" role="tab">Sale Audits</a>
|
||||||
</li> -->
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<!-- Nav tabs - End -->
|
<!-- Nav tabs - End -->
|
||||||
|
|
||||||
@@ -244,15 +244,24 @@
|
|||||||
<table class="table table-striped">
|
<table class="table table-striped">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Status</th>
|
<th>Action </th>
|
||||||
<th>Action At</th>
|
<th>Action At</th>
|
||||||
<th>Approved By</th>
|
<th>Approved At</th>
|
||||||
<th>Remark</th>
|
<th>Remark</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|
||||||
|
<% @sale_audits.each do |audit| %>
|
||||||
|
<tr>
|
||||||
|
<td><%= audit.action%></td>
|
||||||
|
<td><%= audit.action_at.strftime("%m-%d-%Y %H:%M %p")%></td>
|
||||||
|
<td><%= audit.approved_by.to_datetime.strftime("%m-%d-%Y %H:%M %p")%></td>
|
||||||
|
<td><%= audit.remark%></td>
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
Reference in New Issue
Block a user