瀏覽代碼

[fixes] export of grid report

version-14
Nabin Hait 12 年之前
父節點
當前提交
1b1010d3e0
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      public/js/wn/views/grid_report.js

+ 2
- 2
public/js/wn/views/grid_report.js 查看文件

@@ -904,10 +904,10 @@ wn.views.TreeGridReport = wn.views.GridReportWithPlot.extend({
// add row
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;
}
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;
}


Loading…
取消
儲存