Bukimedia / PrestaSharp

CSharp .Net client library for the PrestaShop API via web service
GNU General Public License v3.0
154 stars 152 forks source link

how search / find product or others, with distinct option? #473

Open soportenetsistemas opened 2 months ago

soportenetsistemas commented 2 months ago

Please consider making a Pull Request if you are capable of doing so.

If your problem is how to implement anything with PrestaSharp or make a question, please, refer to our Slack# group with this request link: https://join.slack.com/t/prestasharp/shared_invite/enQtNTM2OTI1OTg0NzUyLTY4NDdkZDFmY2EwMGE4MTMzZjk5YzZiMTk3MzUwNzUxNTdhMWEwZjFjNDJiZTIyMjI0MDM0NTcwMzIzNGI0Njc

What resource does this apply to?

Address? Carriers? Carts? Categories? ...

Description what you'd like to happen:

A clear description if the feature or behavior you'd like implemented.

Describe alternatives you've considered:

A clear description of any alternative solutions you've considered.

soportenetsistemas commented 2 months ago

if (AñadeElPedidoNumero == -1) { txtUltimoPedido.Text = LastIDPedidoLeido.ToString(); LblPedido.Text = "Último pedido capturado: " + LastIDPedidoLeido.ToString();

 if (LastIDPedidoLeido != 0)
 {
     Dict.Add("id", "[" + (LastIDPedidoLeido + 1) + ",9999999999]"); // DEL ÚLTIMO EN ADELANTE
                                                                     // Dict.Add("id", "[>=" + (LastIDPedidoLeido + 1) + "]"); // DEL ÚLTIMO EN ADELANTE
                                                                     // Dict.Add("id", "[" + (LastIDPedidoLeido + 1) + ",0]"); // DEL ÚLTIMO EN ADELANTE
 }
 Ordenacion = "id_asc";

} else { if (AñadeElPedidoNumero != 0) { Dict.Add("id", AñadeElPedidoNumero.ToString()); }

 if (Estado != 0)
 {

     if (Estado.ToString() == "999")
     {
         //Dict.Add("current_state", "!3");
     }
     else

         Dict.Add("current_state", Estado.ToString());
 }
 Ordenacion = "id_desc";

}