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.
Transaction Join - Type Invoice
Hey,
I'm attempting to do a search on customers that have outstanding invoices on 45 or 60 days.
I am not able to figure out what operator or value to enter to filter on just invoices.
I've tried several combinations using equalto, is, anyof and Invoice, INVOICE, invoice, INV, Inv and inv but nothing works.
Help please!
var filters = new Array() filters[0] = new nlobjSearchFilter('amountremaining','transaction','greaterthan',0)//status = open filters[1] = new nlobjSearchFilter('daysoverdue','transaction','is',45,60)//days open = 45 filters[2] = new nlobjSearchFilter('type','transaction','is','INV') filters[3] = new nlobjSearchFilter('subsidiary',null,'anyOf',1)//UK Subsidiary var invoicesearch = nlapiSearchRecord('customer', null, filters, null) alert(invoicesearch.length) 0