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

@@ -2,17 +2,6 @@ package types
import "time"
// Account | TreasureChest | Value | Description
// --------|---------------|-------|----------------
// Y | Y | + | Invalid
// Y | Y | - | Expense
// Y | N | + | Deposit
// Y | N | - | Withdrawal (for moving between accounts)
// N | Y | + | Saving
// N | Y | - | Withdrawal (for moving between treasure chests)
// N | N | + | Invalid
// N | N | - | Invalid
type DashboardMonthlySummary struct {
Month time.Time
// Sum of all Transactions with TreasureChests and no Accounts
@@ -23,4 +12,7 @@ type DashboardMonthlySummary struct {
Expenses int64
// Income - Expenses
Total int64
SumOfSavings int64
SumOfAccounts int64
}