Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
4456 Vistas

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
Descartar
Mejor respuesta

Try the below code:-

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

 

Avatar
Descartar
Autor Mejor respuesta

That worked perfectly! thank you very much Prakash!

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
0
mar 15
3721
3
jul 24
8499
2
dic 17
3172
0
abr 17
3207
1
abr 17
4584