LineDiscountDetermineLineDiscount Method |
Determines the discount according to the specified conditions.
Namespace:
Aloe.EnterpriseOne.Model.Crm
Assembly:
Aloe.EnterpriseOne.Model (in Aloe.EnterpriseOne.Model.dll) Version: 20.1.3.5
Syntaxpublic static LineDiscount DetermineLineDiscount(
EnterpriseOneTransaction transaction,
Nullable<DateTime> calendarDate,
IEnumerable<Customer> customers,
Product product,
Quantity quantity,
EnterpriseCompany enterpriseCompany = null,
CompanyLocation enterpriseCompanyLocation = null,
DistributionChannel distributionChannel = null,
PriceList priceList = null,
LineDiscount currentDiscount = null
)
Public Shared Function DetermineLineDiscount (
transaction As EnterpriseOneTransaction,
calendarDate As Nullable(Of DateTime),
customers As IEnumerable(Of Customer),
product As Product,
quantity As Quantity,
Optional enterpriseCompany As EnterpriseCompany = Nothing,
Optional enterpriseCompanyLocation As CompanyLocation = Nothing,
Optional distributionChannel As DistributionChannel = Nothing,
Optional priceList As PriceList = Nothing,
Optional currentDiscount As LineDiscount = Nothing
) As LineDiscount
public:
static LineDiscount^ DetermineLineDiscount(
EnterpriseOneTransaction^ transaction,
Nullable<DateTime^>^ calendarDate,
IEnumerable<Customer^>^ customers,
Product^ product,
Quantity^ quantity,
EnterpriseCompany^ enterpriseCompany = nullptr,
CompanyLocation^ enterpriseCompanyLocation = nullptr,
DistributionChannel^ distributionChannel = nullptr,
PriceList^ priceList = nullptr,
LineDiscount^ currentDiscount = nullptr
)
static member DetermineLineDiscount :
transaction : EnterpriseOneTransaction *
calendarDate : Nullable<DateTime> *
customers : IEnumerable<Customer> *
product : Product *
quantity : Quantity *
?enterpriseCompany : EnterpriseCompany *
?enterpriseCompanyLocation : CompanyLocation *
?distributionChannel : DistributionChannel *
?priceList : PriceList *
?currentDiscount : LineDiscount
(* Defaults:
let _enterpriseCompany = defaultArg enterpriseCompany null
let _enterpriseCompanyLocation = defaultArg enterpriseCompanyLocation null
let _distributionChannel = defaultArg distributionChannel null
let _priceList = defaultArg priceList null
let _currentDiscount = defaultArg currentDiscount null
*)
-> LineDiscount
Parameters
- transaction
- Type: Aloe.EnterpriseOne.Model.CoreEnterpriseOneTransaction
The transaction. - calendarDate
- Type: SystemNullableDateTime
The calendar date. - customers
- Type: System.Collections.GenericIEnumerableCustomer
The customers. - product
- Type: Aloe.EnterpriseOne.Model.General.ProductsProduct
The product. - quantity
- Type: Aloe.EnterpriseOne.ModelQuantity
The quantity. - enterpriseCompany (Optional)
- Type: Aloe.EnterpriseOne.Model.GeneralEnterpriseCompany
The enterprise company. - enterpriseCompanyLocation (Optional)
- Type: Aloe.EnterpriseOne.Model.General.ContactsCompanyLocation
The enterprise company location. - distributionChannel (Optional)
- Type: Aloe.EnterpriseOne.Model.Crm.MarketingDistributionChannel
The distribution channel. - priceList (Optional)
- Type: Aloe.EnterpriseOne.Model.CrmPriceList
The price list. - currentDiscount (Optional)
- Type: Aloe.EnterpriseOne.Model.CrmLineDiscount
The current discount is returned by the method if it satisfies the conditions and has the same priority as the determined top discount.
Return Value
Type:
LineDiscount
See Also