public function listadoclientedetallehtmlAction()
 {
     try {
         $viewModel = new ViewModel();
         $EntityManagerPlugin = $this->EntityManagerPlugin();
         $SesionUsuarioPlugin = $this->SesionUsuarioPlugin();
         $SesionUsuarioPlugin->isLoginClienteVendedor();
         $cliente_id = $SesionUsuarioPlugin->getUserClienteId();
         $config = $this->getServiceLocator()->get('Config');
         $PedidoBO = new PedidoBO();
         $PedidoBO->setEntityManager($EntityManagerPlugin->getEntityManager());
         $body = $this->getRequest()->getContent();
         $json = json_decode($body, true);
         $condiciones = array('pedido_cab_id' => $json['pedido_cab_id'], 'cliente_id' => $cliente_id);
         //Se pasa el ID del Cliente para evitar que se consulte registro de pedidos no autorizados (hacking)
         $result = $PedidoBO->consultarPedidoDetalle($condiciones);
         $viewModel->result = $result;
         $viewModel->setTemplate('dispo/pedido/pedido_listado_cliente_detalle.phtml');
         $viewModel->setTerminal(true);
         $viewRender = $this->getServiceLocator()->get('ViewRenderer');
         $html = $viewRender->render($viewModel);
         $response = new \stdClass();
         $response->respuesta_code = 'OK';
         $response->respuesta_codex = 'OK';
         //$result['respuesta'];
         $response->respuesta_mensaje = '';
         $response->html = $html;
         $json = new JsonModel(get_object_vars($response));
         return $json;
         //false
     } catch (\Exception $e) {
         $excepcion_msg = utf8_encode($this->ExcepcionPlugin()->getMessageFormat($e));
         $response = $this->getResponse();
         $response->setStatusCode(500);
         $response->setContent($excepcion_msg);
         return $response;
     }
 }