@@ -16,9 +16,9 @@
-
+
<%= balance_trend.current.format %>
- <%= render DS::Tooltip.new(text: "The end of day balance, after all transactions and adjustments") %>
+ <%= render DS::Tooltip.new(text: "The end of day balance, after all transactions and adjustments", placement: "left", size: "sm") %>
<%= helpers.icon "chevron-down", class: "group-open:rotate-180" %>
@@ -29,48 +29,48 @@
- Start of day balance
- - <%= start_balance_money.format %>
+ - <%= start_balance_money.format %>
<% if account.balance_type == :investment %>
- Cash Δ
- - <%= transaction_totals_money.format %>
+ - <%= transaction_totals_money.format %>
- Holdings Δ
- - <%= holding_change_money.format %>
+ - <%= holding_change_money.format %>
<% else %>
- Transaction totals
- - <%= transaction_totals_money.format %>
+ - <%= transaction_totals_money.format %>
<% end %>
- End of day balance
- - <%= end_balance_before_adjustments_money.format %>
+ - <%= end_balance_before_adjustments_money.format %>
-
-
- - Value adjustments Δ
-
- - <%= adjustments_money.format %>
-
+
-
- - Closing balance (incl. adjustments)
-
- - <%= end_balance_money.format %>
-
-
+
+ - Value adjustments Δ
+
+ - <%= adjustments_money.format %>
+
+
+
+ - Closing balance (incl. adjustments)
+
+ - <%= end_balance_money.format %>
+
diff --git a/app/models/account/activity_feed_data.rb b/app/models/account/activity_feed_data.rb
index 24971149..1854e327 100644
--- a/app/models/account/activity_feed_data.rb
+++ b/app/models/account/activity_feed_data.rb
@@ -12,7 +12,7 @@ class Account::ActivityFeedData
def trend_for_date(date)
start_balance = start_balance_for_date(date)
end_balance = end_balance_for_date(date)
-
+
Trend.new(
current: end_balance.balance_money,
previous: start_balance.balance_money