wip
Some checks failed
Build Docker Image / Build-Docker-Image (push) Failing after 8m31s

This commit is contained in:
2025-06-15 14:24:18 +02:00
parent d5d8a84a9a
commit 487ea82c34
7 changed files with 195 additions and 60 deletions

View File

@@ -1,8 +1,26 @@
package types
type DashboardSummary struct {
Income int64
Savings int64
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
Savings int64
// Sum of all Transactions with Accounts and no TreasureChests
Income int64
// Sum of all Transactions with Accounts and TreasureChests
Expenses int64
Total int64
// Income - Expenses
Total int64
}