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