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)