Commit a8bb7467 authored by Feu's avatar Feu
Browse files

soyons plus light

parent 70e4b3a3
...@@ -258,7 +258,7 @@ $req1 = new requete($site->db, ...@@ -258,7 +258,7 @@ $req1 = new requete($site->db,
"INNER JOIN `cpt_debitfacture` ON ". "INNER JOIN `cpt_debitfacture` ON ".
"`cpt_debitfacture`.`id_facture` =`cpt_vendu`.`id_facture` " . "`cpt_debitfacture`.`id_facture` =`cpt_vendu`.`id_facture` " .
"WHERE mode_paiement = 'SG' " . "WHERE mode_paiement = 'SG' " .
"AND `cpt_comptoir`.`id_comptoir` = '3' ". "AND `cpt_debitfacture`.`id_comptoir` = '3' ".
"AND `utilisateurs`.`id_utilisateur` = '".mysql_real_escape_string($user->id) ."' ". "AND `utilisateurs`.`id_utilisateur` = '".mysql_real_escape_string($user->id) ."' ".
"GROUP BY `cpt_debitfacture`.`id_facture` ". "GROUP BY `cpt_debitfacture`.`id_facture` ".
"ORDER BY `cpt_debitfacture`.`date_facture` DESC"); "ORDER BY `cpt_debitfacture`.`date_facture` DESC");
...@@ -274,8 +274,8 @@ $req2 = new requete($site->db, ...@@ -274,8 +274,8 @@ $req2 = new requete($site->db,
"INNER JOIN `cpt_debitfacture` ON ". "INNER JOIN `cpt_debitfacture` ON ".
"`cpt_debitfacture`.`id_facture` =`cpt_vendu`.`id_facture` " . "`cpt_debitfacture`.`id_facture` =`cpt_vendu`.`id_facture` " .
"WHERE mode_paiement = 'AE' " . "WHERE mode_paiement = 'AE' " .
"AND `cpt_comptoir`.`id_comptoir` = '3' ". "AND `cpt_debitfacture`.`id_comptoir` = '3' ".
"AND `utilisateurs`.`id_utilisateur` = '".mysql_real_escape_string($user->id) ."' ". "AND `cpt_debitfacture`.`id_utilisateur_client` = '".mysql_real_escape_string($user->id) ."' ".
"GROUP BY `cpt_debitfacture`.`id_facture` ". "GROUP BY `cpt_debitfacture`.`id_facture` ".
"ORDER BY `cpt_debitfacture`.`date_facture` DESC"); "ORDER BY `cpt_debitfacture`.`date_facture` DESC");
......
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