
Hey guys,
We have a few accounts that have their headquarters which is the main Bill-To Customer Account to multiple branches. These branches would have different salesperson codes set against them. However, when a new sales order is created for these individual branches, the salesperson code on the sales order defaults to whatever is set against the main bill-to customer account (which is generally blank).
Is there a way to change this behaviour so the sales order defaults to the salesperson code that is set against the actual customer that is placing the order and not the head office?
BC will prioritize whatever data is present in Bill-To over Sell-to. That's a standard behavior.
You can change the behavior by writing some AL code in an Event Subscriber. If you are not into AL development, you may want to hire a AL Developer to get this done for you. Should not take more than a couple of hours to get it done