GET

UoMConversion

Define formula for convert from a unit to another

Allow to calculate this by length/width/height and density

 

 

Property

Description

Table

BEAS_ME_UMR

Primary key

FromUoMId/c,ToUoMId/c

$transaction

no

$branch

no

$mask

no

 

Fields

Name

Type

Description

FromUoMId

Edm.String(20)

Database: rtrim("BEAS_ME_UMR"."ME1_ID")

ToUoMId

Edm.String(20)

Database: rtrim("BEAS_ME_UMR"."ME2_ID")

Formula

Edm.String(20)

Define the formula

Example: length x width x height / 1000000

calculate pcs to qm�, based on length, width and height

Database: "BEAS_ME_UMR"."UMRFORMEL"

 

Functions

Function

Parameter

Description

Conversion

FromUnitId/c,ToUnitId/C,Length/i,Width/i,Height/i,Density/i,UnitGroupId/i

Return object with factor based on quantity 1

return object with follow properties

factor

formula

quantity (based on source quantity=1)

code (200=ok)

QtyConversion

FromUnitId/c,ToUnitId/C,Length/i,Width/i,Height/i,Density/i,UnitGroupId/i,Quantity/i

Convert Quantity from first UoM to Quantity in second UoM

return object with follow properties

factor

formula

quantity

code (200=ok)

ItemConversion

ItemCode/c,FromUnitId/c,ToUnitId/C