Fix merge mistakes
This commit is contained in:
parent
1a84d8ecd2
commit
803e998e9d
@ -224,20 +224,6 @@ def sort_root_accounts(roots):
|
|||||||
|
|
||||||
roots.sort(compare_roots)
|
roots.sort(compare_roots)
|
||||||
|
|
||||||
def sort_root_accounts(roots):
|
|
||||||
"""Sort root types as Asset, Liability, Equity, Income, Expense"""
|
|
||||||
|
|
||||||
def compare_roots(a, b):
|
|
||||||
if a.report_type != b.report_type and a.report_type == "Balance Sheet":
|
|
||||||
return -1
|
|
||||||
if a.root_type != b.root_type and a.root_type == "Asset":
|
|
||||||
return -1
|
|
||||||
if a.root_type == "Liability" and b.root_type == "Equity":
|
|
||||||
return -1
|
|
||||||
return 1
|
|
||||||
|
|
||||||
roots.sort(compare_roots)
|
|
||||||
|
|
||||||
def get_gl_entries(company, from_date, to_date, root_lft, root_rgt, ignore_closing_entries=False):
|
def get_gl_entries(company, from_date, to_date, root_lft, root_rgt, ignore_closing_entries=False):
|
||||||
"""Returns a dict like { "account": [gl entries], ... }"""
|
"""Returns a dict like { "account": [gl entries], ... }"""
|
||||||
additional_conditions = []
|
additional_conditions = []
|
||||||
|
@ -11,8 +11,6 @@ def execute(filters=None):
|
|||||||
|
|
||||||
float_precision = cint(frappe.db.get_default("float_precision")) or 3
|
float_precision = cint(frappe.db.get_default("float_precision")) or 3
|
||||||
|
|
||||||
float_precision = cint(frappe.db.get_default("float_precision")) or 3
|
|
||||||
|
|
||||||
columns = get_columns(filters)
|
columns = get_columns(filters)
|
||||||
item_map = get_item_details(filters)
|
item_map = get_item_details(filters)
|
||||||
iwb_map = get_item_warehouse_batch_map(filters, float_precision)
|
iwb_map = get_item_warehouse_batch_map(filters, float_precision)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user