refactor: Show Balance in COA based on Accounts Settings

(cherry picked from commit 23fbe86d51)
This commit is contained in:
ruthra kumar
2023-01-02 12:22:33 +05:30
committed by Mergify
parent 8b2328c6d3
commit 18702841af

View File

@@ -56,6 +56,9 @@ frappe.treeview_settings["Account"] = {
accounts = nodes;
}
frappe.db.get_single_value("Accounts Settings", "show_balance_in_coa").then((value) => {
if(value) {
const get_balances = frappe.call({
method: 'erpnext.accounts.utils.get_account_balances',
args: {
@@ -88,6 +91,8 @@ frappe.treeview_settings["Account"] = {
}
}
});
}
});
},
add_tree_node: 'erpnext.accounts.utils.add_ac',
menu_items:[