mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-18 09:47:14 +00:00
fix: Gross profit for credit notes
(cherry picked from commit 973f6b1bbd)
This commit is contained in:
committed by
mergify-bot
parent
9a0b83027a
commit
a63373ce98
@@ -284,8 +284,8 @@ class GrossProfitGenerator(object):
|
||||
if self.filters.get("group_by") != "Invoice":
|
||||
if not row.get(scrub(self.filters.get("group_by", ""))):
|
||||
return True
|
||||
elif row.get("is_return") == 1:
|
||||
return True
|
||||
|
||||
return False
|
||||
|
||||
def get_buying_amount_from_product_bundle(self, row, product_bundle):
|
||||
buying_amount = 0.0
|
||||
|
||||
Reference in New Issue
Block a user