EnumConversionFactor

An EnumConversionFactor is the child level of EnumConversionDef and specifies the Factor used to convert a value in its Measure to a value in the parent EnumConversionDef’s BaseUnit. This can optionally be qualified by a Scope to indicate the conversion factor is conditional on certain factors such as the Item or Site we are working within.


Table 5.4. EnumConversionFactor Fields

Field

Description

Measure

String "enum name" of the enumeration whose conversion factor relative to the BaseUnit is being defined. Do not provide the integer "enum value". (KEY field)

Scope

Scope is used to optionally qualify this conversion factor. When null, it means it is the default conversion used. "Standard" units and measures like weight, volume and distance will generally use null for Scope. For non-standard conversions, Scope will contain a generic model link to a model which identifies when the factor should be used. For example, one might specify a scope of Item for a QuantityUOM conversion for converting EACHes to PALLETs, since this varies per Item. (Optional KEY field)

Factor

Multiply a value of 1 in the base measure times factor to produce the equivalent quantity in this measure. For example, if your measure is KILOGRAM and your BaseUnit is GRAM, the factor value should be .001

Table 5.5. Factor Example

EnumerationName

BaseUnit

Measure

Factor

DistanceUOM

METER

KILOMETER

0.001

DistanceUOM

METER

CENTIMETER

100

DistanceUOM

METER

MILLIMETER

1000

DistanceUOM

METER

MILE

0.000621371

Platform by default is not providing any UI to create the EnumConversionDef through UI. Instead provides an PLT.EnumConversionDef_IB inbound interface to upload the data using CSV upload framework.