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 = []
|
||||||
|
@ -7,9 +7,7 @@ from frappe import _
|
|||||||
from frappe.utils import flt, cint, getdate
|
from frappe.utils import flt, cint, getdate
|
||||||
|
|
||||||
def execute(filters=None):
|
def execute(filters=None):
|
||||||
if not filters: filters = {}
|
if not filters: filters = {}
|
||||||
|
|
||||||
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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user