Suppression test pu >=0 dans le cas $_POST['action'] == 'addligne'
This commit is contained in:
parent
600127b8b8
commit
2bf55e38e8
@ -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']);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user