mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-15 03:01:22 +00:00
fix: error due to passing None in scrub
This commit is contained in:
@@ -200,7 +200,7 @@ class GrossProfitGenerator(object):
|
|||||||
|
|
||||||
def skip_row(self, row, product_bundles):
|
def skip_row(self, row, product_bundles):
|
||||||
if self.filters.get("group_by") != "Invoice":
|
if self.filters.get("group_by") != "Invoice":
|
||||||
if not row.get(scrub(self.filters.get("group_by"))):
|
if not row.get(scrub(self.filters.get("group_by", ""))):
|
||||||
return True
|
return True
|
||||||
elif row.get("is_return") == 1:
|
elif row.get("is_return") == 1:
|
||||||
return True
|
return True
|
||||||
|
|||||||
Reference in New Issue
Block a user