From bce20c10f5909ccc34c2ac6436c0d973850ee2a1 Mon Sep 17 00:00:00 2001 From: Matthias Hinrichs Date: Tue, 26 Aug 2025 03:38:05 +0200 Subject: [PATCH] fixed an issue in the models.go --- internal/models/models.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/internal/models/models.go b/internal/models/models.go index 306c2ac..c223fa9 100644 --- a/internal/models/models.go +++ b/internal/models/models.go @@ -279,11 +279,7 @@ func (r *RecurrenceRule) CanGenerate() bool { // Geändert: Generiere Transaktionen für die nächsten 12 Monate (für Dashboard-Trend) future12Months := now.AddDate(1, 0, 0) - if nextOccurrence.After(future12Months) { - return false - } - - return true + return !nextOccurrence.After(future12Months) } // GenerateTransaction erstellt eine neue Transaktion basierend auf der Wiederholungsregel