1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-25 08:09:38 +02:00

Fix mode bug

This commit is contained in:
Zach Gollwitzer 2024-10-18 18:25:17 -04:00
parent 263d65ea7e
commit 3c0fdd84ee
9 changed files with 26 additions and 4 deletions

View file

@ -23,6 +23,10 @@ class Property < ApplicationRecord
"#06AED4"
end
def mode_required?
false
end
private
def first_valuation_amount
account.entries.account_valuations.order(:date).first&.amount_money || account.balance_money