surely you could just put a filter on the search `...
# suitescript
j
surely you could just put a filter on the search
filters: ['invoice.internalid', 'anyof', [invoiceId]]
instead of
Copy code
var inv = line.getValue({ name: 'internalid', join: 'invoice' });
    if (inv == invoiceid) {