Skip to content

Commit

Permalink
fix: reuse correct expense total calculation in budget.rb (#1699)
Browse files Browse the repository at this point in the history
  • Loading branch information
JLambertazzo authored Jan 27, 2025
1 parent caf359d commit 8be5bb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/budget.rb
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def estimated_spending
end

def actual_spending
budget_categories.reject(&:subcategory?).sum(&:actual_spending)
expense_categories_with_totals.total_money.amount
end

def available_to_spend
Expand Down

0 comments on commit 8be5bb0

Please sign in to comment.