Merge pull request #37310 from deepeshgarg007/lead_details_qb
chore: rewrite query using query builder
diff --git a/erpnext/templates/includes/transaction_row.html b/erpnext/templates/includes/transaction_row.html
index 72d498c..a498ba0 100644
--- a/erpnext/templates/includes/transaction_row.html
+++ b/erpnext/templates/includes/transaction_row.html
@@ -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>