我负责开发库存快照报告,该报告由两种类型划分:订单和库存。除此之外,只有具有特定状态的项目才会显示在报告上。
I have a parameter that is used to determine the specific date for the report. {?endDate}
I have a field in a view that pulls the date the item was received. {rec_date}
I have a formula field that pulls the group (orders/stock) -- {@grouping}
I have a formula field that pulls the status -- {@state}
基本上我在录音选择中需要的是:
( @grouping = "Orders" and rec_date < {?endDate} and @state in (0,2,5) )
OR
( @grouping = "Stock" and rec_date < {?endDate} and @state in (1,2,3,5,7) )
我试图写这个的任何方式都是无效的。任何帮助将不胜感激。
答案 0 :(得分:1)
您的公式也必须在波浪形括号中:
( {@grouping} = "Orders" and rec_date < {?endDate} and {@state} in [0,2,5] )
OR
( {@grouping} = "Stock" and rec_date < {?endDate} and {@state} in [1,2,3,5,7] )