From a3e070bc6b38393fa53e51c08f8500382f2fa0c3 Mon Sep 17 00:00:00 2001 From: rohitwaghchaure Date: Mon, 16 Jul 2018 18:11:19 +0530 Subject: [PATCH] [Fix] Invoices not showing in the gross profit report against which sales return entry has created (#14914) --- 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 fe3bb8cd4c..3aa237d930 100644 --- a/erpnext/accounts/report/gross_profit/gross_profit.py +++ b/erpnext/accounts/report/gross_profit/gross_profit.py @@ -171,7 +171,7 @@ class GrossProfitGenerator(object): row.qty += returned_item_row.qty row.base_amount += returned_item_row.base_amount row.buying_amount = row.qty * row.buying_rate - if row.qty: + if row.qty or row.base_amount: row = self.set_average_rate(row) self.grouped_data.append(row)