How to get Exchange Rate in SuiteScript2.0? Equivalent of nlapiExchangeRate().
Hi All,
Please use below code to get Exchange Rate in SuiteScript2.0:
In SuiteScript1.0:
nlapiExchangeRate(sourceCurrency, targetCurrency, effectiveDate)
In SuiteScript2.0:
currency.exchangeRate(options)
Module Used:
N/currency Module
Please comment if you have any question.
Thanks
Abhi
Please use below code to get Exchange Rate in SuiteScript2.0:
In SuiteScript1.0:
nlapiExchangeRate(sourceCurrency, targetCurrency, effectiveDate)
In SuiteScript2.0:
currency.exchangeRate(options)
Module Used:
N/currency Module
Please comment if you have any question.
Thanks
Abhi
what would be the returned rate if the effectiveDate is not yet existing in the Currency Exchange List?
ReplyDeleteNetsuite uses last day's exchange rate, rate will populate again if you change date to another date and then change back to original date after exchange rate is populated in system by Xignite.
DeleteHope this will help.