-
= 80 ? "bg-warning" : "bg-success" %> rounded-full transition-all"
+
= 80 ? "bg-warning" : "bg-success" %> rounded-full transition-all"
style="width: <%= [metrics[:budget_percent], 100].min %>%">
diff --git a/app/views/reports/_transactions_breakdown.html.erb b/app/views/reports/_transactions_breakdown.html.erb
index fafb717e1..586779c68 100644
--- a/app/views/reports/_transactions_breakdown.html.erb
+++ b/app/views/reports/_transactions_breakdown.html.erb
@@ -109,7 +109,7 @@
<%# Expenses Section %>
<% if expense_groups.any? %>
-
+
<%= icon("trending-down", class: "w-5 h-5") %>
<%= t("reports.transactions_breakdown.table.expense") %>
(<%= Money.new(expense_total, Current.family.currency).format %>)
@@ -143,7 +143,7 @@
-
+
<%= Money.new(group[:total], Current.family.currency).format %>
|
diff --git a/app/views/reports/_trends_insights.html.erb b/app/views/reports/_trends_insights.html.erb
index 1b3d83b53..6b294cc9c 100644
--- a/app/views/reports/_trends_insights.html.erb
+++ b/app/views/reports/_trends_insights.html.erb
@@ -29,13 +29,13 @@
<%= Money.new(trend[:income], Current.family.currency).format %>
|
-
+ |
<%= Money.new(trend[:expenses], Current.family.currency).format %>
|
-
">
+ | ">
<%= Money.new(trend[:net], Current.family.currency).format %>
|
-
">
+ | ">
<% savings_rate = trend[:income] > 0 ? ((trend[:net].to_f / trend[:income].to_f) * 100).round(1) : 0 %>
<%= savings_rate %>%
|
@@ -60,14 +60,14 @@
<%= t("reports.trends.avg_monthly_expenses") %>
-
+
<%= Money.new(avg_expenses, Current.family.currency).format %>
<%= t("reports.trends.avg_monthly_savings") %>
-
">
+
">
<%= Money.new(avg_net, Current.family.currency).format %>