fix: minor bug fixes for ar print template

This commit is contained in:
Shllokkk
2026-03-27 01:02:35 +05:30
parent e6a32a9d02
commit 4228885f1e
2 changed files with 11 additions and 10 deletions

View File

@@ -105,9 +105,7 @@
<div class="left">
<div>
<strong>{%= __("Customer") %}:</strong>
{%=
(filters.party.length && filters.party.join(", ")) || "All Parties"
%}
{%= (filters.party.length && filters.party.join(", ")) || __("All Parties") %}
</div>
</div>
@@ -128,11 +126,7 @@
<th style="text-align: left;">{%= __("Reference") %}</th>
{% if(filters.show_remarks) { %}
<td class="text-left">
{% if(i != data.length - 1 && data[i]["remarks"] && data[i]["remarks"] != "No Remarks") { %}
{%= data[i]["remarks"] %}
{% } %}
</td>
<th style="text-align: left;">{%= __("Remarks") %}</th>
{% } %}
<th style="width: 10em; text-align: right;">{%= __("Age (Days)") %}</th>
@@ -152,6 +146,13 @@
{%= data[i]["voucher_no"] %}
{% } %}
</td>
{% if(filters.show_remarks) { %}
<td class="text-left">
{% if(data[i]["remarks"] && data[i]["remarks"] != "No Remarks") { %}
{%= data[i]["remarks"] %}
{% } %}
</td>
{% } %}
<td class="text-right">{%= data[i]["age"] %}</td>
<td class="text-right">{%= format_currency(data[i]["invoiced"], data[i]["currency"]) %}</td>
<td class="text-right">{%= format_currency(data[i]["outstanding"], data[i]["currency"]) %}</td>