diff --git a/server/budgeting.go b/server/budgeting.go index 6f57302..0645b2b 100644 --- a/server/budgeting.go +++ b/server/budgeting.go @@ -84,7 +84,6 @@ func (h *Handler) budgetingForMonth(c *gin.Context) { return } - // skip everything in the future categoriesWithBalance, moneyUsed := h.calculateBalances( budget, firstOfNextMonth, firstOfMonth, categories, cumultativeBalances) @@ -207,6 +206,7 @@ func (*Handler) CalculateCategoryBalances(cat *postgres.GetCategoriesRow, continue } + // skip everything in the future if !bal.Date.Before(firstOfNextMonth) { continue }