Also return income category

This commit is contained in:
Jan Bader 2022-03-04 21:13:59 +00:00
parent 1e495a5e47
commit 34bbdf48b7

View File

@ -174,10 +174,6 @@ func (h *Handler) calculateBalances(budget postgres.Budget,
categoryWithBalance := h.CalculateCategoryBalances(cat, cumultativeBalances, categoryWithBalance := h.CalculateCategoryBalances(cat, cumultativeBalances,
firstOfNextMonth, moneyUsed, firstOfMonth, budget) firstOfNextMonth, moneyUsed, firstOfMonth, budget)
if cat.ID == budget.IncomeCategoryID {
continue
}
categoriesWithBalance = append(categoriesWithBalance, categoryWithBalance) categoriesWithBalance = append(categoriesWithBalance, categoryWithBalance)
} }