Possibilite d'avoir un prix d'achat = 0

This commit is contained in:
Rodolphe Quiedeville 2006-12-02 14:13:57 +00:00
parent b5ebdb2040
commit 71645f76fc

View File

@ -111,7 +111,7 @@ if ($_POST["action"] == 'updateprice' && $_POST["cancel"] <> $langs->trans("Canc
if ($_POST["qty"]) if ($_POST["qty"])
{ {
if ($_POST["price"] > 0) if ($_POST["price"] >= 0)
{ {
$ret=$product->update_buyprice($_POST["id_fourn"], $_POST["qty"], $_POST["price"], $user); $ret=$product->update_buyprice($_POST["id_fourn"], $_POST["qty"], $_POST["price"], $user);
if ($ret < 0) if ($ret < 0)