Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes: Sidebar only displays cash balance for investment accounts, not full value #1438

Closed
wants to merge 2 commits into from

Conversation

donjuma
Copy link

@donjuma donjuma commented Nov 8, 2024

fixes #1369

PR fixes current issue with sidebar only showing cash value and not full account value.

Screenshot 2024-11-08 at 3 20 44 PM

@@ -109,7 +109,7 @@ def net_worth
end

def assets
Money.new(accounts.active.assets.map { |account| account.balance_money.exchange_to(currency, fallback_rate: 0) }.sum, currency)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In these two places, we will need to call account.value.exchange_to(currency, fallback_rate: 0) so that users with accounts in multiple currencies can be "rolled up" properly.

@zachgoll
Copy link
Collaborator

Closing as this should be fixed via #1526

@zachgoll zachgoll closed this Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: Sidebar only displays cash balance for investment accounts, not full value
2 participants