Merge pull request #37324 from blaggacao/fix/portal-tx-row-total-display

fix(portal): used rounded total in transaction rows, if enabled
This commit is contained in:
Deepesh Garg 2023-10-09 19:37:26 +05:30 committed by GitHub
commit 8f9dd5407b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,10 +15,14 @@
{{ doc.items_preview }}
</div>
</div>
{% if doc.get('grand_total') %}
{% if doc.is_rounded_total_disabled() and doc.get('grand_total') %}
<div class="col-sm-3 text-right font-weight-bold item-total">
{{ doc.get_formatted("grand_total") }}
</div>
{% elif doc.get('rounded_total') %}
<div class="col-sm-3 text-right font-weight-bold item-total">
{{ doc.get_formatted("rounded_total") }}
</div>
{% endif %}
</div>
<a class="transaction-item-link" href="/{{ pathname }}/{{ doc.name }}">Link</a>