From 83dd3e14e58b8f2e1d2dbe4190c454858ef54ea0 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Wed, 9 Sep 2015 10:36:55 +0530 Subject: [PATCH] [fix] Gross Profit report should not include return entries --- erpnext/accounts/report/gross_profit/gross_profit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/accounts/report/gross_profit/gross_profit.py b/erpnext/accounts/report/gross_profit/gross_profit.py index ef9bbac4d45..bfeeb34332a 100644 --- a/erpnext/accounts/report/gross_profit/gross_profit.py +++ b/erpnext/accounts/report/gross_profit/gross_profit.py @@ -226,7 +226,7 @@ class GrossProfitGenerator(object): inner join `tabSales Invoice Item` item on item.parent = si.name left join `tabSales Team` sales on sales.parent = si.name where - si.docstatus = 1 %s + si.docstatus = 1 and si.is_return != 1 %s order by si.posting_date desc, si.posting_time desc""" % (conditions,), self.filters, as_dict=1)