تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
4405 أدوات العرض

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
مارس 15
3675
3
يوليو 24
8455
2
ديسمبر 17
3163
0
أبريل 17
3162
1
أبريل 17
4549