06-18-2020 10:03 AM - last edited on 05-03-2023 09:25 AM by JackLacava
6/4/2019
I am trying to translate my F#OpeningBalance at an opening rate. It is naturally translating at average rate. I have managed to get to translate at closing rate but I'm now trying to figure out how to change it to looking at my opening fx rate
06-26-2020 08:43 AM
This might be a start:
If (api.Cons.IsCurrency() And Not api.Cons.IsLocalCurrencyforEntity()) Then
Dim RateTypeOpe As FxRateType = api.FxRates.GetFxRateType(""OpeningRate"")
Dim RateOPE As Decimal = api.FxRates.GetCalculatedFxRate(RateTypeOpe,)
api.data.calculate(""F#OpeningBalance:C#Local * "" & api.Data.DecimalToText(RateOpe) & "" "")
End If