mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-19 04:59:18 +00:00
fix: minor changes in print templates
(cherry picked from commit 44e0b36093)
This commit is contained in:
@@ -72,6 +72,10 @@
|
|||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.report-subtitle {
|
||||||
|
margin: 10px 0 14px;
|
||||||
|
}
|
||||||
|
|
||||||
.text-center { text-align: center; }
|
.text-center { text-align: center; }
|
||||||
.text-right { text-align: right; font-variant-numeric: tabular-nums; }
|
.text-right { text-align: right; font-variant-numeric: tabular-nums; }
|
||||||
.text-left { text-align: left; }
|
.text-left { text-align: left; }
|
||||||
@@ -97,25 +101,31 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="report-meta">
|
{% if (subtitle && subtitle.trim()) { %}
|
||||||
<div class="left">
|
<div class="report-subtitle">
|
||||||
<div>
|
{{ subtitle }}
|
||||||
<strong>{%= __("Supplier") %}:</strong>
|
|
||||||
{%= (filters.party && filters.party.length && filters.party.join(", ")) || __("All Parties") %}
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
{% } else { %}
|
||||||
|
<div class="report-meta">
|
||||||
|
<div class="left">
|
||||||
|
<div>
|
||||||
|
<strong>{%= __("Supplier") %}:</strong>
|
||||||
|
{%= (filters.party && filters.party.length && filters.party.join(", ")) || __("All Parties") %}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="right text-right">
|
<div class="right text-right">
|
||||||
<div>
|
<div>
|
||||||
<strong>{%= __("Ageing Based On") %}:</strong>
|
<strong>{%= __("Ageing Based On") %}:</strong>
|
||||||
{%= __(filters.ageing_based_on) %}
|
{%= __(filters.ageing_based_on) %}
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<strong>{%= __("As on Date") %}:</strong>
|
<strong>{%= __("As on Date") %}:</strong>
|
||||||
{%= frappe.datetime.str_to_user(filters.report_date) %}
|
{%= frappe.datetime.str_to_user(filters.report_date) %}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
{% } %}
|
||||||
|
|
||||||
<div class="report-table">
|
<div class="report-table">
|
||||||
<table>
|
<table>
|
||||||
|
|||||||
@@ -72,6 +72,10 @@
|
|||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.report-subtitle {
|
||||||
|
margin: 10px 0 14px;
|
||||||
|
}
|
||||||
|
|
||||||
.text-center { text-align: center; }
|
.text-center { text-align: center; }
|
||||||
.text-right { text-align: right; font-variant-numeric: tabular-nums; }
|
.text-right { text-align: right; font-variant-numeric: tabular-nums; }
|
||||||
.text-left { text-align: left; }
|
.text-left { text-align: left; }
|
||||||
@@ -97,25 +101,31 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="report-meta">
|
{% if (subtitle && subtitle.trim()) { %}
|
||||||
<div class="left">
|
<div class="report-subtitle">
|
||||||
<div>
|
{{ subtitle }}
|
||||||
<strong>{%= __("Customer") %}:</strong>
|
|
||||||
{%= (filters.party && filters.party.length && filters.party.join(", ")) || __("All Parties") %}
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
{% } else { %}
|
||||||
|
<div class="report-meta">
|
||||||
|
<div class="left">
|
||||||
|
<div>
|
||||||
|
<strong>{%= __("Customer") %}:</strong>
|
||||||
|
{%= (filters.party && filters.party.length && filters.party.join(", ")) || __("All Parties") %}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="right text-right">
|
<div class="right text-right">
|
||||||
<div>
|
<div>
|
||||||
<strong>{%= __("Ageing Based On") %}:</strong>
|
<strong>{%= __("Ageing Based On") %}:</strong>
|
||||||
{%= __(filters.ageing_based_on) %}
|
{%= __(filters.ageing_based_on) %}
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<strong>{%= __("As on Date") %}:</strong>
|
<strong>{%= __("As on Date") %}:</strong>
|
||||||
{%= frappe.datetime.str_to_user(filters.report_date) %}
|
{%= frappe.datetime.str_to_user(filters.report_date) %}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
{% } %}
|
||||||
|
|
||||||
<div class="report-table">
|
<div class="report-table">
|
||||||
<table>
|
<table>
|
||||||
|
|||||||
Reference in New Issue
Block a user