From eab04ad2985c30ac5d9f8a7ff2dff4a40f5fd3fd Mon Sep 17 00:00:00 2001 From: Herculino Trotta Date: Mon, 11 Nov 2024 00:35:09 -0300 Subject: [PATCH] fix: Summing exchanged transactions sums both amount and the exchanged amount --- app/templates/cotton/transaction/item.html | 28 +++++++++++-------- .../cotton/ui/transactions_action_bar.html | 2 +- 2 files changed, 17 insertions(+), 13 deletions(-) diff --git a/app/templates/cotton/transaction/item.html b/app/templates/cotton/transaction/item.html index 6e99e74..4873630 100644 --- a/app/templates/cotton/transaction/item.html +++ b/app/templates/cotton/transaction/item.html @@ -66,21 +66,25 @@
- +
+ +
{# Exchange Rate#} {% with exchanged=transaction.exchanged_amount %} {% if exchanged %} - +
+ +
{% endif %} {% endwith %}
{% if transaction.account.group %}{{ transaction.account.group.name }} • {% endif %}{{ transaction.account.name }}
diff --git a/app/templates/cotton/ui/transactions_action_bar.html b/app/templates/cotton/ui/transactions_action_bar.html index 824d3d3..d4500de 100644 --- a/app/templates/cotton/ui/transactions_action_bar.html +++ b/app/templates/cotton/ui/transactions_action_bar.html @@ -58,7 +58,7 @@ _="on change from #transactions-list or htmx:afterSettle