Implement basic budgeting input #39

Merged
jacob1123 merged 16 commits from budgeting into master 2022-03-05 22:12:15 +01:00
Showing only changes of commit 0dde94f855 - Show all commits

View File

@ -110,7 +110,6 @@ func (*Handler) getAvailableBalance(budget postgres.Budget,
moneyUsed numeric.Numeric, cumultativeBalances []postgres.GetCumultativeBalancesRow, moneyUsed numeric.Numeric, cumultativeBalances []postgres.GetCumultativeBalancesRow,
firstOfNextMonth time.Time) numeric.Numeric { firstOfNextMonth time.Time) numeric.Numeric {
availableBalance := moneyUsed availableBalance := moneyUsed
fmt.Printf("%s: %f\n", "INC", moneyUsed.GetFloat64())
for _, bal := range cumultativeBalances { for _, bal := range cumultativeBalances {
if bal.CategoryID != budget.IncomeCategoryID { if bal.CategoryID != budget.IncomeCategoryID {