{
$input_error = 1;
display_error( _("The account code must be entered."));
+ set_focus('account_code');
}
elseif (strlen($_POST['account_name']) == 0)
{
$input_error = 1;
display_error( _("The account name cannot be empty."));
+ set_focus('account_name');
}
elseif (!$accounts_alpha && !is_numeric($_POST['account_code']))
{
$input_error = 1;
display_error( _("The account code must be numeric."));
+ set_focus('account_code');
}
if ($input_error != 1)
gl_account_types_list_row(_("Account Group:"), 'account_type', null);
-tax_types_list_row(_("Tax Type:"), 'tax_code', null, true, _('No Tax'));
+tax_types_list_row(_("Tax Type:"), 'tax_code', null, _('No Tax'));
end_table(1);