feat: Eine Ausgabe, die kein Verlust ist
Sparen zaehlt im Budget wie eine Ausgabe – zu Recht, das Geld ist diesen Monat gebunden. Es stand danach aber in Rot da, und wer tausend zuruecklegte statt achthundert, bekam eine Warnung fuer etwas Gutes. Ein Haken an der Kategorie stellt das ab. Zwei Folgen: Der Betrag steht neutral. NICHT gruen: Gruen heisst in Certain ueberall "Geld kommt rein", und CHF 1'010 in Gruen liest sich als Einnahme. Grau sagt genau das Richtige – kein Verlust, kein Gewinn. Und mehr als geplant ist keine Ueberschreitung mehr. Das gilt auch eine Ebene hoeher: Eine Gruppe misst sich an dem, was WIRKLICH zu viel war. Sonst faerbt sich "Finanzen" rot, weil jemand gespart hat, und die echte Ueberschreitung daneben faellt nicht mehr auf. Angezeigt werden weiter die vollen Summen; nur das Urteil laesst das Sparen aus. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
15c2a164ec
commit
ff621984dc
@@ -229,6 +229,7 @@ class CategoryOut(BaseModel):
|
||||
is_builtin: bool
|
||||
is_archived: bool
|
||||
excluded_from_stats: bool = False
|
||||
spending_is_good: bool = False
|
||||
# Anzahl hinterlegter Schlagwörter. Nur in der Liste gefüllt, damit die
|
||||
# Übersicht ohne einen Abruf je Kategorie auskommt.
|
||||
keyword_count: int = 0
|
||||
@@ -265,6 +266,7 @@ class CategoryCreate(BaseModel):
|
||||
icon: str = "more-horizontal"
|
||||
color: str = "#6b7480"
|
||||
excluded_from_stats: bool = False
|
||||
spending_is_good: bool = False
|
||||
|
||||
|
||||
class CategoryUpdate(BaseModel):
|
||||
@@ -275,6 +277,7 @@ class CategoryUpdate(BaseModel):
|
||||
position: int | None = None
|
||||
is_archived: bool | None = None
|
||||
excluded_from_stats: bool | None = None
|
||||
spending_is_good: bool | None = None
|
||||
|
||||
|
||||
# --- Transaktionen ---------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user