[fix] [minor] account group balance in grid report
This commit is contained in:
parent
dc89acaf05
commit
392596cb91
@ -174,7 +174,7 @@ erpnext.AccountTreeGrid = wn.views.TreeGridReport.extend({
|
|||||||
var me= this;
|
var me= this;
|
||||||
$.each(this.data, function(i, account) {
|
$.each(this.data, function(i, account) {
|
||||||
// update groups
|
// 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];
|
var parent = me.parent_map[account.name];
|
||||||
while(parent) {
|
while(parent) {
|
||||||
var parent_account = me.item_by_name[parent];
|
var parent_account = me.item_by_name[parent];
|
||||||
|
Loading…
Reference in New Issue
Block a user