Table "Currency Exchange Rate"
ID 330
Namespace: Microsoft.Finance.Currency
Properties
Fields
| Name |
Type |
Description |
| "Currency Code" |
Code[10]
|
Specifies the code of the currency on this line.
|
| "Starting Date" |
Date
|
Specifies the date on which the exchange rate on this line comes into effect.
|
| "Exchange Rate Amount" |
Decimal
|
Specifies the amounts that are used to calculate exchange rates for the currency on this line.
|
| "Adjustment Exch. Rate Amount" |
Decimal
|
Specifies the amounts that are used to calculate exchange rates that will be used by the Adjust Exchange Rates batch job.
|
| "Relational Currency Code" |
Code[10]
|
Specifies how you want to set up the two currencies, one of the currencies can be LCY, for which you want to register exchange rates.
|
| "Relational Exch. Rate Amount" |
Decimal
|
Specifies the amounts that are used to calculate exchange rates for the foreign currency on this line.
|
| "Fix Exchange Rate Amount" |
Enum Microsoft.Finance.Currency."Fix Exch. Rate Amount Type"
|
Specifies if the currency's exchange rate can be changed on invoices and journal lines.
|
| "Relational Adjmt Exch Rate Amt" |
Decimal
|
Specifies the amounts that are used to calculate exchange rates that will be used by the Adjust Exchange Rates batch job.
|
| SystemId |
Guid
|
|
| SystemCreatedAt |
DateTime
|
|
| SystemCreatedBy |
Guid
|
|
| SystemModifiedAt |
DateTime
|
|
| SystemModifiedBy |
Guid
|
|
| SystemCreatedByUserName |
Text[50]
|
|
| SystemCreatedByFullName |
Text[80]
|
|
| SystemModifiedByUserName |
Text[50]
|
|
| SystemModifiedByFullName |
Text[80]
|
|
| SystemRowVersion |
BigInteger
|
|
Methods
ExchangeAmtLCYToFCY
procedure ExchangeAmtLCYToFCY(Date: Date; CurrencyCode: Code[10]; Amount: Decimal; Factor: Decimal): Decimal
Parameters
| Name |
Type |
Description |
|
Date
|
Date |
|
|
CurrencyCode
|
Code[10] |
|
|
Amount
|
Decimal |
|
|
Factor
|
Decimal |
|
Returns
ExchangeAmtFCYToLCY
procedure ExchangeAmtFCYToLCY(Date: Date; CurrencyCode: Code[10]; Amount: Decimal; Factor: Decimal): Decimal
Parameters
| Name |
Type |
Description |
|
Date
|
Date |
|
|
CurrencyCode
|
Code[10] |
|
|
Amount
|
Decimal |
|
|
Factor
|
Decimal |
|
Returns
ExchangeRate
procedure ExchangeRate(Date: Date; CurrencyCode: Code[10]): Decimal
Parameters
| Name |
Type |
Description |
|
Date
|
Date |
|
|
CurrencyCode
|
Code[10] |
|
Returns
ExchangeAmtLCYToFCYOnlyFactor
procedure ExchangeAmtLCYToFCYOnlyFactor(Amount: Decimal; Factor: Decimal): Decimal
Parameters
| Name |
Type |
Description |
|
Amount
|
Decimal |
|
|
Factor
|
Decimal |
|
Returns
ExchangeAmtFCYToLCYAdjmt
procedure ExchangeAmtFCYToLCYAdjmt(Date: Date; CurrencyCode: Code[10]; Amount: Decimal; Factor: Decimal): Decimal
Parameters
| Name |
Type |
Description |
|
Date
|
Date |
|
|
CurrencyCode
|
Code[10] |
|
|
Amount
|
Decimal |
|
|
Factor
|
Decimal |
|
Returns
ExchangeRateAdjmt
procedure ExchangeRateAdjmt(Date: Date; CurrencyCode: Code[10]): Decimal
Parameters
| Name |
Type |
Description |
|
Date
|
Date |
|
|
CurrencyCode
|
Code[10] |
|
Returns
ExchangeAmount
procedure ExchangeAmount(Amount: Decimal; FromCurrencyCode: Code[10]; ToCurrencyCode: Code[10]; UsePostingDate: Date): Decimal
Parameters
| Name |
Type |
Description |
|
Amount
|
Decimal |
|
|
FromCurrencyCode
|
Code[10] |
|
|
ToCurrencyCode
|
Code[10] |
|
|
UsePostingDate
|
Date |
|
Returns
FindCurrency
procedure FindCurrency(Date: Date; CurrencyCode: Code[10]; CacheNo: Integer)
Parameters
| Name |
Type |
Description |
|
Date
|
Date |
|
|
CurrencyCode
|
Code[10] |
|
|
CacheNo
|
Integer |
|
ExchangeAmtFCYToFCY
procedure ExchangeAmtFCYToFCY(Date: Date; FromCurrencyCode: Code[10]; ToCurrencyCode: Code[10]; Amount: Decimal): Decimal
Parameters
| Name |
Type |
Description |
|
Date
|
Date |
|
|
FromCurrencyCode
|
Code[10] |
|
|
ToCurrencyCode
|
Code[10] |
|
|
Amount
|
Decimal |
|
Returns
ApplnExchangeAmtFCYToFCY
procedure ApplnExchangeAmtFCYToFCY(Date: Date; FromCurrencyCode: Code[10]; ToCurrencyCode: Code[10]; Amount: Decimal; var ExchRateFound: Boolean): Decimal
Parameters
| Name |
Type |
Description |
|
Date
|
Date |
|
|
FromCurrencyCode
|
Code[10] |
|
|
ToCurrencyCode
|
Code[10] |
|
|
Amount
|
Decimal |
|
|
ExchRateFound
|
Boolean |
|
Returns
GetCurrentCurrencyFactor
procedure GetCurrentCurrencyFactor(CurrencyCode: Code[10]): Decimal
Parameters
| Name |
Type |
Description |
|
CurrencyCode
|
Code[10] |
|
Returns
GetLastestExchangeRate
procedure GetLastestExchangeRate(CurrencyCode: Code[10]; var Date: Date; var Amt: Decimal)
Parameters
| Name |
Type |
Description |
|
CurrencyCode
|
Code[10] |
|
|
Date
|
Date |
|
|
Amt
|
Decimal |
|
CurrencyExchangeRateExist
procedure CurrencyExchangeRateExist(CurrencyCode: Code[10]; Date: Date): Boolean
Parameters
| Name |
Type |
Description |
|
CurrencyCode
|
Code[10] |
|
|
Date
|
Date |
|
Returns
SetCurrentCurrencyFactor
procedure SetCurrentCurrencyFactor(CurrencyCode: Code[10]; CurrencyFactor: Decimal)
Parameters
| Name |
Type |
Description |
|
CurrencyCode
|
Code[10] |
|
|
CurrencyFactor
|
Decimal |
|
Events
OnAfterFindCurrency
[IntegrationEvent(False,False)]
local procedure OnAfterFindCurrency(var CurrencyExchangeRate: Record "Currency Exchange Rate"; var CurrencyExchangeRateArray: array[2] of Record "Currency Exchange Rate"; Date: Date; CurrencyCode: Code[10]; CacheNo: Integer)
Parameters
OnExchangeAmtFCYToLCYOnAfterSetRelationalExchRateAmount
[IntegrationEvent(False,False)]
local procedure OnExchangeAmtFCYToLCYOnAfterSetRelationalExchRateAmount(var CurrencyExchangeRate: Record "Currency Exchange Rate")
Parameters
OnFindCurrencyOnAfterCalcShouldUseCache
[IntegrationEvent(False,False)]
local procedure OnFindCurrencyOnAfterCalcShouldUseCache(var CurrencyExchangeRate: Record "Currency Exchange Rate"; CacheNo: Integer; var ShouldUseCache: Boolean)
Parameters
OnFindCurrencyOnAfterCurrencyExchRate2SetFilters
[IntegrationEvent(False,False)]
local procedure OnFindCurrencyOnAfterCurrencyExchRate2SetFilters(var CurrencyExchRate2: Record "Currency Exchange Rate"; CurrencyCode: Code[10]; Date: Date; var CurrencyExchangeRate: Record "Currency Exchange Rate")
Parameters
OnExchangeRateOnAfterSetRelationalExchRateAmount
[IntegrationEvent(False,False)]
local procedure OnExchangeRateOnAfterSetRelationalExchRateAmount(var CurrencyExchangeRate: Record "Currency Exchange Rate")
Parameters
OnFindCurrency2OnAfterCurrencyExchRate3SetFilters
[IntegrationEvent(False,False)]
local procedure OnFindCurrency2OnAfterCurrencyExchRate3SetFilters(var CurrencyExchRate3: Record "Currency Exchange Rate"; CurrencyCode: Code[10]; Date: Date; var CurrencyExchangeRate: Record "Currency Exchange Rate")
Parameters
OnBeforeExchangeAmtLCYToFCY
[IntegrationEvent(False,False)]
local procedure OnBeforeExchangeAmtLCYToFCY(var CurrencyExchangeRate: Record "Currency Exchange Rate"; Date: Date; CurrencyCode: Code[10]; var Amount: Decimal; Factor: Decimal; var RelExchangeRateAmt: Decimal; var ExchangeRateAmt: Decimal; var RelCurrencyCode: Code[10]; FixExchangeRateAmt: Enum "Fix Exch. Rate Amount Type"; var IsHandled: Boolean)
Parameters
OnBeforeExchangeAmtFCYToLCY
[IntegrationEvent(False,False)]
local procedure OnBeforeExchangeAmtFCYToLCY(var CurrencyExchangeRate: Record "Currency Exchange Rate"; Date: Date; CurrencyCode: Code[10]; var Amount: Decimal; Factor: Decimal; UseAdjmtAmounts: Boolean; var RelExchangeRateAmt: Decimal; var ExchangeRateAmt: Decimal; var RelCurrencyCode: Code[10]; FixExchangeRateAmt: Enum "Fix Exch. Rate Amount Type"; var IsHandled: Boolean)
Parameters
OnBeforeExchangeRate
[IntegrationEvent(False,False)]
local procedure OnBeforeExchangeRate(var CurrencyExchangeRate: Record "Currency Exchange Rate"; Date: Date; CurrencyCode: Code[10]; var CurrencyFactor: Decimal; UseAdjmtAmounts: Boolean; var RelExchangeRateAmt: Decimal; var ExchangeRateAmt: Decimal; var RelCurrencyCode: Code[10]; var IsHandled: Boolean)
Parameters
OnBeforeExchangeAmtFCYToFCY
[IntegrationEvent(False,False)]
local procedure OnBeforeExchangeAmtFCYToFCY(var CurrencyExchangeRate: Record "Currency Exchange Rate"; Date: Date; FromCurrencyCode: Code[10]; ToCurrencyCode: Code[10]; var Amount: Decimal; CurrencyExchRate3: array[3] of Record "Currency Exchange Rate"; var IsHandled: Boolean)
Parameters
OnBeforeApplnExchangeAmtFCYToFCY
[IntegrationEvent(False,False)]
local procedure OnBeforeApplnExchangeAmtFCYToFCY(var CurrencyExchangeRate: Record "Currency Exchange Rate"; Date: Date; FromCurrencyCode: Code[10]; ToCurrencyCode: Code[10]; var Amount: Decimal; var ExchRateFound: Boolean; CurrencyExchRate3: array[3] of Record "Currency Exchange Rate"; var IsHandled: Boolean)
Parameters
OnBeforeGetLatestExchangeRate
[IntegrationEvent(False,False)]
local procedure OnBeforeGetLatestExchangeRate(var CurrencyExchangeRate: Record "Currency Exchange Rate"; CurrencyCode: Code[10]; var Date: Date; var Amount: Decimal; var IsHandled: Boolean)
Parameters
OnBeforeSetCurrentCurrencyFactor
[IntegrationEvent(False,False)]
local procedure OnBeforeSetCurrentCurrencyFactor(var CurrencyExchangeRate: Record "Currency Exchange Rate"; CurrencyCode: Code[10]; CurrencyFactor: Decimal; var IsHandled: Boolean)
Parameters
See also