Commit f1d66304 authored by mbriand's avatar mbriand
Browse files

on dégage les comptes soldés du top10

parent 15780ff4
......@@ -45,8 +45,8 @@ if (date("m-d") < "02-15")
{
$date1 = date("Y") . "-02-15";
$date2 = date("Y") . "-08-15";
$date3 = date("Y") + 2 . "-08-15";
$date4 = date("Y") + 3 . "-08-15";
$date3 = date("Y") + 1 . "-08-15";
$date4 = date("Y") + 2 . "-08-15";
}
else
{
......
......@@ -540,8 +540,9 @@ elseif ( ($site->user->is_in_group ("gestion_ae") || $site->user->is_asso_role (
"FROM cpt_vendu " .
"INNER JOIN cpt_debitfacture ON cpt_debitfacture.id_facture=cpt_vendu.id_facture " .
"INNER JOIN utilisateurs ON cpt_debitfacture.id_utilisateur_client=utilisateurs.id_utilisateur " .
"LEFT JOIN `utl_etu_utbm` ON `utl_etu_utbm`.`id_utilisateur`=`utilisateurs`.`id_utilisateur` ".
"LEFT JOIN `utl_etu_utbm` ON `utl_etu_utbm`.`id_utilisateur`=`utilisateurs`.`id_utilisateur` " .
"WHERE cpt_debitfacture.mode_paiement='AE' AND date_facture > '$debut_semestre' " .
"AND id_produit !=338 " .
"GROUP BY utilisateurs.id_utilisateur " .
"ORDER BY total DESC LIMIT 100");
......
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