Files
spend-sparrow/internal/types/dashboard.go
Tim Wundenberg 06a8c80f1d
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
feat(dashboard): #162 include total sum of accounts compared to total savings
2025-06-16 23:00:38 +02:00

19 lines
399 B
Go

package types
import "time"
type DashboardMonthlySummary struct {
Month time.Time
// Sum of all Transactions with TreasureChests and no Accounts
Savings int64
// Sum of all Transactions with Accounts and no TreasureChests
Income int64
// Sum of all Transactions with Accounts and TreasureChests
Expenses int64
// Income - Expenses
Total int64
SumOfSavings int64
SumOfAccounts int64
}