Merge branch 'doemal_ordering' of bitbucket.org:code2lab/sxrestaurant into adminbsb_ui_changes
This commit is contained in:
@@ -59,6 +59,7 @@
|
|||||||
<% total_data = {} %>
|
<% total_data = {} %>
|
||||||
<% @sale_data.each do |sale|
|
<% @sale_data.each do |sale|
|
||||||
if !total_item.has_key?(sale.item_code)
|
if !total_item.has_key?(sale.item_code)
|
||||||
|
grand_total += sale.grand_total
|
||||||
total_item[sale.item_code] = sale.total_item
|
total_item[sale.item_code] = sale.total_item
|
||||||
total_data[sale.item_code] = sale.grand_total
|
total_data[sale.item_code] = sale.grand_total
|
||||||
else
|
else
|
||||||
@@ -67,13 +68,13 @@
|
|||||||
end
|
end
|
||||||
if sale.status_type == "void" || sale.status_type == "Discount" || sale.status_type == "foc"
|
if sale.status_type == "void" || sale.status_type == "Discount" || sale.status_type == "foc"
|
||||||
total_data[sale.item_code] += sale.grand_total
|
total_data[sale.item_code] += sale.grand_total
|
||||||
|
grand_total += sale.grand_total
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end %>
|
end %>
|
||||||
|
|
||||||
<% @sale_data.each do |sale| %>
|
<% @sale_data.each do |sale| %>
|
||||||
<% grand_total += sale.grand_total %>
|
<% if sale.status_type != "Discount" && sale.status_type != "foc" && sale.status_type != "promotion"
|
||||||
<% if sale.status_type != "Discount" && sale.status_type != "foc"
|
|
||||||
total_qty += sale.total_item
|
total_qty += sale.total_item
|
||||||
end %>
|
end %>
|
||||||
<% if sale.status_type == "foc" && sale.price > 0
|
<% if sale.status_type == "foc" && sale.price > 0
|
||||||
|
|||||||
@@ -32,6 +32,7 @@
|
|||||||
<% total_data = {} %>
|
<% total_data = {} %>
|
||||||
<% @sale_data.each do |sale|
|
<% @sale_data.each do |sale|
|
||||||
if !total_item.has_key?(sale.item_code)
|
if !total_item.has_key?(sale.item_code)
|
||||||
|
grand_total += sale.grand_total
|
||||||
total_item[sale.item_code] = sale.total_item
|
total_item[sale.item_code] = sale.total_item
|
||||||
total_data[sale.item_code] = sale.grand_total
|
total_data[sale.item_code] = sale.grand_total
|
||||||
else
|
else
|
||||||
@@ -40,13 +41,13 @@
|
|||||||
end
|
end
|
||||||
if sale.status_type == "void" || sale.status_type == "Discount" || sale.status_type == "foc"
|
if sale.status_type == "void" || sale.status_type == "Discount" || sale.status_type == "foc"
|
||||||
total_data[sale.item_code] += sale.grand_total
|
total_data[sale.item_code] += sale.grand_total
|
||||||
|
grand_total += sale.grand_total
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end %>
|
end %>
|
||||||
|
|
||||||
<% @sale_data.each do |sale| %>
|
<% @sale_data.each do |sale| %>
|
||||||
<% grand_total += sale.grand_total %>
|
<% if sale.status_type != "Discount" && sale.status_type != "foc" && sale.status_type != "promotion"
|
||||||
<% if sale.status_type != "Discount" && sale.status_type != "foc"
|
|
||||||
total_qty += sale.total_item
|
total_qty += sale.total_item
|
||||||
end %>
|
end %>
|
||||||
<% if sale.status_type == "foc" && sale.price > 0
|
<% if sale.status_type == "foc" && sale.price > 0
|
||||||
|
|||||||
Reference in New Issue
Block a user