feat(transactions): properly sum income and expense when selected

also added a flatTotal (old behavior) for future use
This commit is contained in:
Herculino Trotta
2025-01-04 01:32:09 -03:00
parent c861b9ae07
commit eb753bb30e
2 changed files with 14 additions and 6 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
{% load i18n %}
<div class="transaction d-flex my-1">
<div class="transaction d-flex my-1 {% if transaction.type == "EX" %}expense{% else %}income{% endif %}">
{% if not disable_selection %}
<label class="px-3 d-flex align-items-center justify-content-center">
<input class="form-check-input" type="checkbox" name="transactions" value="{{ transaction.id }}" id="check-{{ transaction.id }}" aria-label="{% translate 'Select' %}" hx-preserve>