Suppression test pu >=0 dans le cas $_POST['action'] == 'addligne'

This commit is contained in:
Rodolphe Quiedeville 2006-03-09 08:31:36 +00:00
parent 600127b8b8
commit 2bf55e38e8

View File

@ -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']);