[fix] [minor] account group balance in grid report

This commit is contained in:
Nabin Hait 2013-10-27 16:20:51 +05:30 committed by Anand Doshi
parent dc89acaf05
commit 392596cb91

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