commit | a9a1552e328e0c4155d72b8e4ff665d116c7a3d4 | [log] [tgz] |
---|---|---|
author | Anurag Mishra <mishranaman123@gmail.com> | Wed Feb 27 14:10:24 2019 +0530 |
committer | Anurag Mishra <mishranaman123@gmail.com> | Wed Feb 27 14:10:24 2019 +0530 |
tree | f56ec613104f24a32de0a2d16ff528f630780133 | |
parent | 61f981ae05eeab7b53267a1a156869cfb5722d94 [diff] |
refactor
diff --git a/erpnext/accounts/report/gross_and_net_profit_report/gross_and_net_profit_report.py b/erpnext/accounts/report/gross_and_net_profit_report/gross_and_net_profit_report.py index fe767c0..739c4f0 100644 --- a/erpnext/accounts/report/gross_and_net_profit_report/gross_and_net_profit_report.py +++ b/erpnext/accounts/report/gross_and_net_profit_report/gross_and_net_profit_report.py
@@ -69,6 +69,7 @@ revenue = [item for item in data if item['include_in_gross']==1 or item['is_group']==1] elif revenue_type == 'non_gross': revenue = [item for item in data if item['include_in_gross']==0 or item['is_group']==1] + revenue, status = remove_parent_with_no_child(revenue, period_list) while status == "data to be removed": revenue, status = remove_parent_with_no_child(revenue, period_list)