Skip to content

Get All Orders Sometimes Does Not Include the First Or Last Order of A List #796

@Secdv

Description

@Secdv
 // Fetch all orders
Dictionary<string, string> parameters = new Dictionary<string, string>
{                 
    { "status", "processing" }
};

List<Order> orders = await wc.Order.GetAll(parameters);

I have noticed that when I call the GetAll() function, it excludes the latest order or even the first order sometimes.

Example:

Order 1 | Processing
Order 2 | Processing
Order 3 | Processing
Order 4 | Processing

The function returns Order 1, Order 2, and Order 3, excluding order 4.

Also vice versa, sometimes it returns Order 2, and Order 3, and Order 4, excluding order 1.

Have anyone else experienced this issue? Is there a way to prevent this from happening? I also noticed when I added the parameter "order", "asc", that was causing issue with excluding the last order as well.

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions