Skip to content

Commit

Permalink
Merge branch 'quarter2' of https://github.com/camsys/transam_accounting
Browse files Browse the repository at this point in the history
… into quarter2
  • Loading branch information
DerekEdwards committed Jun 8, 2018
2 parents c4b8fb2 + 284ca05 commit 84a394b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/controllers/general_ledger_accounts_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
class GeneralLedgerAccountsController < OrganizationAwareController
include FiscalYearHelper

add_breadcrumb "Home", :root_path

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 84a394b

Please sign in to comment.