mirror of
https://github.com/we-promise/sure.git
synced 2026-04-18 19:44:09 +00:00
fix: reuse correct expense total calculation in budget.rb (#1699)
This commit is contained in:
committed by
GitHub
parent
caf359deed
commit
8be5bb07c8
@@ -113,7 +113,7 @@ class Budget < ApplicationRecord
|
||||
end
|
||||
|
||||
def actual_spending
|
||||
budget_categories.reject(&:subcategory?).sum(&:actual_spending)
|
||||
expense_categories_with_totals.total_money.amount
|
||||
end
|
||||
|
||||
def available_to_spend
|
||||
|
||||
Reference in New Issue
Block a user