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.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Keep an eye out for upcoming NetSuite events, including meetups, workshops, and webinars. These sessions are a great way to connect with peers, learn from experts, and stay current on the latest NetSuite updates and best practices. Registration links are provided in each event.
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