From 1bd38bb367010496946abbb26865be67f90af707 Mon Sep 17 00:00:00 2001 From: Jan Bader Date: Sun, 20 Feb 2022 22:40:58 +0000 Subject: [PATCH] Move comment --- server/budgeting.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }