Skip to content

Commit

Permalink
refactor: Ignore linked Cr Notes in Report output
Browse files Browse the repository at this point in the history
  • Loading branch information
ruthra-kumar committed Mar 17, 2023
1 parent e2f19c6 commit d0715a8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions erpnext/accounts/report/gross_profit/gross_profit.py
Expand Up @@ -741,6 +741,8 @@ def load_invoice_items(self):
if self.filters.to_date:
conditions += " and posting_date <= %(to_date)s"

conditions += " and (is_return = 0 or (is_return=1 and return_against is null))"

if self.filters.item_group:
conditions += " and {0}".format(get_item_group_condition(self.filters.item_group))

Expand Down

0 comments on commit d0715a8

Please sign in to comment.