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);
// 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)
end_page();
-?>