From ac63c720b83bd8475f0f6bc53c3cc10008d7b326 Mon Sep 17 00:00:00 2001 From: RobertSchouten Date: Mon, 12 Sep 2016 18:42:22 +0800 Subject: [PATCH] [feature] print only what is expanded in reports (#2038) ie balance report will print like is visable not all items --- frappe/public/js/frappe/views/reports/query_report.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/public/js/frappe/views/reports/query_report.js b/frappe/public/js/frappe/views/reports/query_report.js index d76063d13d..48029865f4 100644 --- a/frappe/public/js/frappe/views/reports/query_report.js +++ b/frappe/public/js/frappe/views/reports/query_report.js @@ -163,7 +163,7 @@ frappe.views.QueryReport = Class.extend({ if(this.html_format) { var content = frappe.render(this.html_format, - {data: this.dataView.getItems(), filters:this.get_values(), report:this}); + {data: frappe.slickgrid_tools.get_filtered_items(this.dataView), filters:this.get_values(), report:this}); frappe.render_grid({content:content, title:__(this.report_name)}); } else {