From 2bf55e38e8d1596b80dc74242950020a45a3fe19 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Thu, 9 Mar 2006 08:31:36 +0000 Subject: [PATCH] Suppression test pu >=0 dans le cas $_POST['action'] == 'addligne' --- 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 34126cc25b1..cb54afd5e8d 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -334,7 +334,7 @@ if ($_POST['action'] == 'setremise' && $user->rights->facture->creer) if ($_POST['action'] == 'addligne' && $user->rights->facture->creer) { - if ($_POST['qty'] && (($_POST['pu']>=0 && $_POST['desc']) || $_POST['idprod'])) + if ($_POST['qty'] && ( $_POST['desc'] || $_POST['idprod'])) { $fac = new Facture($db); $fac->fetch($_POST['facid']);