mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-03 04:09:11 +00:00
optimize(various)
This commit is contained in:
@@ -56,7 +56,7 @@ def get_parent_account(company, master_type):
|
||||
parent_account = None
|
||||
|
||||
if "receivables_group" in frappe.db.get_table_columns("Company"):
|
||||
parent_account = frappe.db.get_value("Company", company,
|
||||
parent_account = frappe.get_cached_value('Company', company,
|
||||
"receivables_group" if master_type=="Customer" else "payables_group")
|
||||
if not parent_account:
|
||||
parent_account = frappe.db.get_value("Account", {"company": company,
|
||||
|
||||
Reference in New Issue
Block a user