Also return income category
This commit is contained in:
parent
1e495a5e47
commit
34bbdf48b7
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user