fix: minor changes in print template

(cherry picked from commit 915fcc0166)
This commit is contained in:
Shllokkk
2026-04-12 13:07:41 +05:30
committed by Mergify
parent 1c6dc80b70
commit 16bc28bd70

View File

@@ -78,6 +78,10 @@
font-weight: 500; font-weight: 500;
} }
.report-subtitle {
margin: 10px 0 14px;
}
@media print { @media print {
@page { @page {
size: A4; size: A4;
@@ -92,31 +96,34 @@
<div> <div>
<!-- Title -->
<div class="text-center" style="margin-bottom: 12px;"> <div class="text-center" style="margin-bottom: 12px;">
<div class="title-letter-spacing"> <div class="title-letter-spacing">
{%= __(report.report_name) %} {%= __(report.report_name) %}
</div> </div>
</div> </div>
<!-- Meta --> {% if (subtitle && subtitle.trim()) { %}
<div class="report-meta"> <div class="report-subtitle">
<div class="left"> {{ subtitle }}
<div> </div>
<strong>{%= __("Supplier") %}:</strong> {% } else { %}
{%= (filters.party.length && filters.party.join(", ")) || __("All Parties") %} <div class="report-meta">
<div class="left">
<div>
<strong>{%= __("Supplier") %}:</strong>
{%= (filters.party.length && filters.party.join(", ")) || __("All Parties") %}
</div>
</div>
<div class="right text-right">
<div>
<strong>{%= __("Report Date") %}:</strong>
{%= frappe.datetime.str_to_user(filters.report_date) %}
</div>
</div> </div>
</div> </div>
{% } %}
<div class="right text-right">
<div>
<strong>{%= __("Report Date") %}:</strong>
{%= frappe.datetime.str_to_user(filters.report_date) %}
</div>
</div>
</div>
<!-- Main Table -->
<div class="report-table"> <div class="report-table">
<table> <table>
<thead> <thead>