Commit 7eed2d714f0aa002397292d9a544211f25dd5127
1 parent
faf2db4e
Exists in
master
#32 Exibir data de entrada e saída das movimentações da matrícula no detalhe do aluno
Showing
1 changed file
with
4 additions
and
4 deletions
Show diff stats
ieducar/modules/Api/Views/AlunoController.php
@@ -398,15 +398,15 @@ class AlunoController extends ApiCoreController | @@ -398,15 +398,15 @@ class AlunoController extends ApiCoreController | ||
398 | } | 398 | } |
399 | 399 | ||
400 | protected function loadTransferenciaDataEntrada($matriculaId) { | 400 | protected function loadTransferenciaDataEntrada($matriculaId) { |
401 | - $sql = "select to_char(data_transferencia, 'DD/MM/YYYY') from | ||
402 | - pmieducar.transferencia_solicitacao where ref_cod_matricula_entrada = $1 and ativo = 1"; | 401 | + $sql = "select to_char(data_cadastro, 'DD/MM/YYYY') from pmieducar.matricula |
402 | + where cod_matricula=$1 and ativo = 1"; | ||
403 | 403 | ||
404 | return Portabilis_Utils_Database::selectField($sql, $matriculaId); | 404 | return Portabilis_Utils_Database::selectField($sql, $matriculaId); |
405 | } | 405 | } |
406 | 406 | ||
407 | protected function loadTransferenciaDataSaida($matriculaId) { | 407 | protected function loadTransferenciaDataSaida($matriculaId) { |
408 | - $sql = "select to_char(data_transferencia, 'DD/MM/YYYY') from | ||
409 | - pmieducar.transferencia_solicitacao where ref_cod_matricula_saida = $1 and ativo = 1"; | 408 | + $sql = "select to_char(data_exclusao, 'DD/MM/YYYY') from pmieducar.matricula |
409 | + where cod_matricula=$1 and ativo = 1 and (aprovado=4 or aprovado=6)"; | ||
410 | 410 | ||
411 | return Portabilis_Utils_Database::selectField($sql, $matriculaId); | 411 | return Portabilis_Utils_Database::selectField($sql, $matriculaId); |
412 | } | 412 | } |