CalculateProfitPercentage

Calculate Profit Percentage

Minor Business Rule

Object Name: B4200170

Parent DLL: CDIST

Location: Client/Server

Language: C

This Business Function Calculates the Profit Percentage using the following expression
Profit Percentage = 1 - (UNCS / (UPRC / UOM Conversion Factor))

If Profit Percentage calculation had an error due to division by zero it returns zero profit 

percentage.


The parameters for this Business Function are 

UPRC - Unit Price                                                          INPUT

UNCS - Unit Cost                                                           INPUT

CONV - UOM Conversion Factor                               INPUT

XPCT - Profit Percentage                                          OUTPU^

^

Data Structure

D4200170 - Calculate Profit Percentage

Parameter NameData ItemData TypeReq/OptI/O/Both
mnUnitPriceUPRCMATH_NUMERICNONENONE

The list or base price to be charged for one unit of this item. In sales order entry, all prices must be set up in the Item Base Price File table 
(F4106).

mnUnitCostUNCSMATH_NUMERICNONENONE

The amount per unit, derived by dividing the total cost by the unit quantity.

mnUOMConversionFactorCONVMATH_NUMERICNONENONE

The factor that the system uses to convert one unit of measure to another unit of measure.

mnProfitPercentageXPCTMATH_NUMERICNONENONE

.

Related Functions

None

Related Tables

None