X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=admin%2Ffiscalyears.php;h=9bbf4040579ac14c45f0a948c0675593b8251e55;hb=e82fa1f01d7f0d7706b9d3e2efaa9a31cc0777f6;hp=1c9af0dc2257cb463088a571d98759532fb22074;hpb=7bb4cf7c35ba6a755d88d19f18a9f00fef7e2f42;p=fa-stable.git diff --git a/admin/fiscalyears.php b/admin/fiscalyears.php index 1c9af0dc..9bbf4040 100644 --- a/admin/fiscalyears.php +++ b/admin/fiscalyears.php @@ -94,12 +94,11 @@ function handle_delete() { global $selected_id, $Mode; - if (!check_can_delete($selected_id)) - return; + if (check_can_delete($selected_id)) { //only delete if used in neither customer or supplier, comp prefs, bank trans accounts - - delete_fiscalyear($selected_id); - display_notification(_('Selected fiscal year has been deleted')); + delete_fiscalyear($selected_id); + display_notification(_('Selected fiscal year has been deleted')); + } $Mode = 'RESET'; }