跳至內容
選單
此問題已被標幟
2 回覆
4435 瀏覽次數

How can I merge two filters in an RML report? 

This one: [[repeatIn(filter(lambda l: l.x_printable_choice==0 ,o.invoice_line), 'l')]]

and the one above: [[repeatIn(filter(lambda l: l.name.find('>')==-1, o.invoice_line), 'l')]]

 

頭像
捨棄
最佳答案

Try the below code:-

[[repeatIn(filter(lambda l: l.name.find('>')==-1 and  l.x_printable_choice==0, o.invoice_line), 'l')]]

 

頭像
捨棄
作者 最佳答案

That worked perfectly! thank you very much Prakash!

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
3月 15
3681
3
7月 24
8473
2
12月 17
3169
0
4月 17
3185
1
4月 17
4560