Modif message de retour de l'ajout d'un fournisseur

This commit is contained in:
Rodolphe Quiedeville 2003-10-11 21:03:29 +00:00
parent 1ad1bc1cf6
commit 9d1b6ece7b

View File

@ -96,11 +96,15 @@ if ($HTTP_POST_VARS["action"] == 'add_fourn' && $cancel <> 'Annuler')
$product = new Product($db); $product = new Product($db);
if( $product->fetch($id) ) if( $product->fetch($id) )
{ {
if ($product->add_fournisseur($user, $HTTP_POST_VARS["id_fourn"], $HTTP_POST_VARS["ref_fourn"])) if ($product->add_fournisseur($user, $HTTP_POST_VARS["id_fourn"], $HTTP_POST_VARS["ref_fourn"]) > 0)
{ {
$action = ''; $action = '';
$mesg = 'Founisseur ajouté'; $mesg = 'Founisseur ajouté';
} }
else
{
$action = '';
}
} }
} }