我正在以逗号分隔的值列表中搜索销售订单上的供应商代码,但公式(文本)字段未被 netsuite 接受。我尝试过案例和任何功能。 在 netsuite 中执行保存的搜索时,如何设置条件字段以查找逗号分隔的列表值?
此代码不适用于mee:
case when {item.vendorcode} IN ('CE263AG','51640A')
then 1
else 0
end
我也试过:
any ['CE263AG','51640A']
返回 1 和 0 时应使用数字公式,返回“1”和“0”时应使用文本公式。我不确定是否有更优雅的方法来获取您想要的结果,但以下标准可能有效:
a. Formula (Numeric) is equal to 1 then
b. Formula = Case when {item.vendorcode}='CE263AG' OR {item.vendorcode}='51640A' then 1 else 0 end
祝你好运!
当 {Name} IN (‘Name1’, ‘Name2’, ‘Name3) then VALUE else OTHER VALUE end 时