NetSuite Case when 声明加入
NetSuite Case when statement on joined
我刚开始在 NetSuite 中编写 case 语句,如果有任何意见,我将不胜感激。我试图在项目搜索中创建以下语句,但收到无效表达式错误。
CASE WHEN {transaction.status} = "Purchase Order:Pending Receipt" THEN {transaction.expectedreceiptdate} end
CASE WHEN {transaction.status} = 'Pending Receipt' THEN {transaction.expectedreceiptdate} end
请注意,您需要在SQL 语句中使用单引号,并且您不能将交易类型指定为状态条件的一部分。要解决此问题,您可以在条件中包含交易类型,或在 CASE 语句中添加另一个条件:
CASE WHEN {transaction.status} = 'Pending Receipt' AND {transaction.type} = 'Purchase Order' THEN {transaction.expectedreceiptdate} end
我刚开始在 NetSuite 中编写 case 语句,如果有任何意见,我将不胜感激。我试图在项目搜索中创建以下语句,但收到无效表达式错误。
CASE WHEN {transaction.status} = "Purchase Order:Pending Receipt" THEN {transaction.expectedreceiptdate} end
CASE WHEN {transaction.status} = 'Pending Receipt' THEN {transaction.expectedreceiptdate} end
请注意,您需要在SQL 语句中使用单引号,并且您不能将交易类型指定为状态条件的一部分。要解决此问题,您可以在条件中包含交易类型,或在 CASE 语句中添加另一个条件:
CASE WHEN {transaction.status} = 'Pending Receipt' AND {transaction.type} = 'Purchase Order' THEN {transaction.expectedreceiptdate} end