mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-25 08:09:38 +02:00
Format money for trade history in holdings drawer (#1961)
* Format money for trade history in holdings drawer * Fix broken tests * Lint fix
This commit is contained in:
parent
86bf47a32e
commit
a3cd5f4f1d
4 changed files with 14 additions and 7 deletions
|
@ -73,7 +73,7 @@
|
|||
".trade_history_entry",
|
||||
qty: trade_entry.account_trade.qty,
|
||||
security: trade_entry.account_trade.security.ticker,
|
||||
price: format_money(trade_entry.account_trade.price)
|
||||
price: trade_entry.account_trade.price_money.format
|
||||
) %></p>
|
||||
</div>
|
||||
</li>
|
||||
|
|
|
@ -21,8 +21,7 @@
|
|||
[["Total value", "balance"], ["Holdings", "holdings_balance"], ["Cash", "cash_balance"]],
|
||||
{ selected: chart_view },
|
||||
class: "border border-secondary rounded-lg text-sm pr-7 cursor-pointer text-primary focus:outline-hidden focus:ring-0",
|
||||
data: { "auto-submit-form-target": "auto" }
|
||||
%>
|
||||
data: { "auto-submit-form-target": "auto" } %>
|
||||
<% end %>
|
||||
|
||||
<%= period_select form: form, selected: period %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue