Переглянути джерело

[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;
}


Завантаження…
Відмінити
Зберегти