Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Change a transaction line of a saleorder?
i'm attempting to change transaction lines of a sales order but not quite sure how to accomplish this.. some insight would be great..
here's what i've got so far..
function uncommitSales() { var filters = new Array(); var columns = new Array(); filters[0] = new nlobjSearchFilter("quantitycommitted",null,"greaterthan",0); filters[1] = new nlobjSearchFilter("quantityshiprecv",null,"equalto",0); filters[2] = new nlobjSearchFilter("enddate",null,"before","01/15/2007"); columns[0] = new nlobjSearchColumn("internalid"); columns[1] = new nlobjSearchColumn("item"); var searchresults = nlapiSearchRecord("salesorder", null, filters, columns); var result = ""; for ( var i = 0; i < Math.min(10, searchresults.length); i++) { var record = nlapiLoadRecord(searchresults[i].getRecordType(), searchresults[i].getId()); result += i + " :: " + searchresults[i].getRecordType() + " :: " + searchresults[i].getId() + " :: " + searchresults[i].getValue('internalid') + " :: " + searchresults[i].getValue('item') + " :: " + searchresults[i].getText('item') + "n"; } alert (result); 0