From 392596cb9107712df0f2efaaa8426e44fd6ea7de Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Sun, 27 Oct 2013 16:20:51 +0530 Subject: [PATCH] [fix] [minor] account group balance in grid report --- public/js/account_tree_grid.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/account_tree_grid.js b/public/js/account_tree_grid.js index 28db1d7946..550d11f371 100644 --- a/public/js/account_tree_grid.js +++ b/public/js/account_tree_grid.js @@ -174,7 +174,7 @@ erpnext.AccountTreeGrid = wn.views.TreeGridReport.extend({ var me= this; $.each(this.data, function(i, account) { // update groups - if(account.rgt - account.lft == 1) { + if((account.group_or_ledger == "Ledger") || (account.rgt - account.lft == 1)) { var parent = me.parent_map[account.name]; while(parent) { var parent_account = me.item_by_name[parent];