diff --git a/app/models/sale.rb b/app/models/sale.rb index 62354a4f..699a2a19 100644 --- a/app/models/sale.rb +++ b/app/models/sale.rb @@ -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"