$input_error = 1;
}
elseif (!is_new_reference($_POST['ref'], systypes::bank_payment()))
{
display_error( _("The entered reference is already in use."));
$input_error = 1;
}
elseif (!is_new_reference($_POST['ref'], systypes::bank_payment()))
{
display_error( _("The entered reference is already in use."));
$input_error = 1;
}
elseif (!is_date_in_fiscalyear($_POST['date_']))
{
display_error(_("The entered date is not in fiscal year."));
$input_error = 1;
}
elseif (!is_date_in_fiscalyear($_POST['date_']))
{
display_error(_("The entered date is not in fiscal year."));
if (!check_num('amount', 0))
{
display_error( _("The amount entered is not a valid number or is less than zero."));
if (!check_num('amount', 0))
{
display_error( _("The amount entered is not a valid number or is less than zero."));
return false;
}
if ($_POST['code_id'] == $_POST['bank_account'])
{
display_error( _("The source and destination accouts cannot be the same."));
return false;
}
if ($_POST['code_id'] == $_POST['bank_account'])
{
display_error( _("The source and destination accouts cannot be the same."));
return false;
}
if (is_bank_account($_POST['code_id']))
{
display_error( _("You cannot make a payment to a bank account. Please use the transfer funds facility for this."));
return false;
}
if (is_bank_account($_POST['code_id']))
{
display_error( _("You cannot make a payment to a bank account. Please use the transfer funds facility for this."));