Commit cd1f1851 authored by Bate's avatar Bate

Stats utilisateur

parent 95d90107
......@@ -1179,7 +1179,7 @@ elseif ( ($_REQUEST["view"]=="stats") && $_REQUEST["graph"]=="stat_comptoir_jour
($site->user->is_in_group("gestion_ae") || $site->user->id == $user->id ))
{
require_once($topdir . "include/graph.inc.php");
$req = new requete($site->db, "SELECT SUM(montant_facture) as somme, HOUR(TIME(date_facture)) as heure
$req = new requete($site->db, "SELECT SUM(montant_facture/100) as somme, HOUR(TIME(date_facture)) as heure
FROM `cpt_debitfacture` WHERE id_utilisateur = $user->id AND mode_paiement = 'AE' GROUP BY heure");
$datas = array("Consommation" => "Consommation");
while ($row = $req->get_row())
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment