Edit sale item report

This commit is contained in:
San Wai Lwin
2018-07-24 13:59:59 +06:30
parent ec651b2e3e
commit a058eff2ec

View File

@@ -880,7 +880,7 @@ end
def self.get_item_query(type)
if type == "revenue" || type.nil?
sale_type = "i.status IS NULL and i.qty >0 "
sale_type = "i.qty != 0 "
elsif type == "all"
sale_type = ""
elsif type == "discount"