1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-24 15:49:39 +02:00

fix: reuse correct expense total calculation in budget.rb (#1699)

This commit is contained in:
Julien Bertazzo Lambert 2025-01-27 09:29:50 -05:00 committed by GitHub
parent caf359deed
commit 8be5bb07c8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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