Modif message de retour de l'ajout d'un fournisseur
This commit is contained in:
parent
1ad1bc1cf6
commit
9d1b6ece7b
@ -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 = '';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user