updated for receipt rpt for shift

This commit is contained in:
Yan
2017-07-08 18:20:42 +06:30
parent 9158f0e93a
commit 94555bc325
3 changed files with 19 additions and 12 deletions

View File

@@ -61,7 +61,9 @@
<% total_nett = 0 %>
<% rounding_adj = 0%> <% gov_tax = 0 %> <% service_charge = 0 %>
<% @sale_data.each do |result| %>
<%
if @sale_data!=nil
@sale_data.each do |result| %>
<% grand_total = grand_total.to_f + result.grand_total.to_f %>
<% total_tax += result.total_tax.to_f %>
@@ -83,7 +85,10 @@
<td><%= result.grand_total_after_rounding() rescue '-'%></td>
</tr>
<% end %>
<%
end
end
%>
<tr style="border-top:4px double #666;">
<td colspan="2">&nbsp;</td>
<td><b><%= total_sum rescue '-'%></b></td>