I have below line of code to populate the order details page. For orders enjoying voucher discounts on executing the below line I notice the order, orderentry are modified. Also I notice the order entries discounts are removed thereby entry's discount is lost.
final OrderData orderData = b2bOrderFacade.getOrderDetailsForCode(orderCode);
Whats wrong with the above code? Why order is modified?
Hybris version: 5.3.0.6