Add dummy category for uncategorized transactions
This commit is contained in:
parent
f5274f69fc
commit
df7b691bdd
@ -139,6 +139,11 @@ func (h *Handler) calculateBalances(budget postgres.Budget, month Month,
|
||||
categoriesWithBalance := []CategoryWithBalance{}
|
||||
|
||||
moneyUsed := numeric.Zero()
|
||||
categories = append(categories, postgres.GetCategoriesRow{
|
||||
Group: "Income",
|
||||
Name: "No Category",
|
||||
ID: uuid.UUID{},
|
||||
})
|
||||
for i := range categories {
|
||||
cat := &categories[i]
|
||||
if cat.ID == budget.IncomeCategoryID {
|
||||
|
Loading…
x
Reference in New Issue
Block a user