Block Timesheet after filling leave application for leave period

Hello,

I am new to frappe erpnext and was exploring it. Whenever a employee applies for a leave, s/he is able to fill the timesheet.

How to disable the timesheet once a leave application has been added for that leave period?

Hi @Akshay_Durgade,

You can write Server Script for achieve your purpose which will validate if employee is having leave application on that day, then Timesheet should not be save.