var filterExp = [
[ ['custrecord_rebate_customer.isinactive', 'is', 'F'],
'and',
['custrecord_rebate_customer.custrecord_start_date', 'before', date],
'and',
['custrecord_rebate_customer.custrecord_end_date', 'after', date],
'and',
['custrecord_rebate_customer.custrecord_upaya_warehouse', 'anyof', warehouse],
'and',
['isinactive', 'is', 'F' ],
'and',
['custrecord_customer_name', 'anyof', customer]],
'or',
['custrecord_rebate_customer.custrecord_global_clearance_item','is','T']
];
我有一个搜索,我正在运行以获得结果。我需要使用表达式,因为我需要在过滤器中有一个“或”。因此,在 UI 中,我构建了搜索并产生了正确的结果。我得到 7 个结果。现在在我的代码中,当我提醒搜索结果时,我得到 6,这意味着它没有执行代码的“或”部分。我似乎无法弄清楚如何使用“或”。第一次在代码中使用表达式,因此修复它可能是一件简单的事情。我已经以各种可能的方式尝试了括号。有没有人有任何解决方案?提前致谢!