fix: include filters only if checked

This commit is contained in:
ravibharathi656 2025-09-19 11:06:23 +05:30
parent 96a0f8246c
commit 27f2f49c56
2 changed files with 3 additions and 3 deletions

View file

@ -3,7 +3,7 @@
<h2>{{ __(title) }}</h2>
<hr>
{% endif %}
{% if subtitle && print_settings.include_filters %}
{% if subtitle %}
{{ subtitle }}
<hr>
{% endif %}

View file

@ -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,