fix: escape party name and contact display on order page

This commit is contained in:
diptanilsaha
2026-08-19 02:06:17 +05:30
parent 25dfcb17c8
commit a5aec7ed84

View File

@@ -73,11 +73,11 @@
</div>
<div class="text-right col-2">
{%- set party_name = doc.supplier_name if doc.doctype in ['Supplier Quotation', 'Purchase Invoice', 'Purchase Order'] else doc.customer_name %}
<b>{{ party_name }}</b>
<b>{{ party_name | e }}</b>
{% if doc.contact_display and doc.contact_display != party_name %}
<br>
{{ doc.contact_display }}
{{ doc.contact_display | e }}
{% endif %}
</div>
</div>