From 21dc4b80f39eec9e06a2950646f9d5399c71d260 Mon Sep 17 00:00:00 2001 From: Josh Pigford Date: Thu, 6 Feb 2025 14:35:42 -0600 Subject: [PATCH] fix: Round average monthly budget to two decimal places --- app/models/budgeting_stats.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/budgeting_stats.rb b/app/models/budgeting_stats.rb index 43fbd80f..fdda0dff 100644 --- a/app/models/budgeting_stats.rb +++ b/app/models/budgeting_stats.rb @@ -24,6 +24,6 @@ class BudgetingStats .from(monthly_totals, :mt) .pick("AVG(mt.total)") - result + result&.round(2) end end