The personal finance app for everyone (by everyone)
Ruby
New "last month" period and clarify "30D" label
Juan José Mata1a78110af258
diff --git a/app/models/period.rb b/app/models/period.rbindex c3678bba40..3e369f4100 100644--- a/app/models/period.rb+++ b/app/models/period.rb@@ -34,11 +34,17 @@ class Periodlabel: "Current Month",comparison_label: "vs. start of month"},+ "last_month" => {+ date_range: -> { [ 1.month.ago.beginning_of_month.to_date, 1.month.ago.end_of_month.to_date ] },+ label_short: "LM",+ label: "Last Month",+ comparison_label: "vs. last month"+ },"last_30_days" => {date_range: -> { [ 30.days.ago.to_date, Date.current ] },label_short: "30D",label: "Last 30 Days",- comparison_label: "vs. last month"+ comparison_label: "vs. last 30 days"},"last_90_days" => {date_range: -> { [ 90.days.ago.to_date, Date.current ] },