ERPNext Foundation ERPNext Cloud User Manual Blog Discuss Frappé* Donate

ERP Next set default filter condition



I have made a custom report in erpnext. In that, I can filter data by clicking add filter button. But I want to add that as a default filter. How can I fix it?

For more clarification here is the screenshot which I am expecting as default

Thanks in advance


If it’s a Script report, you can refer to the below code to add a default value to the filter.