fixed shift sales other payment
This commit is contained in:
@@ -127,7 +127,7 @@
|
||||
<th><%=@shift.credit_sales %></th>
|
||||
</tr>
|
||||
<% @total_amount = 0
|
||||
|
||||
@total_other_amount = 0
|
||||
@other_payment.each do |other| %>
|
||||
<tr>
|
||||
<th></th>
|
||||
@@ -138,8 +138,8 @@
|
||||
<tr>
|
||||
<th></th>
|
||||
<td style="text-align: right;"><%= method %> Payment</td>
|
||||
<td><%=other[method.parameterize.to_sym].round(2) rescue '-' %></td>
|
||||
<% @total_amount = @total_amount + other[method.parameterize.to_sym] rescue 0.0 %>
|
||||
<td><%= other[method.parameterize.to_sym].round(2) rescue '-' %></td>
|
||||
<% @total_other_amount = @total_other_amount + other[method.parameterize.to_sym] rescue 0.0 %>
|
||||
</tr>
|
||||
<% end %>
|
||||
<tr>
|
||||
@@ -153,7 +153,7 @@
|
||||
<tr>
|
||||
<th></th>
|
||||
<th style="text-align: right;">Total Other Payment </th>
|
||||
<th><%=@shift.other_sales %></th>
|
||||
<th><%= @total_other_amount %></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th></th>
|
||||
|
||||
Reference in New Issue
Block a user