public function eliminardetalleAction()
 {
     try {
         $SesionUsuarioPlugin = $this->SesionUsuarioPlugin();
         $EntityManagerPlugin = $this->EntityManagerPlugin();
         $PedidoBO = new PedidoBO();
         $PedidoBO->setEntityManager($EntityManagerPlugin->getEntityManager());
         $SesionUsuarioPlugin->isLoginClienteVendedor();
         $pedido_cab_id = intval($this->params()->fromPost('pedido_cab_id', ''));
         $pedido_det_sec = intval($this->params()->fromPost('pedido_det_sec', ''));
         //Consulta la marcacion para obtener el nombre
         $nro_reg_det = $PedidoBO->eliminarPorPedidoCabIdPorPedidoDetSec($pedido_cab_id, $pedido_det_sec);
         //$nro_reg_det = $PedidoBO->eliminarPorPedidoCabIdPorPedidoDetSec($pedido_cab_id, $pedido_det_sec);
         //En caso de ser CERO los detalles de los registros, la variable de session de PedidoCabIdActual debe de encerarse
         if ($nro_reg_det == 0) {
             $SesionUsuarioPlugin->setClientePedidoCabIdActual(0);
         }
         //end function
         $response = new \stdClass();
         $response->nro_reg_det = $nro_reg_det;
         $response->respuesta_code = 'OK';
         $response->respuesta_mensaje = '';
         $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;
     }
 }