ProductGetUnitPrice Method |
Gets the unit price of the product in the specified measurement unit and currency.
Namespace:
Aloe.EnterpriseOne.Model.General.Products
Assembly:
Aloe.EnterpriseOne.Model (in Aloe.EnterpriseOne.Model.dll) Version: 20.1.3.5
Syntaxpublic Amount GetUnitPrice(
Amount price,
Quantity priceQuantity,
MeasurementUnit unit,
Currency currency,
IConversionRatioProvider<Currency> ratioProvider
)
Public Function GetUnitPrice (
price As Amount,
priceQuantity As Quantity,
unit As MeasurementUnit,
currency As Currency,
ratioProvider As IConversionRatioProvider(Of Currency)
) As Amount
public:
Amount^ GetUnitPrice(
Amount^ price,
Quantity^ priceQuantity,
MeasurementUnit^ unit,
Currency^ currency,
IConversionRatioProvider<Currency^>^ ratioProvider
)
member GetUnitPrice :
price : Amount *
priceQuantity : Quantity *
unit : MeasurementUnit *
currency : Currency *
ratioProvider : IConversionRatioProvider<Currency> -> Amount
Parameters
- price
- Type: Aloe.EnterpriseOne.ModelAmount
The price from the price list. - priceQuantity
- Type: Aloe.EnterpriseOne.ModelQuantity
The quantity for which the price is specified in the price list. - unit
- Type: Aloe.EnterpriseOne.Model.GeneralMeasurementUnit
The desired unit for which to return the unit price. - currency
- Type: Aloe.EnterpriseOne.Model.GeneralCurrency
The desired currency for which to return the unit price. - ratioProvider
- Type: Aloe.EnterpriseOne.Model.Core.MetricsIConversionRatioProviderCurrency
The currency ratio provider to use for currency conversions.
Usually it's a currency directory.
Return Value
Type:
AmountThe unit price of the product, for the specified unit and currency.
See Also