diff --git a/app/controllers/reports/annual_reports_controller.rb b/app/controllers/reports/annual_reports_controller.rb index 76bc4aff23..0323e41740 100644 --- a/app/controllers/reports/annual_reports_controller.rb +++ b/app/controllers/reports/annual_reports_controller.rb @@ -9,8 +9,6 @@ def index @actual_year = Time.current.year @years = (foundation_year...@actual_year).to_a - - @month_remaining_to_report = 12 - Time.current.month end def show diff --git a/app/helpers/reports/annual_reports_helper.rb b/app/helpers/reports/annual_reports_helper.rb new file mode 100644 index 0000000000..23403c4842 --- /dev/null +++ b/app/helpers/reports/annual_reports_helper.rb @@ -0,0 +1,7 @@ +module Reports + module AnnualReportsHelper + def available_date + (Date.current + 1.year).beginning_of_year.strftime("%B%e, %Y") + end + end +end diff --git a/app/views/reports/annual_reports/index.html.erb b/app/views/reports/annual_reports/index.html.erb index fbfffdfdb3..176ae93bda 100644 --- a/app/views/reports/annual_reports/index.html.erb +++ b/app/views/reports/annual_reports/index.html.erb @@ -25,7 +25,7 @@