mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-03 04:25:21 +02:00
Multi-currency support (#425)
* Initial foundational pass at multi-currency * Default format currency * More work on currency and exchanging * Re-build currencies on change * Currency import/setup * Background job overhaul + cheaper OXR plan support * Lint fixes * Test fixes * Multi-currency setup instructions * Allow decimals in the balance field * Spacing fix for form --------- Signed-off-by: Josh Pigford <josh@joshpigford.com>
This commit is contained in:
parent
94f7b4ea8f
commit
aa351ae616
41 changed files with 634 additions and 176 deletions
|
@ -4,14 +4,14 @@
|
|||
|
||||
<% Current.family.accounts.each do |account| %>
|
||||
<div class="flex flex-row items-center justify-between px-3 py-3 mb-2 bg-white shadow-sm rounded-xl">
|
||||
<div class="flex w-1/3 items-center text-sm">
|
||||
<div class="flex items-center w-1/3 text-sm">
|
||||
<%= account.name %>
|
||||
</div>
|
||||
<div class="flex w-1/3 items-center text-sm">
|
||||
<div class="flex items-center w-1/3 text-sm">
|
||||
<%= to_accountable_title(account.accountable) %>
|
||||
</div>
|
||||
<p class="flex w-1/3 text-sm text-right">
|
||||
<span class="block mb-1"><%= humanized_money_with_symbol account.balance %></span>
|
||||
<span class="block mb-1"><%= format_currency account.converted_balance %></span>
|
||||
</p>
|
||||
</div>
|
||||
<% end %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue