mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-16 02:11:39 +00:00
perf: use get_cached_value instead of db.get_value in accounts module
This commit is contained in:
@@ -76,7 +76,7 @@ def get(
|
||||
|
||||
def build_result(account, dates, gl_entries):
|
||||
result = [[getdate(date), 0.0] for date in dates]
|
||||
root_type = frappe.db.get_value("Account", account, "root_type")
|
||||
root_type = frappe.get_cached_value("Account", account, "root_type")
|
||||
|
||||
# start with the first date
|
||||
date_index = 0
|
||||
|
||||
Reference in New Issue
Block a user