Commit 258f8491146450d6e1a594068881f704fbe5755d

Authored by Wilmer
1 parent 2d344ea764
Exists in master

añade validación cuando un docente llega al máximo escalafón

Showing 1 changed file with 3 additions and 2 deletions   Show diff stats
src/AppBundle/Controller/AppController.php
... ... @@ -107,9 +107,10 @@ class AppController extends Controller {
107 107 array('id' => 'DESC')
108 108 );
109 109  
110   - $tiempoTranscurrido = -1;
  110 + $tiempoTranscurrido = 0;
111 111 $suffix = "";
112   - if ($escalafon){
  112 +
  113 + if ($escalafon->getidEscala()->getId() != 5){
113 114 $escalafones = $this->getDoctrine()->getRepository("AppBundle:Escalafones")->findOneById($escalafon->getIdEscala()->getId() + 1); //tiempo para el proximo escalafon
114 115 if($escalafones){
115 116 //tiempo para el prox escalafon
... ...