mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-22 03:35:43 +00:00
@@ -134,7 +134,7 @@ def get_revenue(data, period_list, include_in_gross=1):
|
|||||||
|
|
||||||
def remove_parent_with_no_child(data):
|
def remove_parent_with_no_child(data):
|
||||||
data_to_be_removed = False
|
data_to_be_removed = False
|
||||||
for parent in data:
|
for parent in list(data):
|
||||||
if "is_group" in parent and parent.get("is_group") == 1:
|
if "is_group" in parent and parent.get("is_group") == 1:
|
||||||
have_child = False
|
have_child = False
|
||||||
for child in data:
|
for child in data:
|
||||||
|
|||||||
Reference in New Issue
Block a user