diff --git a/htdocs/compta/facture.php3 b/htdocs/compta/facture.php3 index dd71a0ff645..60d65ef9541 100644 --- a/htdocs/compta/facture.php3 +++ b/htdocs/compta/facture.php3 @@ -162,7 +162,8 @@ if ($action == 'add') $prop->lignes[$i]->desc, $prop->lignes[$i]->price, $prop->lignes[$i]->qty, - $prop->lignes[$i]->tva_tx); + $prop->lignes[$i]->tva_tx, + $prop->lignes[$i]->product_id); } } else @@ -464,7 +465,7 @@ else * */ - $sql = "SELECT l.description, l.price, l.qty, l.rowid, l.tva_taux"; + $sql = "SELECT l.fk_product, l.description, l.price, l.qty, l.rowid, l.tva_taux"; $sql .= " FROM llx_facturedet as l WHERE l.fk_facture = $facid"; $result = $db->query($sql); @@ -490,7 +491,14 @@ else $objp = $db->fetch_object( $i); $var=!$var; print "