From 89237519a417615ec7df0853963f809097470da9 Mon Sep 17 00:00:00 2001 From: ccomb Date: Tue, 6 Sep 2005 10:25:21 +0000 Subject: [PATCH] on ne pouvait plus mettre de ligne de facture avec un prix nul. --- htdocs/compta/facture.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index 649c01c3d23..d31e28352b6 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -310,7 +310,7 @@ if ($_POST["action"] == 'setremise' && $user->rights->facture->creer) if ($_POST["action"] == 'addligne' && $user->rights->facture->creer) { - if ($_POST["qty"] && (($_POST["pu"] && $_POST["desc"]) || $_POST["idprod"])) + if ($_POST["qty"] && (($_POST["pu"]>=0 && $_POST["desc"]) || $_POST["idprod"])) { $fac = new Facture($db); $fac->fetch($_POST["facid"]);