Commit 8add19a01e8c49c34b9453aceabd342f8ae445b7
1 parent
72536133
Exists in
master
#25 Não listar alunos excluídos e em abandono no lançamento de notas, e não list…
…ando alunos excluídos do DynamicInput de Matrículas
Showing
3 changed files
with
3 additions
and
3 deletions
Show diff stats
ieducar/intranet/include/pmieducar/clsPmieducarMatricula.inc.php
| ... | ... | @@ -570,7 +570,7 @@ class clsPmieducarMatricula |
| 570 | 570 | $sql = "SELECT {$this->_campos_lista}, c.ref_cod_instituicao, p.nome, a.cod_aluno, a.ref_idpes, c.cod_curso, m.observacao FROM {$this->_tabela} m, {$this->_schema}curso c, {$this->_schema}aluno a, cadastro.pessoa p "; |
| 571 | 571 | |
| 572 | 572 | $whereAnd = " AND "; |
| 573 | - $filtros = " WHERE m.ref_cod_aluno = a.cod_aluno AND m.ref_cod_curso = c.cod_curso AND p.idpes = a.ref_idpes "; | |
| 573 | + $filtros = " WHERE m.ref_cod_aluno = a.cod_aluno AND a.ativo = 1 AND m.ref_cod_curso = c.cod_curso AND p.idpes = a.ref_idpes "; | |
| 574 | 574 | |
| 575 | 575 | if (is_numeric($int_cod_matricula)) { |
| 576 | 576 | $filtros .= "{$whereAnd} m.cod_matricula = '{$int_cod_matricula}'"; | ... | ... |
ieducar/intranet/include/pmieducar/clsPmieducarMatriculaTurma.inc.php
| ... | ... | @@ -367,7 +367,7 @@ class clsPmieducarMatriculaTurma |
| 367 | 367 | ) as nome_aluno"; |
| 368 | 368 | $tab_aluno = ", {$this->_schema}aluno a"; |
| 369 | 369 | |
| 370 | - $where_nm_aluno = " AND a.cod_aluno = m.ref_cod_aluno "; | |
| 370 | + $where_nm_aluno = " AND a.cod_aluno = m.ref_cod_aluno AND a.ativo=1"; | |
| 371 | 371 | } |
| 372 | 372 | |
| 373 | 373 | if ( $bool_escola_andamento) { | ... | ... |
ieducar/modules/Avaliacao/Views/DiarioApiController.php