fixed shift sales other payment

This commit is contained in:
NyanLinHtut
2020-06-17 17:15:01 +06:30
parent e697108a6e
commit b46cefc8bc
2 changed files with 8 additions and 8 deletions

View File

@@ -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>