Currency Converter

Sreenath Reddy G - MS Dynamics AX Blog

Friends,

In Microsoft Dynamics AX 2012, the currency and exchange rate framework has been enhanced to share information across multiple legal entities.

There is a new class by name CurrencyExchangeHelper that has been introduced in AX 2012 to support this.

This class will help you to do some calculations between currencies. Some important methods to use:

calculateTransactionToAccounting

Example : This method will convert the transaction currency in to accounting currency defined in ledger Table.

image

calculateAccountingToTransaction

This method calculates the transaction currency amount from an accounting currency given.

image

While searching through, I found that there are parmExchangeRate1 and parmExchangeRate2 methods that to calculate based on the exchange rates that have been provided. Please refer to the below example which calculates the misc charges [markup amount] based on the exchange rates defined.

Class Name : Markup >> calcMarkupAmount

image

Exploring more…will post soon!

Happy Dax6ng,

sree

Ver la entrada original