diff --git a/app/controllers/general_ledger_accounts_controller.rb b/app/controllers/general_ledger_accounts_controller.rb index 4926dbeb..4191fd2c 100644 --- a/app/controllers/general_ledger_accounts_controller.rb +++ b/app/controllers/general_ledger_accounts_controller.rb @@ -1,4 +1,5 @@ class GeneralLedgerAccountsController < OrganizationAwareController + include FiscalYearHelper add_breadcrumb "Home", :root_path @@ -77,9 +78,9 @@ def toggle_archive if coa.present? if ArchivedFiscalYear.archive(coa.organization_id, params[:fy_year], true) - notify_user(:notice, "The #{helpers.get_fy_label} was successfully archived/unarchived.") + notify_user(:notice, "The #{get_fy_label} was successfully archived/unarchived.") else - notify_user(:alert, "Cannot archive/unarchive #{helpers.get_fy_label}.") + notify_user(:alert, "Cannot archive/unarchive #{get_fy_label}.") end redirect_to general_ledger_accounts_path(organization_id: coa.organization_id)