From: Janusz Dobrowolski Date: Wed, 26 Jan 2011 14:58:25 +0000 (+0000) Subject: Added date check against closed fiscal year. X-Git-Tag: v2.4.2~19^2~390 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=6ffe5f040543994725beaf9f8059c054919043d7;p=fa-stable.git Added date check against closed fiscal year. --- diff --git a/gl/manage/close_period.php b/gl/manage/close_period.php index 76fc317f..fa21d00b 100644 --- a/gl/manage/close_period.php +++ b/gl/manage/close_period.php @@ -34,6 +34,12 @@ function check_data() set_focus('date'); return false; } + if (!is_date_in_fiscalyears($date, false)) + { + display_error(_("Selected date is not in fiscal year or the year is closed.")); + set_focus('date'); + return false; + } if (date1_greater_date2(sql2date(get_company_pref('gl_closing_date')), $_POST['date'])) { if (!$allow_gl_reopen) {