ProductPriceDetermineProductPrice Method |
Determines the product price.
Namespace:
Aloe.EnterpriseOne.Model.Crm
Assembly:
Aloe.EnterpriseOne.Model (in Aloe.EnterpriseOne.Model.dll) Version: 20.1.3.5
Syntaxpublic static ProductPrice DetermineProductPrice(
Product product,
Quantity quantity,
MeasurementUnit quantityUnit,
Nullable<DateTime> calendarDate,
Customer customer = null,
Customer shipToCustomer = null,
EnterpriseCompany enterpriseCompany = null,
CompanyLocation enterpriseCompanyLocation = null,
DistributionChannel distributionChannel = null,
PriceList priceList = null,
ProductPrice currentPrice = null
)
Public Shared Function DetermineProductPrice (
product As Product,
quantity As Quantity,
quantityUnit As MeasurementUnit,
calendarDate As Nullable(Of DateTime),
Optional customer As Customer = Nothing,
Optional shipToCustomer As Customer = Nothing,
Optional enterpriseCompany As EnterpriseCompany = Nothing,
Optional enterpriseCompanyLocation As CompanyLocation = Nothing,
Optional distributionChannel As DistributionChannel = Nothing,
Optional priceList As PriceList = Nothing,
Optional currentPrice As ProductPrice = Nothing
) As ProductPrice
public:
static ProductPrice^ DetermineProductPrice(
Product^ product,
Quantity^ quantity,
MeasurementUnit^ quantityUnit,
Nullable<DateTime^>^ calendarDate,
Customer^ customer = nullptr,
Customer^ shipToCustomer = nullptr,
EnterpriseCompany^ enterpriseCompany = nullptr,
CompanyLocation^ enterpriseCompanyLocation = nullptr,
DistributionChannel^ distributionChannel = nullptr,
PriceList^ priceList = nullptr,
ProductPrice^ currentPrice = nullptr
)
static member DetermineProductPrice :
product : Product *
quantity : Quantity *
quantityUnit : MeasurementUnit *
calendarDate : Nullable<DateTime> *
?customer : Customer *
?shipToCustomer : Customer *
?enterpriseCompany : EnterpriseCompany *
?enterpriseCompanyLocation : CompanyLocation *
?distributionChannel : DistributionChannel *
?priceList : PriceList *
?currentPrice : ProductPrice
(* Defaults:
let _customer = defaultArg customer null
let _shipToCustomer = defaultArg shipToCustomer null
let _enterpriseCompany = defaultArg enterpriseCompany null
let _enterpriseCompanyLocation = defaultArg enterpriseCompanyLocation null
let _distributionChannel = defaultArg distributionChannel null
let _priceList = defaultArg priceList null
let _currentPrice = defaultArg currentPrice null
*)
-> ProductPrice
Parameters
- product
- Type: Aloe.EnterpriseOne.Model.General.ProductsProduct
The product. - quantity
- Type: Aloe.EnterpriseOne.ModelQuantity
The quantity. - quantityUnit
- Type: Aloe.EnterpriseOne.Model.GeneralMeasurementUnit
The quantity unit. - calendarDate
- Type: SystemNullableDateTime
The calendar date. - customer (Optional)
- Type: Aloe.EnterpriseOne.Model.CrmCustomer
The customer. - shipToCustomer (Optional)
- Type: Aloe.EnterpriseOne.Model.CrmCustomer
The ship to customer. - 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. - currentPrice (Optional)
- Type: Aloe.EnterpriseOne.Model.CrmProductPrice
The current price is returned by the method if it satisfies the conditions and has the same priority as the determined top price.
Return Value
Type:
ProductPrice
See Also