diff --git a/htdocs/fourn/facture/fiche.php3 b/htdocs/fourn/facture/fiche.php3 index 24fe5ce08b9..47d4433d76b 100644 --- a/htdocs/fourn/facture/fiche.php3 +++ b/htdocs/fourn/facture/fiche.php3 @@ -185,7 +185,7 @@ if ($action == 'create') { if ($facid > 0) { - $sql = "SELECT s.nom as socnom, s.idp as socidp, f.facnumber, f.amount, f.total, ".$db->pdate("f.datef")." as df, f.paye, f.fk_statut as statut, f.note, f.libelle"; + $sql = "SELECT s.nom as socnom, s.idp as socidp, f.facnumber, f.amount, f.tva, f.total, ".$db->pdate("f.datef")." as df, f.paye, f.fk_statut as statut, f.note, f.libelle"; $sql .= " FROM societe as s,llx_facture_fourn as f WHERE f.fk_soc = s.idp AND f.rowid = $facid"; $result = $db->query( $sql); @@ -217,7 +217,7 @@ if ($action == 'create') { print "Auteur$obj->author "; print "Montant".price($obj->amount)."euros HT"; - print "TVA".tva($obj->amount)."euros"; + print "TVA".price($obj->tva)."euros"; print "Total".price($obj->total)."euros TTC"; print "Statut$obj->statut";