feat: Grafana-Panel Planung nach Kategorie inkl. Kreditraten (A11-T3)

Neue Tabelle planning_monthly (Monatssummen je Kategorie aus wiederkehrenden
Posten, Einmalposten und allen Kreditraten), Service planning_chart mit
refresh_planning_chart (Advisory-Lock, komplette Neuschreibung), GUI-Hooks
in index/planung_page ueber _safe_refresh, neues Barchart-Panel im
Grafana-Dashboard (Panel 5).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-09-28 19:15:26 +02:00
co-authored by Claude Opus 5.5
parent 979e1c0edc
commit 42b410446d
9 changed files with 273 additions and 0 deletions
+11
View File
@@ -156,3 +156,14 @@ class ProjectionResult(Base):
low_point_balance: Mapped[Decimal] = mapped_column(MONEY)
below_zero_date: Mapped[date | None] = mapped_column(Date, nullable=True)
below_threshold_date: Mapped[date | None] = mapped_column(Date, nullable=True)
class PlanningMonthly(Base):
"""Abgeleitete Daten für das Grafana-Panel „Planung nach Kategorie"
(Ausbaustufe 11): Monatssummen je Kategorie aus der Planung. Wird von
services/planning_chart.refresh_planning_chart komplett neu geschrieben;
jederzeit reproduzierbar, kein Backup-Sonderfall."""
__tablename__ = "planning_monthly"
month: Mapped[date] = mapped_column(Date, primary_key=True)
category: Mapped[str] = mapped_column(String(100), primary_key=True)
total: Mapped[Decimal] = mapped_column(MONEY)