mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-04 21:15:19 +02:00
Fix incorrect totals calculation when family has loan payments (#1984)
* Fix income totals calculation error when loan payments exist * Include transaction totals in totals query
This commit is contained in:
parent
b8a3ca7732
commit
f363fd4a4e
4 changed files with 8 additions and 5 deletions
|
@ -2,7 +2,7 @@
|
|||
<div class="grid grid-cols-3 bg-white rounded-xl shadow-border-xs divide-x divide-alpha-black-100">
|
||||
<div class="p-4 space-y-2">
|
||||
<p class="text-sm text-secondary">Total transactions</p>
|
||||
<p class="text-primary font-medium text-xl" id="total-transactions"><%= totals.transactions_count %></p>
|
||||
<p class="text-primary font-medium text-xl" id="total-transactions"><%= totals.transactions_count.round(0) %></p>
|
||||
</div>
|
||||
<div class="p-4 space-y-2">
|
||||
<p class="text-sm text-secondary">Income</p>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue