Your Leave scheduling works if tech creates a NEW ticket and assigns to tech on pto, and then it auto in-assign.
However, if tech assigns existing tickets to techs on pto, it goes thru..
How to prevent techs from assigning existing tickets to techs on leave status?