Query report print (#14935)

* QueryReport

- Only print visible columns in report
- Use get_columns_for_print method instead of directly
accessing report.columns

* Query Report

- Replace frappe.query_report_filters_by_name with new API
This commit is contained in:
Faris Ansari
2018-07-18 09:28:44 +05:30
committed by Rushabh Mehta
parent 69fa808def
commit 9e874af9ba
19 changed files with 72 additions and 62 deletions

View File

@@ -30,7 +30,7 @@ erpnext.financial_statements = {
frappe.route_options = {
"account": data.account,
"company": frappe.query_report_filters_by_name.company.get_value(),
"company": frappe.query_report.get_filter_value('company'),
"from_date": data.from_date || data.year_start_date,
"to_date": data.to_date || data.year_end_date,
"project": (project && project.length > 0) ? project[0].$input.val() : ""