feature: Show total balance in family currency in accounts. #2283
Reference in New Issue
Block a user
Delete Branch "convert-currency"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
For accounts in a different currency from the family currency, show a total balance in the family currency for a better financial overview.
Fixes #2145.
bugbot run
Bug: Money Conversion Loses Currency Data
The new line displaying the converted balance calls
.amounton the Money object returned byexchange_to, stripping its currency information. Theformat_moneyhelper, which expects a Money object, receives a raw number instead. This can result in incorrect currency formatting or runtime errors. Remove.amountto pass the Money object directly.app/views/accounts/show/_chart.html.erb#L20-L23a5b0c93915/app/views/accounts/show/_chart.html.erb (L20-L23)Fix in Cursor
Was this report helpful? Give feedback by reacting with 👍 or 👎
@Joelute we can accept this change, but I think we may have a few little design tweaks to make with where we're placing it. Also, see the bugbot report as I think I agree with its analysis. We should be passing the money object directly to format_money.
Let me see if we can get a Figma file for this.
Hey @zachgoll, just implemented the changes to follow the Figma file. Looks better now with the new design, thank you! I also passed the Money object to
format_money.Finish