diff --git a/htdocs/compta/facture.php3 b/htdocs/compta/facture.php3 index 2e0eba975dd..eafc7cdfd24 100644 --- a/htdocs/compta/facture.php3 +++ b/htdocs/compta/facture.php3 @@ -47,9 +47,15 @@ if ($action == 'addligne') $result = $fac->addline($facid,$HTTP_POST_VARS["desc"],$HTTP_POST_VARS["pu"],$HTTP_POST_VARS["qty"]); } +if ($action == 'updateligne') +{ + $fac = new Facture($db,"",$facid); + $result = $fac->updateline($rowid,$HTTP_POST_VARS["desc"],$HTTP_POST_VARS["price"],$HTTP_POST_VARS["qty"]); +} + if ($action == 'deleteline') { - $fac = new Facture($db); + $fac = new Facture($db,"",$facid); $fac->id = $facid; $result = $fac->deleteline($rowid); } @@ -353,7 +359,7 @@ else print "