I am trying to create a script that among other things sets the currency in the employee expenses to GBP. I am using the line below but for some reason it doesn't work.
nlapiSetCurrentLineItemText('expense','currency',"GBP")
Which is odd as if I manually set the currency to GBP and use nlapiGetCurrentLineItemText('expense','currency') it returns GBP. I have also tried using the nlapiSetCurrentLineItemValue('expense','currency',"1") but this also fails to work.
Any help? Am I missing something.