feat(dashboard): #162 include total sum of accounts compared to total savings
This commit was merged in pull request #185.
This commit is contained in:
@@ -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>
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user