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
Syntaxpublic static SalesPerson DetermineSalesPerson(
EnterpriseOneTransaction transaction,
EnterpriseCompany enterpriseCompany,
params Customer[] customers
)
Public Shared Function DetermineSalesPerson (
transaction As EnterpriseOneTransaction,
enterpriseCompany As EnterpriseCompany,
ParamArray customers As Customer()
) As SalesPerson
public:
static SalesPerson^ DetermineSalesPerson(
EnterpriseOneTransaction^ transaction,
EnterpriseCompany^ enterpriseCompany,
... array<Customer^>^ customers
)
static member DetermineSalesPerson :
transaction : EnterpriseOneTransaction *
enterpriseCompany : EnterpriseCompany *
customers : Customer[] -> SalesPerson
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