refactor: Ignore linked Cr Notes in Report output

(cherry picked from commit d0715a82eb)
This commit is contained in:
ruthra kumar
2023-03-14 16:22:49 +05:30
committed by Mergify
parent 3854580e45
commit e8d1b637e8

View File

@@ -741,6 +741,8 @@ class GrossProfitGenerator(object):
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))