JohannJ
5 months agoNew Contributor II
Adding new source currency with setFxRate automatically
Hi,
I'm currently setting FxRates via BR using below snippet:
objFxRatePk = new FxRatePkUsingNames(osFxRateType, osFxRateDate, sourceCurrency, targetCurrency);
objFxRate = new FxRateUsingNames(objFxRatePk, decimal.Parse(rate), true, false);
objFxRateList.Add(objFxRate);
// <removed for brevity)
BRApi.Finance.Data.SetFxRate(si, item);
// <snip>
BRApi.Finance.Data.LockFxRate(si, rateType, currentMonth);
It works fine but when a new source currency is added, it doesn't show up in Application/FX Rates table.
*** EDIT - realized I didn't phrase this very well ***
Am I missing a step somewhere?
Am I missing a step somewhere to automate this? Or is it not possible?
I think you will need to add the currency to the Application Properties Currencies list before it shows on the FX Rates module.