跳至内容
菜单
此问题已终结
2 回复
4451 查看

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
3692
3
7月 24
8482
2
12月 17
3169
0
4月 17
3193
1
4月 17
4571