MAC-PAC Homecontact ussupport login 
Documentation > MAC-PAC Technical Library > Distribution > Order Processing > Programs > Unit of Measure Conversion - Purpose > Unit of Measure Conversion - Calculations

Unit of Measure Conversion - Calculations

Unit of Measure Conversion

1.   The From Unit of Measure is compared against a Unit of Measure Array containing the Stockkeeping Unit of Measure (SKU) and the Selling, Purchasing, and Price Units of Measure.  A related array contains the conversion factors (numerator and denominator) for converting a given unit of measure to SKU.

2.   If the From Unit of Measure equals the SKU, the To Unit of Measure is compared against the Unit of Measure Array.

a.   If the To Unit of Measure equals the SKU, the Conversion Factor is set to 1.

b.   If the To Unit of Measure does not equal the SKU, the Conversion Factor is the result of the To Unit of Measure denominator divided by the numerator.

c.   If the To Unit of Measure is not found on the Unit of Measure Array, the Conversion Factor is set to 1.

3.   If the From Unit of Measure does not equal the SKU, the From Unit of Measure numerator is divided by the denominator and the saved.

a.   If the To Unit of Measure equals the SKU, the Conversion Factor is set to the save value from step 3.

b.   If the To Unit of Measure does not equal the SKU, the To Unit of Measure denominator is divided by the numerator.  The Conversion Factor is then calculated by multiplying this result by the saved value from step 3.

c.   If the From Unit of Measure is not found on the Unit of Measure Array, the Conversion Factor is not to 1.

Unit of Measure Conversion Program Menu