EditExchangeRateTolerance

Edit Exchange Rate Tolerance

Minor Business Rule

Object Name: B0000026

Parent DLL: CALLBSFN

Location: Client/Server

Language: C

Functional Description

Purpose

This business function will fetch the current Exchange Rate from the F0010 Table, for company 

'00000'.  It will then call a business function to retrieve Currency Conversion Rate.  The tolerance allowed 

between the override Exchange Rate and Current Exchange Rate will be calculated.  If the override 

Exchange Rate is over or below the tolerance, an error is given.  The override Exchange Rate must be sent 

into this business function as a percentage (e.g.  2% must be sent in as 0.02). 

This function will also return a warning if an exchange rate is keyed in when currency spot rates are 

not allowed.  The correct exchange rate will be returned in the mnExchangeRate parameter.   If the 

currency code from and to go through a triangulation currency for currency conversion, and an exchange 

rate is passed in, a warning will also be set.   An exchange rate of zero will be passed back in the 

mnExchangeRate parameter.   If your application allows the entry of an exchange rate, this function 

should be called in order to edit for spot rates and triangulation, even if your application does not 

necessarily edit for tolerance.


Setup Notes and Prerequisites

Related Functions - B0000033 Get Exchange Rate


Special Logic


Technical Specification

Data Structure

D0000026 - Edit Exchange Rate Tolerance

Parameter NameData ItemData TypeReq/OptI/O/Both
jdTransactionDateTRDJJDEDATENONENONE

The date that an order was entered into the system. This date determines which effective level the system uses for inventory pricing.

mnExchangeRateCRRMATH_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. 

szCurrencyCodeFromCRCDcharNONENONE

A code that identifies the currency of a transaction. 

szCurrencyCodeToCRDCcharNONENONE

A code that identifies the domestic (base) currency of the company on a transaction. 

mnAddressNumberAN8MATH_NUMERICNONENONE

A number that identifies an entry in the Address Book system, such as employee, applicant, participant, customer, supplier, tenant, or 
location.

mnToleranceLimitCRRMATH_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. 

Related Functions

B0000033 Get Exchange Rate

Related Tables

None