Browse Source

[minor] fixed pdf export issue for the reports (#3391)

version-14
Makarand Bauskar 8 years ago
committed by Nabin Hait
parent
commit
edeee39122
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      frappe/public/js/frappe/views/reports/query_report.js

+ 6
- 2
frappe/public/js/frappe/views/reports/query_report.js View File

@@ -215,6 +215,8 @@ frappe.views.QueryReport = Class.extend({
return false; return false;
} }


var orientation = this.print_settings.orientation;
var landscape = orientation == "Landscape" ? true: false
if(this.html_format) { if(this.html_format) {
var content = frappe.render(this.html_format, var content = frappe.render(this.html_format,
{data: frappe.slickgrid_tools.get_filtered_items(this.dataView), filters:this.get_values(), report:this}); {data: frappe.slickgrid_tools.get_filtered_items(this.dataView), filters:this.get_values(), report:this});
@@ -225,7 +227,8 @@ frappe.views.QueryReport = Class.extend({
title:__(this.report_name), title:__(this.report_name),
base_url: base_url, base_url: base_url,
print_css: print_css, print_css: print_css,
print_settings: this.print_settings
print_settings: this.print_settings,
landscape: landscape
}); });
} else { } else {
// rows filtered by inline_filter of slickgrid // rows filtered by inline_filter of slickgrid
@@ -249,7 +252,8 @@ frappe.views.QueryReport = Class.extend({
title:__(this.report_name), title:__(this.report_name),
base_url: base_url, base_url: base_url,
print_css: print_css, print_css: print_css,
print_settings: this.print_settings
print_settings: this.print_settings,
landscape: landscape
}); });
} }




Loading…
Cancel
Save