Click or drag to resize

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
Syntax
public 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
)

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