X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=gl%2Fmanage%2Fclose_period.php;h=07d2d476eca52c98af06bc8d7d0f3ee88a4e3e9f;hb=b8ca787d4997e98d29af963f9e23534796381c44;hp=fc057c25827bb85c22e91ad5837dc3994ab7ddbb;hpb=53d942f2a0d20cce5e9c409c6485867ce0869e4d;p=fa-stable.git diff --git a/gl/manage/close_period.php b/gl/manage/close_period.php index fc057c25..07d2d476 100644 --- a/gl/manage/close_period.php +++ b/gl/manage/close_period.php @@ -20,14 +20,14 @@ include_once($path_to_root . "/includes/banking.inc"); include_once($path_to_root . "/admin/db/fiscalyears_db.inc"); $js = ""; -if ($use_date_picker) +if (user_use_date_picker()) $js .= get_js_date_picker(); page(_($help_context = "Closing GL Transactions"), false, false, "", $js); //--------------------------------------------------------------------------------------------- function check_data() { - global $Refs, $allow_gl_reopen; + global $SysPrefs; if (!is_date($_POST['date']) || date1_greater_date2($_POST['date'], Today())) { @@ -43,7 +43,7 @@ function check_data() } if (date1_greater_date2(sql2date(get_company_pref('gl_closing_date')), $_POST['date'])) { - if (!$allow_gl_reopen) { + if (!$SysPrefs->allow_gl_reopen) { display_error(_("The entered date is earlier than date already selected as closing date.")); set_focus('date'); return false; @@ -106,4 +106,3 @@ end_form(); end_page(); -?>