Move comment
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/pr/woodpecker Pipeline was successful

This commit is contained in:
Jan Bader 2022-02-20 22:40:58 +00:00
parent 19d2ddbd65
commit 1bd38bb367

View File

@ -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
}