mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-26 00:29:40 +02:00
fix: reuse correct expense total calculation in budget.rb (#1699)
This commit is contained in:
parent
caf359deed
commit
8be5bb07c8
1 changed files with 1 additions and 1 deletions
|
@ -113,7 +113,7 @@ class Budget < ApplicationRecord
|
||||||
end
|
end
|
||||||
|
|
||||||
def actual_spending
|
def actual_spending
|
||||||
budget_categories.reject(&:subcategory?).sum(&:actual_spending)
|
expense_categories_with_totals.total_money.amount
|
||||||
end
|
end
|
||||||
|
|
||||||
def available_to_spend
|
def available_to_spend
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue