Still in the implementation phase of Netsuite and testing some scripting functionality, but I can't get the script below to execute. I am a little fuzzy on some of the scripting concepts, so maybe someone can point out where I am going wrong.
I have uploaded this script as a user event to execute on afterSubmit for a Sales Order transaction. Basically, I want to copy the rate field from one column to a custom column on the same order when the order is saved. I have gotten similar code to work with client side pageInit and saveRecord, so can anyone see the flaw in my logic?
function afterSubmit(type)
{if (type == 'create' || type == 'edit');
{
var price1 = nlapiGetLineItemValue('item','rate',1);
nlapiSetLineItemValue('item','custcol12', 1, price1);
}
}
I don't get an error or anything, but it just acts like it's not even trying to run the script.
Thanks,
Bud