feat(dashboard): #162 include total sum of accounts compared to total savings
All checks were successful
Build Docker Image / Build-Docker-Image (push) Successful in 5m15s
Build and Push Docker Image / Build-And-Push-Docker-Image (push) Successful in 5m7s

This commit was merged in pull request #185.
This commit is contained in:
2025-06-16 23:00:38 +02:00
parent 596cc602d0
commit 06a8c80f1d
3 changed files with 38 additions and 11 deletions

View File

@@ -32,6 +32,15 @@ templ DashboardData(summary *types.DashboardMonthlySummary) {
@balance(summary.Expenses)
@balance(summary.Total)
</section>
<section class="grid grid-cols-[auto_auto_auto_1fr] gap-4">
<span>Total Savings</span>
<span>Total Account Balance</span>
<span>Net</span>
<span></span>
<span>{ types.FormatEuros(summary.SumOfSavings) }</span>
<span>{ types.FormatEuros(summary.SumOfAccounts) }</span>
@balance(summary.SumOfAccounts - summary.SumOfSavings)
</section>
</div>
}