Skip to Content
Menu
This question has been flagged
2 Replies
4400 Zobrazenia

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
Zrušiť
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
Zrušiť
Autor Best Answer

That worked perfectly! thank you very much Prakash!

Avatar
Zrušiť
Related Posts Replies Zobrazenia Aktivita
0
mar 15
3675
3
júl 24
8455
2
dec 17
3163
0
apr 17
3162
1
apr 17
4549