change query in sale item report

This commit is contained in:
phyusin
2018-01-05 13:33:23 +06:30
parent 09db9656c5
commit ae6caefaa0
3 changed files with 9 additions and 7 deletions

View File

@@ -110,9 +110,8 @@
</tr>
<!-- sub total -->
<% @menu_cate_count.each do |key,value| %>
<% if sale.menu_category_id == key %>
<% @menu_cate_count.each do |key,value| %>
<% if sale.account_id == key %>
<% count = count + 1 %>
<% sub_total += sale.grand_total %>
<% sub_qty += sale.total_item %>
@@ -128,10 +127,10 @@
<% sub_qty = 0 %>
<% count = 0%>
<% end %>
<% end %>
<% end %>
<!-- end sub total -->
<% end %>
<!-- end sub total -->
<% end %>
<!--Other Charges -->
<% if @other_charges.present? %>
<tr>