/**
  * Cerrar la caja
  */
 public function CerrarAction()
 {
     if ($this->request["METHOD"] == "POST") {
         if ($this->values['permisos']['A']) {
             $datos = new CajaArqueos($this->request[$this->entity][$this->form->getPrimaryKey()]);
             $datos->cierra();
             $this->values['errores'] = $datos->getErrores();
             $this->values['alertas'] = $datos->getAlertas();
             $this->values['datos'] = $datos;
             return array('template' => $this->entity . '/edit.html.twig', 'values' => $this->values);
         } else {
             return array('template' => '_global/forbiden.html.twig');
         }
     } else {
         return array('template' => $this->entity . '/index.html.twig');
     }
 }