-
Notifications
You must be signed in to change notification settings - Fork 238
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added support for advanced currency management orgs (also known as dated exchange rate) #591
base: main
Are you sure you want to change the base?
Conversation
…ted exchange rate)
…areful to only add additional fields from parent object)
@Kilay sorry for the late response on this.
Thanks, and sorry again for the delay in responding. Andy |
|
@afawcett : Is it what you meant by "using soley dynamic SOQL" ? |
@Kilay yep thats it. So i am going to focus this weekend on getting this merged. Its tricky because i changed the source format to move to DX since. However i'll get it done! 👍 |
@Kilay just taking a closer look at these changes. Did you wire up the new functionality in LREngine to the rest of the code base? How does the user actually configure this without flowing it through RollupService and the defining it via the picklist on the custom object/metadata types? I can wire this up myself, but just wanted to check if these files are just missing from the PR by accident? |
@Kilay can you also tell me a bit more about the motivation behind the setDateField and addAdditionalField methods and the use case behind them? I think i can see what the intent is by looking at the tests. But a bit more background from you would be useful. Thanks! 👍 |
FYI: I have started a branch (using the new DX format for the repo) with these changes in. https://github.com/afawcett/declarative-lookup-rollup-summaries/tree/advanced-currency. |
You are right, I didn't wire up to the rest of the code because I am only using the LREngine via custom apex code. Let me know if you need some help.
setDateField method defined which date field should used in order to get the correct rate to use. It can be a field on the same object (like Opportunity is using CloseDate field) or from a related object (like OpportunityLineItem is using CloseDate field from related Opportunity). That is why I have a setDateLookupField function to set the related object where the date field is. I refactored this a little bit to have only one function for this, I will try to update the PR soon. addAdditionalField method can be used to get more field from the parent object (as it uses a SOQL with GROUP function, we can only get information from the parent object and not the child object).
|
…ced currency as a package dependency
Thanks @Kilay. So the LREngine class is from another repo, this tool wraps this class to expose its features to admins without code. So while your changes are valid for this class, it might be best to apply (either now or after) to the original repo. https://github.com/abhinavguptas/Salesforce-Lookup-Rollup-Summaries. Meanwhile i will keep the branch open and update the rest of the code to pick up your change so that admins can use it. Thanks again, i will re-read your code and description a again later and may have more questions, but for now it seemed to have made sense! Thanks! |
I had the same thought so I submitted (almost a year ago) a PR to this repo (abhinavguptas/Salesforce-Lookup-Rollup-Summaries#19). But it seems that this repo is not maintained as I never get any answer. |
@Kilay understood. |
@afawcett what can I do here as I believe this issue is messing up my roll up. Any advice is appreciated. Our corporate currency is GBP but we have opps in USD, EURO and dates exchange rates. Please see a better explanation here https://success.salesforce.com/answers?id=9063A000000t1wx |
Please enable and fix as this has made us very stuck see #733 will this be fixed anytime soon or shall we uninstall the tool? Please can you also make it clear on the app that this isn't supported as we rolled out a subscription spend process that had to be halted. |
@afawcett have there been any developments to this issue? |
I'd also love an update. Currently considering using free-RUH and DLRS in tandem which I'd rather not do! |
Any update an is there a work around available? Thanks |
Yes this is a long standing PR sorry folks. Its deep in the tool of course. Meanwhile any thoughts on the formula field workaround here > #859? |
Added support for advanced currency management orgs (issue #82 )
Replace PR #583