diff --git a/app/views/reports/saleitem/index.html.erb b/app/views/reports/saleitem/index.html.erb index 5c5189c1..52c10cf9 100644 --- a/app/views/reports/saleitem/index.html.erb +++ b/app/views/reports/saleitem/index.html.erb @@ -88,7 +88,7 @@ <% if sale.status_type == "Discount" total_qty += sale.total_item*(-1) end %> - <% if sale.remark =="promotion" + <% if sale.status_type =="promotion" && @type == "promotion" total_qty += sale.total_item*(-1) end %> @@ -150,7 +150,7 @@ sub_qty += sale.total_item*(-1) end %> - <% if sale.remark == "promotion" + <% if sale.status_type == "promotion" && @type == "promotion" sub_qty += sale.total_item*(-1) end %> <% if count == value %>