mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-13 09:43:49 +00:00
[fix] [minor] account group balance in grid report
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user