From 5407cd282890a89cf3279471abf60ff52f6f386b Mon Sep 17 00:00:00 2001 From: Aung Myo Date: Fri, 22 Jun 2018 17:52:50 +0630 Subject: [PATCH] update sale item report for promotion --- app/views/reports/saleitem/index.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 %>