Hi all,
I'm very inexperienced with custom code but am trying to find a way to auto-add an item to every order. I'm sure this is messy code, but can someone please steer me in the right direction? This seems to be adding an item to each order, but it is not the one with internal ID 14!
function createLineAndSetItem( ) { nlapiSelectNewLineItem('item'); nlapiSetCurrentLineItemValue('item','14'); nlapiCommitLineItem('item'); }Thanks for your help-JKelly