我是在 NetSuite 中编写 CASE 表达式的新手。我在自定义搜索的公式字段中插入了以下表达式。
CASE WHEN {item.custitem_custid}=05 OR {item.custitem_custid}=12 THEN
({item.custitem_margin}/2)
ELSE
({item.custitem_margin}/3)
END
并得到“结果无效的表达式。如果 WHEN 情况为真,我试图将边距字段值除以 2,如果不正确,则除以 3。有人知道我的公式有什么问题吗?