From 44e0b36093e8ffd176d007f194cfd05615780ff1 Mon Sep 17 00:00:00 2001 From: Shllokkk Date: Sun, 12 Apr 2026 13:14:24 +0530 Subject: [PATCH] fix: minor changes in print templates --- .../accounts_payable_summary.html | 40 ++++++++++++------- .../accounts_receivable_summary.html | 40 ++++++++++++------- 2 files changed, 50 insertions(+), 30 deletions(-) diff --git a/erpnext/accounts/report/accounts_payable_summary/accounts_payable_summary.html b/erpnext/accounts/report/accounts_payable_summary/accounts_payable_summary.html index 9f42c9f65a3..885e9f5d6b3 100644 --- a/erpnext/accounts/report/accounts_payable_summary/accounts_payable_summary.html +++ b/erpnext/accounts/report/accounts_payable_summary/accounts_payable_summary.html @@ -72,6 +72,10 @@ font-weight: 500; } + .report-subtitle { + margin: 10px 0 14px; + } + .text-center { text-align: center; } .text-right { text-align: right; font-variant-numeric: tabular-nums; } .text-left { text-align: left; } @@ -97,25 +101,31 @@ -
-
-
- {%= __("Supplier") %}: - {%= (filters.party && filters.party.length && filters.party.join(", ")) || __("All Parties") %} -
+ {% if (subtitle && subtitle.trim()) { %} +
+ {{ subtitle }}
+ {% } else { %} +
+
+
+ {%= __("Supplier") %}: + {%= (filters.party && filters.party.length && filters.party.join(", ")) || __("All Parties") %} +
+
-
-
- {%= __("Ageing Based On") %}: - {%= __(filters.ageing_based_on) %} -
-
- {%= __("As on Date") %}: - {%= frappe.datetime.str_to_user(filters.report_date) %} +
+
+ {%= __("Ageing Based On") %}: + {%= __(filters.ageing_based_on) %} +
+
+ {%= __("As on Date") %}: + {%= frappe.datetime.str_to_user(filters.report_date) %} +
-
+ {% } %}
diff --git a/erpnext/accounts/report/accounts_receivable_summary/accounts_receivable_summary.html b/erpnext/accounts/report/accounts_receivable_summary/accounts_receivable_summary.html index 48e42b439d4..235fea669bd 100644 --- a/erpnext/accounts/report/accounts_receivable_summary/accounts_receivable_summary.html +++ b/erpnext/accounts/report/accounts_receivable_summary/accounts_receivable_summary.html @@ -72,6 +72,10 @@ font-weight: 500; } + .report-subtitle { + margin: 10px 0 14px; + } + .text-center { text-align: center; } .text-right { text-align: right; font-variant-numeric: tabular-nums; } .text-left { text-align: left; } @@ -97,25 +101,31 @@ -
-
-
- {%= __("Customer") %}: - {%= (filters.party && filters.party.length && filters.party.join(", ")) || __("All Parties") %} -
+ {% if (subtitle && subtitle.trim()) { %} +
+ {{ subtitle }}
+ {% } else { %} +
+
+
+ {%= __("Customer") %}: + {%= (filters.party && filters.party.length && filters.party.join(", ")) || __("All Parties") %} +
+
-
-
- {%= __("Ageing Based On") %}: - {%= __(filters.ageing_based_on) %} -
-
- {%= __("As on Date") %}: - {%= frappe.datetime.str_to_user(filters.report_date) %} +
+
+ {%= __("Ageing Based On") %}: + {%= __(filters.ageing_based_on) %} +
+
+ {%= __("As on Date") %}: + {%= frappe.datetime.str_to_user(filters.report_date) %} +
-
+ {% } %}