Optimising return orders with automation