ConvertDomesticAndForeignAmount

Convert Domestic And Foreign Amount

Minor Business Rule

Object Name: B4200080

Parent DLL: CDIST

Location: Client/Server

Language: C

To convert an amount field i.e. DomesticAmount or ForeignAmount from Domestic to Foreign or from 
Foreign to Domestic.

                 DomesticAmount    input/output

                  ForeignAmount       input/output

                  CurrencyConversionRate

                  CurrencyConversionMode  - allowable values are   D or F

                  CurrencyConversionCode  - allowable values N, Y, or  Z

Data Structure

D4200080 - Convert Domestic And Foreign Amount

Parameter NameData ItemData TypeReq/OptI/O/Both
mnDomesticAmountAAMATH_NUMERICNONENONE

A number that identifies the amount that the system will add to the account balance of the associated account number.  Enter credits with a 
minus sign (-) either before or after the amount. 

mnForeignAmountAA1MATH_NUMERICNONENONE

A number that identifies the actual amount.

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

cCurrencyModeCRRMcharNONENONE

An option that specifies whether the system displays amounts in the domestic or foreign currency. On  The system displays amounts in the 
foreign currency of the transaction. Off  The system displays amounts in the domestic currency of the transaction.

cCurrencyConversionCodeCRYRcharNONENONE

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.

Related Functions

None

Related Tables

None