refactor: Show Balance in COA based on Accounts Settings
This commit is contained in:
parent
1b78fae6fc
commit
23fbe86d51
@ -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:[
|
||||
|
Loading…
x
Reference in New Issue
Block a user