@ltussing03 , you just need to replace the LocationActive attribute for the SOOrder.customerLocationID field with the signature allowing joins and add the columnd using the additional PXCustomizeSelectorColumns attribute.
Original attribute:
[LocationActive(typeof(Where<Location.bAccountID, Equal<Current<SOOrder.customerID>>,
And<MatchWithBranch<Location.cBranchID>>>), DescriptionField = typeof(Location.descr), Visibility = PXUIVisibility.SelectorVisible)]
Needed attributes:
[LocationActive(typeof(Where<Location.bAccountID, Equal<Current<SOOrder.customerID>>,
And<MatchWithBranch<Location.cBranchID>>>),
typeof(InnerJoin<Address, On<Address.addressID, Equal<Location.defAddressID>>>), DescriptionField = typeof(Location.descr), Visibility = PXUIVisibility.SelectorVisible)]
[PXCustomizeSelectorColumns(typeof(Address.addressLine1), typeof(Address.city))] //here, you can specify the needed list of fields to display in the selector
In partucular, you need to create an Extension of SOOrder and do this replacement through the _CacheAttached event:
public class SOOrderEntryCommunity7713 : PXGraphExtension<SOOrderEntry>
{
[PXMergeAttributes(Method = MergeMethod.Merge)]
[PXRemoveBaseAttribute(typeof(LocationActiveAttribute))]
[LocationActive(typeof(Where<Location.bAccountID, Equal<Current<SOOrder.customerID>>,
And<MatchWithBranch<Location.cBranchID>>>),
typeof(InnerJoin<Address, On<Address.addressID, Equal<Location.defAddressID>>>), DescriptionField = typeof(Location.descr), Visibility = PXUIVisibility.SelectorVisible)]
[PXCustomizeSelectorColumns(typeof(Address.addressLine1), typeof(Address.city))] //
protected virtual void SOOrder_CustomerLocationID_CacheAttached(PXCache sender)
{
}
}