Commit 87674752 authored by didonet's avatar didonet

Prevents from showing Canceled or Bloqued transcript states into the

alerts list.
parent 880e7128
...@@ -227,6 +227,7 @@ public class Configuration { ...@@ -227,6 +227,7 @@ public class Configuration {
return entityManager().createNativeQuery( return entityManager().createNativeQuery(
"select * from transcript t, section_pos s, registration r, person p, course c, person p2 where (t.concept IS NULL or t.concept = 'Nulo') " + "select * from transcript t, section_pos s, registration r, person p, course c, person p2 where (t.concept IS NULL or t.concept = 'Nulo') " +
" and p2.id = s.professor and t.transcript_section = s.id and s.section_year = "+year+" and s.period = "+period+ " and p2.id = s.professor and t.transcript_section = s.id and s.section_year = "+year+" and s.period = "+period+
" and (t.situation is null or t.situation = '"+SituationTranscript.Nulo+"' or t.situation = '"+SituationTranscript.Pendente+"' )"+
" and t.student = r.id and r.student = p.id and s.course = c.id order by c.code", Transcript.class).getResultList(); " and t.student = r.id and r.student = p.id and s.course = c.id order by c.code", Transcript.class).getResultList();
} }
......
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