Click or drag to resize

SalesPersonDetermineSalesPerson Method

Determines the sales person. If the login user is a sales person the sales person for the login user is returned. Otherwise the first not null sales person from the customers list is returned.

Namespace:  Aloe.EnterpriseOne.Model.Crm
Assembly:  Aloe.EnterpriseOne.Model (in Aloe.EnterpriseOne.Model.dll) Version: 20.1.3.5
Syntax
public static SalesPerson DetermineSalesPerson(
	EnterpriseOneTransaction transaction,
	EnterpriseCompany enterpriseCompany,
	params Customer[] customers
)

Parameters

transaction
Type: Aloe.EnterpriseOne.Model.CoreEnterpriseOneTransaction
The transaction.
enterpriseCompany
Type: Aloe.EnterpriseOne.Model.GeneralEnterpriseCompany
The enterprise company.
customers
Type: Aloe.EnterpriseOne.Model.CrmCustomer
The customers. The customers are checked for not null SalesPerson and the last not null SalesPerson is returned.

Return Value

Type: SalesPerson
See Also