I am writing this post to demonstrate find exchange rate for SSRS report in Axapta 2012 R2 , R3.
"CurrencyExchangeHelper" class manages calculations between currencies. with the help of method "calculateCurrencyToCurrency" calculates the amount between the original currency and the resulting currency.
Let's have a look..
// find exchange rate
CurrencyExchangeHelper curExchangeRate; ;
AmountMst calculateCurrency;
curExchangeRate = CurrencyExchangeHelper::newExchangeDate(Ledger::current(), systemDateGet());
calculateCurrency = currencyExchangeHelper.calculateCurrencyToCurrency("USD" , "SAR" ,1 , true);
info(strfmt("%1", calculateCurrency));
Now you can get exchange rate USD to SAR , "calculatecurrency" variable provide you the current SAR exchange rate.
Thank you so much!
"CurrencyExchangeHelper" class manages calculations between currencies. with the help of method "calculateCurrencyToCurrency" calculates the amount between the original currency and the resulting currency.
Let's have a look..
// find exchange rate
CurrencyExchangeHelper curExchangeRate; ;
AmountMst calculateCurrency;
curExchangeRate = CurrencyExchangeHelper::newExchangeDate(Ledger::current(), systemDateGet());
calculateCurrency = currencyExchangeHelper.calculateCurrencyToCurrency("USD" , "SAR" ,1 , true);
info(strfmt("%1", calculateCurrency));
Now you can get exchange rate USD to SAR , "calculatecurrency" variable provide you the current SAR exchange rate.
Thank you so much!
very useful information, the post shared was very nice.
ReplyDeleteMicrosoft Dynamics AX Online Training