Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LQDN Adminsys
don
Commits
50a7c258
Commit
50a7c258
authored
Jan 10, 2019
by
Okhin
Browse files
Ajout de la colonne parent pour récupérer les contreparties
parent
7737df76
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/controller/admin.php
View file @
50a7c258
...
...
@@ -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;"
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment