public function actualizarnrocajasAction()
 {
     try {
         $SesionUsuarioPlugin = $this->SesionUsuarioPlugin();
         $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);
         //Se establecen los paremetros para realizar el AddItem
         //$usuario_id			= $SesionUsuarioPlugin->getClienteUsuarioId();
         $usuario_id = $SesionUsuarioPlugin->getUsuarioId();
         //$vendedor_usuario_id= $SesionUsuarioPlugin->getVendedorUsuarioId();
         $pedido_cab_id = $json['pedido_cab_id'];
         $pedido_det_sec = $json['pedido_det_sec'];
         $nro_cajas_en_stock = $json['nro_cajas_en_stock'];
         $result = $PedidoBO->actualizarNroCajas($pedido_cab_id, $pedido_det_sec, $nro_cajas_en_stock, $usuario_id);
         $response = new \stdClass();
         $response->respuesta_code = 'OK';
         //Se forza a responder OK, para que pueda ir por el evento finish de la LIBRERIA AJAX
         $response->respuesta_codex = $result['respuesta_code'];
         $response->respuesta_mensaje = $result['respuesta_msg'];
         $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;
     }
 }