Notifications
Announcements
No record found.
As I know, foreign currency revaluation in AR/AP gets default exchange rate type from ledger. How can I get different exchange rate type for calculation by code?
Hi,
You are right, its come from ledger setup- currency exchange rate type.
Can you give us, what is the meaning of CODE here?
HI Ramit Paul,
How can I add code to class to choose different exchange rate type for calculation?
Hi Tony,
Not sure what you mean by different. We get the default exchange rate type using this -
Ledger::find(Ledger::current()).DefaultExchangeRateType
Hi Gunjan Bhattacharyya,
I mean how to use different set instead of default exchange rate type from ledger.
You can query ExchangeRateType table. Maybe something like this-
ExchangeRateType rateType; select firstOnly rateType where rateType.RecId != Ledger::find(Ledger::current()).DefaultExchangeRateType;
I know how to select different exchange rate type , but I don't know how to use my exchange rate type for foreign currency revaluation.
Would you mind to share the exact scenario you want to achieve?
Hi Ramit Paul,
My client wants to select different rate only for foreign currency revaluation, so we cannot use default exchange rate type from ledger. We suggest another exchange rate type for foreign currency revaluation.
This is not as per design.
The possible way is you can have exchange rate type in accounting currency and reporting currency exchange rate type.
Further more, you can have different exchange rate type in MAIN ACCOUNT level.
For AP/AR, MAIN ACCOUNT is not related. Isn't it?
The possible way is you can have exchange rate type in accounting currency and reporting currency exchange rate type. What does it mean?
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 584 Most Valuable Professional
André Arnaud de Cal... 499 Super User 2025 Season 2
Sohaib Cheema 254 User Group Leader