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!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
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