[Fix] Invoices not showing in the gross profit report against which sales return entry has created (#14914)

This commit is contained in:
rohitwaghchaure 2018-07-16 18:11:19 +05:30 committed by Nabin Hait
parent 3ffe89659a
commit a3e070bc6b

View File

@ -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)