fix bugs and improvement
This commit is contained in:
@@ -137,16 +137,16 @@
|
||||
<% @payment_methods.each do |method| %>
|
||||
<tr>
|
||||
<th></th>
|
||||
<td style="text-align: right;"><%= method.upcase %> Payment </td>
|
||||
<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 %>
|
||||
<% @total_amount = @total_amount + other[method.parameterize.to_sym] rescue 0.0 %>
|
||||
</tr>
|
||||
<% end %>
|
||||
<tr>
|
||||
<th></th>
|
||||
<td style="text-align: right;"><strong>FOC </strong></td>
|
||||
<td><%=other.foc_amount.round(2) rescue 0.0 %></td>
|
||||
<% @total_amount = @total_amount+other.foc_amount rescue 0.0 %>
|
||||
<% @total_amount = @total_amount + other.foc_amount rescue 0.0 %>
|
||||
</tr>
|
||||
<%end%>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user