diff --git a/htdocs/compta/stats/exercices.php b/htdocs/compta/stats/exercices.php index da46ac76c4d..97e151022f4 100644 --- a/htdocs/compta/stats/exercices.php +++ b/htdocs/compta/stats/exercices.php @@ -96,7 +96,7 @@ function propals ($db, $year, $month) { function factures ($db, $year, $month, $paye) { global $bc; - $sql = "SELECT s.nom, s.idp, f.facnumber, f.amount,".$db->pdate("f.datef")." as df, f.paye, f.rowid as facid "; + $sql = "SELECT s.nom, s.idp, f.facnumber, f.total as amount,".$db->pdate("f.datef")." as df, f.paye, f.rowid as facid "; $sql .= " FROM llx_societe as s,llx_facture as f WHERE f.fk_soc = s.idp AND f.paye = $paye"; $sql .= " AND date_format(f.datef, '%Y') = $year "; $sql .= " AND round(date_format(f.datef, '%m')) = $month "; @@ -232,7 +232,7 @@ function ppt ($db, $year, $socidp) print "