feat(transactions): display more information about recurring, quick and installments

This commit is contained in:
Herculino Trotta
2025-07-27 22:55:59 -03:00
parent 789fd4eb80
commit 9d2206f8a4
3 changed files with 39 additions and 0 deletions

View File

@@ -14,6 +14,8 @@
<tr>
<th scope="col" class="col-auto"></th>
<th scope="col" class="col">{% translate 'Name' %}</th>
<th scope="col" class="col">{% translate 'Account' %}</th>
<th scope="col" class="col">{% translate 'Amount' %}</th>
</tr>
</thead>
<tbody>
@@ -69,6 +71,17 @@
</div>
<div class="tw:text-sm tw:text-gray-400">{{ installment_plan.notes|linebreaksbr }}</div>
</td>
<td class="col-auto">
{% if installment_plan.account.group %}{{ installment_plan.account.group }} • {% endif %}{{ installment_plan.account }}
</td>
<td class="col-auto">
<c-amount.display
:amount="installment_plan.installment_amount"
:prefix="installment_plan.account.currency.prefix"
:suffix="installment_plan.account.currency.suffix"
:decimal_places="installment_plan.account.currency.decimal_places"
color="{% if installment_plan.type == "EX" %}red{% else %}green{% endif %}"></c-amount.display>
</td>
</tr>
{% endfor %}
</tbody>

View File

@@ -11,6 +11,8 @@
<tr>
<th scope="col" class="col-auto"></th>
<th scope="col" class="col">{% translate 'Name' %}</th>
<th scope="col" class="col">{% translate 'Account' %}</th>
<th scope="col" class="col">{% translate 'Amount' %}</th>
</tr>
</thead>
<tbody>
@@ -46,6 +48,17 @@
{{ qt.name }}
</div>
</td>
<td class="col-auto">
{% if qt.account.group %}{{ qt.account.group }} • {% endif %}{{ qt.account }}
</td>
<td class="col-auto">
<c-amount.display
:amount="qt.amount"
:prefix="qt.account.currency.prefix"
:suffix="qt.account.currency.suffix"
:decimal_places="qt.account.currency.decimal_places"
color="{% if qt.type == "EX" %}red{% else %}green{% endif %}"></c-amount.display>
</td>
</tr>
{% endfor %}
</tbody>

View File

@@ -16,6 +16,8 @@
<tr>
<th scope="col" class="col-auto"></th>
<th scope="col" class="col">{% translate 'Name' %}</th>
<th scope="col" class="col">{% translate 'Account' %}</th>
<th scope="col" class="col">{% translate 'Amount' %}</th>
</tr>
</thead>
<tbody>
@@ -105,6 +107,17 @@
</div>
<div class="tw:text-sm tw:text-gray-400">{{ recurring_transaction.notes|linebreaksbr }}</div>
</td>
<td class="col-auto">
{% if recurring_transaction.account.group %}{{ recurring_transaction.account.group }} • {% endif %}{{ recurring_transaction.account }}
</td>
<td class="col-auto">
<c-amount.display
:amount="recurring_transaction.amount"
:prefix="recurring_transaction.account.currency.prefix"
:suffix="recurring_transaction.account.currency.suffix"
:decimal_places="recurring_transaction.account.currency.decimal_places"
color="{% if recurring_transaction.type == "EX" %}red{% else %}green{% endif %}"></c-amount.display>
</td>
</tr>
{% endfor %}
</tbody>