I wanted to know how the delivery address on sales order is getting populated when we select any customer.As per my understanding it should take primary address from customer card but behaviour is something different.i observed below scenarios in ax 2012 R3
1. When we create any new customer using existing name and created two address for that customer.one which is set as primary is of purpose delivery.other address is of business,delivery.In this case instead of taking primary address it is taking another address
2.When we create any new customer by creating new name and created two address for that customer.one which is set as primary is of purpose delivery.other address is of business,delivery.In this case it is taking primary address.