Browse Source

[fixes] export of grid report

version-14
Nabin Hait 12 years ago
parent
commit
1b1010d3e0
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      public/js/wn/views/grid_report.js

+ 2
- 2
public/js/wn/views/grid_report.js View File

@@ -904,10 +904,10 @@ wn.views.TreeGridReport = wn.views.GridReportWithPlot.extend({
// add row // add row
for(var i=0; i<item.indent; i++) row[0] = " " + row[0]; for(var i=0; i<item.indent; i++) row[0] = " " + row[0];
} }
if(with_groups && (item.group_or_ledger == "Group" || item.is_group==1)) {
if(with_groups && (item.group_or_ledger == "Group" || item.is_group)) {
return true; return true;
} }
if(with_ledgers && (item.group_or_ledger == "Ledger" || item.is_group==0)) {
if(with_ledgers && (item.group_or_ledger != "Group" && !item.is_group)) {
return true; return true;
} }


Loading…
Cancel
Save