Calendar View Filter

Hello Everyone,

I have one issue it’s like I wanted to add a filter in the calendar view similar to the list view in the custom doctype named as a book as per the item code in item doctype.


When we click on the book we are able to see things in the list view with the default filter.

And Afterwards when we change the list view to the calendar view filter goes away and it shows all items.

This is Code which I wrote if there is any mistake let me know

Thanks In Advance