From fa8483fe8caf1bb1415c470affa0d4f5ee562178 Mon Sep 17 00:00:00 2001 From: David Arnold Date: Mon, 2 Oct 2023 17:45:43 +0200 Subject: [PATCH] fix(portal): used rounded total in transaction rows, if enabled --- erpnext/templates/includes/transaction_row.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/erpnext/templates/includes/transaction_row.html b/erpnext/templates/includes/transaction_row.html index 72d498c998f..a498ba0eefa 100644 --- a/erpnext/templates/includes/transaction_row.html +++ b/erpnext/templates/includes/transaction_row.html @@ -15,10 +15,14 @@ {{ doc.items_preview }} - {% if doc.get('grand_total') %} + {% if doc.is_rounded_total_disabled() and doc.get('grand_total') %}
{{ doc.get_formatted("grand_total") }}
+ {% elif doc.get('rounded_total') %} +
+ {{ doc.get_formatted("rounded_total") }} +
{% endif %} Link