function searchSOandBill()
{
var col = new Array();
var filter = new Array();
col[0] = new nlobjSearchColumn('tranid');
var filterExpression = [[['recordtype', 'is', 'vendorbill'], 'or', ['recordtype', 'is', 'salesorder']], 'and', ['mainline', 'is', 'T']];
var results = nlapiSearchRecord('transaction', null, filterExpression, col);
//rest of code here...
}
No comments:
Post a Comment