Skip to content

Commit

Permalink
fix: show letterhead and terms for AR pdf
Browse files Browse the repository at this point in the history
(cherry picked from commit 0a9187e)
  • Loading branch information
GursheenK authored and mergify[bot] committed Sep 10, 2023
1 parent 7ea53cc commit 2077b2c
Showing 1 changed file with 21 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,24 @@
}
</style>

<div id="header-html" class="hidden-pdf">
{% if letter_head.content %}
<div class="letter-head text-center">{{ letter_head.content }}</div>
<hr style="height:2px;border-width:0;color:black;background-color:black;">
{% endif %}
</div>
<div id="footer-html" class="visible-pdf">
{% if letter_head.footer %}
<div class="letter-head-footer">
<hr style="border-width:0;color:black;background-color:black;padding-bottom:2px;">
{{ letter_head.footer }}
</div>
{% endif %}
</div>

<h2 class="text-center" style="margin-top:0">{{ _(report.report_name) }}</h2>
<h4 class="text-center">
{{ filters.customer }}
{{ filters.customer_name }}
</h4>
<h6 class="text-center">
{% if (filters.tax_id) %}
Expand Down Expand Up @@ -341,4 +356,9 @@ <h4 class="text-center">{{ _("Ageing Report based on ") }} {{ ageing.ageing_base
</tbody>
</table>
{% endif %}
{% if terms_and_conditions %}
<div>
{{ terms_and_conditions }}
</div>
{% endif %}
<p class="text-right text-muted">{{ _("Printed On ") }}{{ frappe.utils.now() }}</p>

0 comments on commit 2077b2c

Please sign in to comment.