Hi,
Usually, you have the screnario where "Company X" sells to n numbers of customers. When loading a customers orders, you do:
_orderRepository.Load<IPurchaseOrder>(customerId);
However, in our solution, we need to support n numbers of suppliers selling to n numbers of customers. One order can contain articles from different suppliers. Loading the customers orders we can do as above, however, I'm not sure what strategy to take to load the all orders related to a supplier.
Currently, a reference to the supplier is stored on the line item in commerce.
Does anyone have any input, tips or trix in regards to a good solution to extract orders related to one specific supplier? I came across the "OrderSearchOptions", would that be a good option?
Thanks!
/Jessica