06-15-2020 08:40 AM - last edited on 05-10-2023 05:42 AM by JackLacava
06-25-2020 06:03 AM
"Dim strFlowType As Boolean = api.flow.switchType(api.Pov.flow.memberid)
Then for the asset/liability sections, replace the three lines with this condition that takes into account switch type.
If strFlowType Then
strRateType = ""AverageRate""
Dim rate As Decimal = api.FxRates.GetCalculatedFxRate(strRateType, curTimeID, args.FxRateArgs.SourceCurrencyId,args.FxRateArgs.DestCurrencyId)
Return New FxRateResult(rate)
Else
strRateType = ""ClosingRate""
Dim rate As Decimal = api.FxRates.GetCalculatedFxRate(strRateType, curTimeID, args.FxRateArgs.SourceCurrencyId,args.FxRateArgs.DestCurrencyId)
Return New FxRateResult(rate)
End If"