Hi
I need to print an order when orderstate changes. I therefore subscribe to "Ecommerce.Order.State.Changed". From here I print the order. I did that by getting the order using Dynamicweb.Ecommerce.Services.Orders.GetById(OrderId). But doing that orderlines are not organized so discounts are grouped with their parent orderlines. How can I do that?