List view based on Fiscal Year

Hello guys

I want to display the data based on the fiscal year by default.

For eg: the sales invoice list display default between fiscal year.

Is there any option. please help me with this.


Hi @jinsy,

It’s complex in Listview to set default but you can use it, please,
you can set manually fiscal year-wise data.
Client/custom script for list view:

frappe.listview_settings['Sales Invoice'] = {
	onload: function(listview) {
	    frappe.route_options = {
				"posting_date": ["Between", ["2022-04-01","2023-03-31"]]

Reload and check it.


1 Like

Thanks @NCP

That works. :grinning: