Merge branch 'master' of github.com:webnotes/erpnext into cleanup

This commit is contained in:
Rushabh Mehta
2013-10-31 15:16:05 +05:30
12 changed files with 101 additions and 101 deletions

View File

@@ -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];