Hi all,
I am working on customizing the Cost Estimates and Costings Report by retrieving the result from the Sales Line Price minus(-) the cost of production.
I already have the sales price that is linked to the production (TransRefId/CollectRefProdId). The problem comes when the Currecy from the sales is different from the company we are working with.
so pulling out the currency by X++ at the moment the sales was made is the only option I can think of.
I have just coppied a code from this community https://community.dynamics.com/ax/b/hellodax/posts/get-currency-exchange-rate-using-ax-class
but is not working well all the time, as you can see in pictures is taking correctly the currecny from EUR to any other currency but is not taking for example PLN to DKK .
Thanks a lot for your time, your help is greatly appreciated