X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=admin%2Ffiscalyears.php;h=d6d05c5a14153a643c25e7fc4c924adcd66c32cc;hb=5a3cbfe6d2df1c8c32edcab8bf93e8a8432a15fc;hp=d886608f92cd4feba91ba2a0f00db3e7a0baea0e;hpb=5ee2c3abc170f8e4cf00c000b6312eb27f618713;p=fa-stable.git diff --git a/admin/fiscalyears.php b/admin/fiscalyears.php index d886608f..d6d05c5a 100644 --- a/admin/fiscalyears.php +++ b/admin/fiscalyears.php @@ -20,7 +20,7 @@ include_once($path_to_root . "/includes/ui.inc"); include_once($path_to_root . "/sales/includes/db/cust_trans_db.inc"); include_once($path_to_root . "/admin/db/maintenance_db.inc"); $js = ""; -if ($use_date_picker) +if (user_use_date_picker()) $js .= get_js_date_picker(); page(_($help_context = "Fiscal Years"), false, false, "", $js); @@ -99,7 +99,7 @@ function check_can_delete($selected_id) // PREVENT DELETES IF DEPENDENT RECORDS IN gl_trans if (check_years_before(sql2date($myrow['begin']), true)) { - display_error(_("Cannot delete this fiscal year because thera are fiscal years before.")); + display_error(_("Cannot delete this fiscal year because there are fiscal years before.")); return false; } if ($myrow['closed'] == 0) @@ -253,4 +253,3 @@ display_fiscalyear_edit($selected_id); end_page(); -?>