/**
  * Marca el presupuesto y sus lineas como no confirmado (estado 0)
  * NO BORRAR EL ALBARAN QUE SE GENERÓ EN BASE A EL.
  * @return array Template y values
  */
 public function anularAction()
 {
     if ($this->values['permisos']['permisosModulo']['UP']) {
         $datos = new PstoCab($this->request['PstoCab']['IDPsto']);
         $datos->anulaConfirmacion();
         $this->values['errores'] = $datos->getErrores();
         $this->values['alertas'] = $datos->getAlertas();
         unset($datos);
         $this->values['datos'] = new PstoCab($this->request['PstoCab']['IDPsto']);
         return array('template' => $this->entity . '/edit.html.twig', 'values' => $this->values);
     } else {
         return array('template' => '_global/forbiden.html.twig');
     }
 }