X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=admin%2Ffiscalyears.php;h=62f8f6a28f30c63f65efbb47937419efdf69cadd;hb=236c7f536aac0064585c371d37cf527f6984f3ce;hp=a1f1b7515ff3937776a40016edcc62991633da2b;hpb=431531eebf3ba494002cfbf7ea36f9e82d4975c0;p=fa-stable.git diff --git a/admin/fiscalyears.php b/admin/fiscalyears.php index a1f1b751..62f8f6a2 100644 --- a/admin/fiscalyears.php +++ b/admin/fiscalyears.php @@ -36,16 +36,19 @@ function check_data() if (!is_date($from)) { display_error( _("Invalid BEGIN date in fiscal year.")); + set_focus('from_date'); return false; } if (!is_date($_POST['to_date'])) { display_error( _("Invalid END date in fiscal year.")); + set_focus('to_date'); return false; } if (date1_greater_date2($from, $_POST['to_date'])) { display_error( _("BEGIN date bigger than END date.")); + set_focus('from_date'); return false; } return true; @@ -180,8 +183,8 @@ function display_fiscalyear_edit($selected_id) } else { - date_row(_("Fiscal Year Begin:"), 'from_date', null, 0, 0, 1001); - date_row(_("Fiscal Year End:"), 'to_date', null, 0, 0, 1001); + date_row(_("Fiscal Year Begin:"), 'from_date', '', null, 0, 0, 1001); + date_row(_("Fiscal Year End:"), 'to_date', '', null, 0, 0, 1001); } yesno_list_row(_("Is Closed:"), 'closed', null, "", "", false);