How to add IN and NOT IN in the ERPNext Script Report

Hello,

Can anybody teach me how to add IN and NOT IN in the ERPNext Script Report filter.

Thanks in advance. SDG :+1:

you can pass dict to filters parameter, for example

def get_data(filters):
    filters_dict = {}

    filters_dict["status"] = ["in", "Paid", "Unpaid"]

    si_list = frappe.get_all("Sales Invoice", filters=filters_dict)

Thank you for the reply @PyJumper .

image
I want to achieve this kind of filter on report filters.


Just like this