Skip to main content
Solved

How to pull the most recent currency rate for a GI


How can I use the most recent currency rate for a calculation in a GI. The currency rates are constantly being updates so when the field is pulled in a GI it is pulling all the effective rates instead of just the most recent one. Has anyone had experience with this/been able to use just the most recent currency exchange rate? 

Best answer by malinthawarnakulasooriya08

Hi @dlesser,As per my experience, it is more straightforward to obtain the Currency Rate for calculations from the CurrencyInfo DAC. As an example, please check the screenshot.

An Invoice 

If you are dealing with invoices and need to obtain the currency conversion rates for calculations as seen on the SO303000 screen, you can directly obtain them by joining the ARInvoice DAC with the CurrencyInfo DAC using the relation ARInvoice.curyInfoID = CurrencyInfo.curyInfoID.     

View original
Did this topic help you find an answer to your question?

3 replies

Laura02
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3132 replies
  • July 15, 2024

Hello,

Try sorting/grouping by Date and adding MAX aggregate function to the date field in the results.

 

Here is a screen shot example of an Aggregate function used in the results of a GI.  You will add MAX to the row containing your Currency Effective Date, where this picture uses COUNT.

Laura


  • Author
  • Freshman I
  • 1 reply
  • July 16, 2024

Thank you for the response. I have tried doing this, but the issue is that when creating the grouping by Date or by the FromCurrency that is being converted, the Currency rate is being grouped as well from all updates of the currency rate. So the currency rate being shown is much larger than expected. Is there a way to group by Date while only showing the most recent date and most recent conversion rate? 

 

 


Forum|alt.badge.img+1

Hi @dlesser,As per my experience, it is more straightforward to obtain the Currency Rate for calculations from the CurrencyInfo DAC. As an example, please check the screenshot.

An Invoice 

If you are dealing with invoices and need to obtain the currency conversion rates for calculations as seen on the SO303000 screen, you can directly obtain them by joining the ARInvoice DAC with the CurrencyInfo DAC using the relation ARInvoice.curyInfoID = CurrencyInfo.curyInfoID.     


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings