Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Χάρης Παπαδόπουλος
e-epal
Commits
f83fda44
Commit
f83fda44
authored
Jun 18, 2017
by
Νίκος Κατσαούνος
Browse files
bug fixed in Completenesss Report
parent
7ebbce79
Changes
1
Hide whitespace changes
Inline
Side-by-side
drupal/modules/epal/src/Controller/ReportsCreator.php
View file @
f83fda44
...
...
@@ -207,6 +207,8 @@ class ReportsCreator extends ControllerBase {
->condition('eStudent.id', $studentIds, 'NOT IN');
$numNoAllocated = $sCon->countQuery()->execute()->fetchField();
*/
$sCon
=
$this
->
connection
->
select
(
'epal_student'
,
'epalStudent'
);
$sCon
->
leftJoin
(
'epal_student_class'
,
'eStudent'
,
'eStudent.student_id = epalStudent.id'
);
$sCon
->
fields
(
'eStudent'
,
array
(
'student_id'
))
...
...
@@ -363,8 +365,8 @@ class ReportsCreator extends ControllerBase {
$sCon
=
$this
->
connection
->
select
(
'epal_student_class'
,
'eStudent'
)
->
fields
(
'eStudent'
,
array
(
'id'
,
'epal_id'
,
'currentclass'
))
->
condition
(
'eStudent.epal_id'
,
$epalSchool
->
id
,
'='
)
->
condition
(
'eStudent.currentclass'
,
$classId
,
'='
)
->
condition
(
'eStudent.finalized'
,
1
,
'='
);
->
condition
(
'eStudent.currentclass'
,
$classId
,
'='
)
;
//
->condition('eStudent.finalized', 1 , '=');
array_push
(
$num
,
$sCon
->
countQuery
()
->
execute
()
->
fetchField
()
);
//βρες ποσοστά συμπλήρωσης
array_push
(
$perc
,
number_format
(
$num
[
$classId
-
1
]
/
$capacity
[
$classId
-
1
]
*
100
,
2
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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