Skip to main content
Question

How to have Customer code – Customer name – Customer class on Selection in CustomerID Selector

  • June 2, 2025
  • 0 replies
  • 58 views

Forum|alt.badge.img+2

Hi, is it possible to have customer class appended to the end of the search in the selector so the description field has all 3 elements in the Sales Order screen? 

This is the original attributes of the field in the sales order screen.

[PXDefault]
[Customer(
typeof(Search<BAccountR.bAccountID, Where<True, Equal<True>>>), // TODO: remove fake Where after AC-101187
Visibility = PXUIVisibility.SelectorVisible,
DescriptionField = typeof(Customer.acctName),
Filterable = true)]
[CustomerOrOrganizationInNoUpdateDocRestrictor]
[PXRestrictor(typeof(Where<Optional<SOOrder.isTransferOrder>, Equal<True>,
Or<Customer.status, IsNull,
Or<Customer.status, Equal<CustomerStatus.active>,
Or<Customer.status, Equal<CustomerStatus.oneTime>,
Or<Customer.status, Equal<CustomerStatus.creditHold>>>>>>),
AR.Messages.CustomerIsInStatus,
typeof(Customer.status))]
[PXForeignReference(typeof(Field<SOOrder.customerID>.IsRelatedTo<BAccount.bAccountID>))]

Any help would be appreciated, thank you!