public function cerrarMesa ( $mesa_id, $imprimir_ticket = true) {
        
        $this->Mesa->id = $mesa_id;     
        
        if( !$this->Mesa->cerrar_mesa() ) {
            if( !$this->request->is('ajax') ){
                $this->setFlash('Error al cerrar la mesa', 'flash_error');
            }
        }
        if( !$this->request->is('ajax') ){
            $this->redirect( $this->referer() );
        }         
    }