Skip to Content
Menu
This question has been flagged
2 Replies
4441 Views

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')]]

 

Avatar
Discard
Best Answer

Try the below code:-

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

 

Avatar
Discard
Author Best Answer

That worked perfectly! thank you very much Prakash!

Avatar
Discard
Related Posts Replies Views Activity
0
Mar 15
3681
3
Jul 24
8473
2
Dec 17
3169
0
Apr 17
3186
1
Apr 17
4562