From 703c4de50ec0178fe7a143854f461c5ff328d6ce Mon Sep 17 00:00:00 2001 From: Aung Myo Date: Fri, 22 Jun 2018 15:12:35 +0630 Subject: [PATCH] sale item report with promotion qty --- 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 744c792b..5c5189c1 100644 --- a/app/views/reports/saleitem/index.html.erb +++ b/app/views/reports/saleitem/index.html.erb @@ -89,7 +89,7 @@ total_qty += sale.total_item*(-1) end %> <% if sale.remark =="promotion" - total_qty += sale.total_item + total_qty += sale.total_item*(-1) end %> @@ -151,7 +151,7 @@ end %> <% if sale.remark == "promotion" - sub_qty += sale.total_item + sub_qty += sale.total_item*(-1) end %> <% if count == value %>