Skip to Content
Former Member
Feb 10, 2017 at 12:05 PM

Order voucher discounts are removed while fetching the OrderData


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: