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

ERP Next set default filter condition

customization

#1

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 https://drive.google.com/file/d/1G8WGJiFKZMQfWR5Hqs8rwZxLrdGwwp6z/view?usp=sharing

Thanks in advance


#2

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