diff --git a/htdocs/facture.class.php3 b/htdocs/facture.class.php3 index cecec8c9176..4e76ddd000e 100644 --- a/htdocs/facture.class.php3 +++ b/htdocs/facture.class.php3 @@ -274,9 +274,9 @@ class Facture { * * */ - Function addline($facid, $desc, $pu, $qty) + Function addline($facid, $desc, $pu, $qty, $txtva) { - $sql = "INSERT INTO llx_facturedet (fk_facture,description,price,qty) VALUES ($facid, '$desc', $pu, $qty) ;"; + $sql = "INSERT INTO llx_facturedet (fk_facture,description,price,qty,tva_taux) VALUES ($facid, '$desc', $pu, $qty, $txtva) ;"; $result = $this->db->query( $sql); $this->updateprice($facid);