Using the Netsuite User Interface, a customer can enter serial numbers to transactions, is there a way to automate this using Script?
The script below should accomplish the same using SuiteScript.
var rec = nlapiLoadRecord('itemfulfillment',nlapiGetRecordId());
rec.setLineItemValue('item','quantity',1,4);
rec.setLineItemValue('item','serialnumbers',1,'33333(2)'+ String.fromCharCode(5) + '44444(1)'+ String.fromCharCode(5) + '11111(1)' );
nlapiSubmitRecord(rec);
No comments:
Post a Comment