Hi,
Can anyone please confirm if it's normal an order object having the Parts List in the OrderLines property?
I've executed the following lines in an immediate window and different behavior happens:
Order.GetOrders("select * from ecomorders where orderid = 'RS-ORDER1272'", false)[0].OrderLines;
Count = 5
[0]: {Dynamicweb.eCommerce.Orders.OrderLine}
[1]: {Dynamicweb.eCommerce.Orders.OrderLine}
[2]: {Dynamicweb.eCommerce.Orders.OrderLine}
[3]: {Dynamicweb.eCommerce.Orders.OrderLine}
[4]: {Dynamicweb.eCommerce.Orders.OrderLine}
Order.GetOrderByID("RS-ORDER1272").OrderLines;
Count = 2
[0]: {Dynamicweb.eCommerce.Orders.OrderLine}
[1]: {Dynamicweb.eCommerce.Orders.OrderLine}
I would aspect to have the same result in both methods.
Best,
Rui Silva