Click or drag to resize

ProductGetRatioOrDefault Method

Gets the conversion ratio for conversion from the specified unit to the specified unit. Returns Zero when the ratio is not available.

Namespace:  Aloe.EnterpriseOne.Model.General.Products
Assembly:  Aloe.EnterpriseOne.Model (in Aloe.EnterpriseOne.Model.dll) Version: 20.1.3.5
Syntax
public ConversionRatio GetRatioOrDefault(
	MeasurementUnit sourceUnit,
	MeasurementUnit destinationUnit
)

Parameters

sourceUnit
Type: Aloe.EnterpriseOne.Model.GeneralMeasurementUnit
From unit.
destinationUnit
Type: Aloe.EnterpriseOne.Model.GeneralMeasurementUnit
To unit.

Return Value

Type: ConversionRatio
The conversion ratio between the specified units.

Implements

IConversionRatioProviderTUnitGetRatioOrDefault(TUnit, TUnit)
See Also