Fix: error if used a futur date

This commit is contained in:
Regis Houssin 2010-04-09 08:58:31 +00:00
parent eaf654ed32
commit f922ad5ff1
2 changed files with 5 additions and 0 deletions

View File

@ -355,6 +355,10 @@ if ($_POST["action"] == 'livraison' && $user->rights->fournisseur->commande->rec
Header("Location: fiche.php?id=".$id);
exit;
}
else if($result == -3)
{
$mesg='<div class="error">'.$langs->trans("NotAuthorized").'</div>';
}
else
{
dol_print_error($db,$commande->error);

View File

@ -1158,6 +1158,7 @@ class CommandeFournisseur extends Commande
else
{
dol_syslog("CommandeFournisseur::Livraison Not Authorized");
$result = -3;
}
return $result ;
}