Merge branch 'master' of bitbucket.org:code2lab/sxrestaurant
This commit is contained in:
@@ -83,12 +83,12 @@
|
|||||||
end %>
|
end %>
|
||||||
|
|
||||||
<% if sale.status_type == "foc" && sale.grand_total < 0
|
<% if sale.status_type == "foc" && sale.grand_total < 0
|
||||||
total_item_foc += sale.grand_total*(-1)
|
total_item_foc += sale.grand_total*(-1)
|
||||||
end %>
|
end %>
|
||||||
|
|
||||||
<% if sale.status_type == "Discount" && sale.grand_total < 0
|
<% if sale.status_type == "Discount" && sale.grand_total < 0
|
||||||
total_item_dis += sale.grand_total*(-1)
|
total_item_dis += sale.grand_total*(-1)
|
||||||
end %>
|
end %>
|
||||||
|
|
||||||
<% if !acc_arr.include?(sale.account_id) %>
|
<% if !acc_arr.include?(sale.account_id) %>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -126,7 +126,10 @@
|
|||||||
<% if sale.account_id == key %>
|
<% if sale.account_id == key %>
|
||||||
<% count = count + 1 %>
|
<% count = count + 1 %>
|
||||||
<% sub_total += sale.grand_total %>
|
<% sub_total += sale.grand_total %>
|
||||||
<% sub_qty += sale.total_item %>
|
<% #sub_qty += sale.total_item %>
|
||||||
|
<% if sale.status_type != "Discount" && sale.status_type != "foc"
|
||||||
|
sub_qty += sale.total_item
|
||||||
|
end %>
|
||||||
<% if count == value %>
|
<% if count == value %>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="3"> </td>
|
<td colspan="3"> </td>
|
||||||
|
|||||||
Reference in New Issue
Block a user