on ne pouvait plus mettre de ligne de facture avec un prix nul.

This commit is contained in:
ccomb 2005-09-06 10:25:21 +00:00
parent 47fb376be6
commit 89237519a4

View File

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