public function consultarnroitemspedidocomprandoAction()
 {
     try {
         $SesionUsuarioPlugin = $this->SesionUsuarioPlugin();
         if ($SesionUsuarioPlugin->isPerfil(\Application\Constants\Perfil::ID_DISPO) == true) {
             $response = new \stdClass();
             $response->nro_items_comprando = 0;
             $response->respuesta_code = 'OK';
             $response->respuesta_mensaje = '';
             $json = new JsonModel(get_object_vars($response));
             return $json;
         }
         //end if
         $SesionUsuarioPlugin->isLoginClienteVendedor();
         //Controla el inicio de sesion
         $EntityManagerPlugin = $this->EntityManagerPlugin();
         $PedidoBO = new PedidoBO();
         $PedidoBO->setEntityManager($EntityManagerPlugin->getEntityManager());
         $body = $this->getRequest()->getContent();
         $json = json_decode($body, true);
         $pedido_cab_id = $SesionUsuarioPlugin->getClientePedidoCabIdActual();
         //Se invoca la llamada
         $nro_items = $PedidoBO->consultarNroItemsPorPedido($pedido_cab_id, \Application\Constants\Pedido::ESTADO_COMPRANDO);
         $response = new \stdClass();
         $response->nro_items_comprando = $nro_items;
         $response->respuesta_code = 'OK';
         $response->respuesta_mensaje = '';
         $json = new JsonModel(get_object_vars($response));
         return $json;
     } catch (\Exception $e) {
         $excepcion_msg = utf8_encode($this->ExcepcionPlugin()->getMessageFormat($e));
         $response = $this->getResponse();
         $response->setStatusCode(500);
         $response->setContent($excepcion_msg);
         return $response;
     }
 }