diff --git a/frappe/public/js/frappe/views/reports/print_grid.html b/frappe/public/js/frappe/views/reports/print_grid.html index 1b9dae8d24..8e0f31280b 100644 --- a/frappe/public/js/frappe/views/reports/print_grid.html +++ b/frappe/public/js/frappe/views/reports/print_grid.html @@ -3,7 +3,7 @@

{{ __(title) }}


{% endif %} -{% if subtitle && print_settings.include_filters %} +{% if subtitle %} {{ subtitle }}
{% endif %} diff --git a/frappe/public/js/frappe/views/reports/query_report.js b/frappe/public/js/frappe/views/reports/query_report.js index 9cffde3e82..18208f1492 100644 --- a/frappe/public/js/frappe/views/reports/query_report.js +++ b/frappe/public/js/frappe/views/reports/query_report.js @@ -1495,7 +1495,7 @@ frappe.views.QueryReport = class QueryReport extends frappe.views.BaseList { frappe.render_grid({ template: print_settings.columns ? "print_grid" : custom_format, title: __(this.report_name), - subtitle: filters_html, + subtitle: print_settings?.include_filters ? filters_html : null, print_settings: print_settings, landscape: landscape, filters: this.get_filter_values(), @@ -1525,7 +1525,7 @@ frappe.views.QueryReport = class QueryReport extends frappe.views.BaseList { const template = print_settings.columns || !custom_format ? "print_grid" : custom_format; const content = frappe.render_template(template, { title: __(this.report_name), - subtitle: filters_html, + subtitle: print_settings?.include_filters ? filters_html : null, filters: applied_filters, data: data, original_data: this.data,