updated for receipt rpt for shift
This commit is contained in:
@@ -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"> </td>
|
||||
<td><b><%= total_sum rescue '-'%></b></td>
|
||||
|
||||
Reference in New Issue
Block a user