Commit 50a7c258 authored by okhin's avatar okhin 🚴

Ajout de la colonne parent pour récupérer les contreparties

parent 7737df76
......@@ -386,7 +386,6 @@ class Admin extends Controller
$f3->set('counterparts_import', '');
$total = array("hoodie" => 0, "pishirt" => 0, "pibag" => 0, "piplome" => 0);
if ($f3->get('VERB') == 'POST') {
$separator = ';';
// Si on a un POST sur cette page, c'est que l'on a un csv à parser
......@@ -471,6 +470,7 @@ class Admin extends Controller
// Calcul des quantités
$query = "SELECT quoi,
status,
parent,
COUNT(status) AS qte
FROM contreparties
GROUP BY quoi, status;";
......
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