VerifyXchgRateAgainstTolerance

Verify Xchg Rate Against Tolerance

Minor Business Rule

Object Name: B4200110

Parent DLL: CDIST

Location: Client/Server

Language: C

Use this function to verify the override exhange rate against the tolerance limits.  The tolerance 
check prevents an override exchange rate from being greater or lesser than the most current exchange 

rate by a predefined limit.  This tolerance limit is a required input parameter for this function;  in 

Sales Order Entry, it is specified in th eprocessing options.  If the new exchange rate has exceeded the 

tolerance limit, issue a warning message 0681.  

Note:  Prior to calling this function you must call RetrieveCurrencyConversionRate to get the proper 

currency exchange multiplier and divisor. ^

^

Data Structure

D4200110 - Verify Xchg Rate Against Tolerance

Parameter NameData ItemData TypeReq/OptI/O/Both
mnOverrideExchangeRateCRRMATH_NUMERICNONENONE

A number (exchange rate) that a foreign currency amount is multiplied by to calculate a domestic currency amount.  The number in this field 
can have a maximum of seven decimal positions. If more are entered, the system adjusts to the nearest seven decimal positions. 

mnCurrencyConvRateMultCRRMATH_NUMERICNONENONE

A number (exchange rate) that a foreign currency amount is multiplied by to calculate a domestic currency amount.  The number in this field 
can have a maximum of seven decimal positions. If more are entered, the system adjusts to the nearest seven decimal positions. 

mnCurrencyConvRateDivCRRDMATH_NUMERICNONENONE

A number (exchange rate) that a foreign currency amount is divided by to calculate a domestic currency amount. The number you enter in 
this field can have a maximum of seven decimal positions. If more are entered, the system adjusts to the nearest seven decimal positions. 

cCurrencyConversionCRYRcharNONENONE

A code that specifies whether to use multi-currency accounting, and the method of multi-currency accounting to use: Codes are:    N Do not 
use multi-currency accounting. Use if you enter transactions in only one currency for all companies. The multi-currency fields will not appear 
on forms. The system supplies a value of N if you do not enter a value.    Y Activate multi-currency accounting and use multipliers to convert 
currency. The system multiplies the foreign amount by the exchange rate to calculate the domestic amount.    Z Activate multi-currency 
accounting and use divisors to convert currency. The system divides the foreign amount by the exchange rate to calculate the domestic amount.

mnToleranceLimitTFCTMATH_NUMERICNONENONE

When an interim check is entered with a pre-specified NET pay amount and you wish the computer to back calculate what the employee's 
gross pay would be to give that net, the computer must use an iterant process to "zero in" on the amount. To limit the number of iterations the 
program goes through to obtain the "exact" amount, you need to specify a tolerance factor of, say, one dollar. Remember that the smaller the 
tolerance the longer time necessary for the computer to compute the results.

cSuppressErrorMsgEV02charNONENONE

An option that specifies the type of processing for an event.

cErrorCodeERRCcharNONENONE

This error code indicates if any errors occurred during the creation of the Trip Document Detail (F4914) records by the Delivery Document 
Set Server program (XT4914).

Related Functions

None

Related Tables

None