fix: allow future attendance marking for leave applications
diff --git a/erpnext/education/doctype/student_attendance/student_attendance.py b/erpnext/education/doctype/student_attendance/student_attendance.py
index 572fd10..595dff9 100644
--- a/erpnext/education/doctype/student_attendance/student_attendance.py
+++ b/erpnext/education/doctype/student_attendance/student_attendance.py
@@ -28,7 +28,7 @@
 				frappe.bold('Course Schedule')), title=_('Mandatory Fields'))
 
 	def validate_date(self):
-		if getdate(self.date) > getdate():
+		if not self.leave_application and getdate(self.date) > getdate():
 			frappe.throw(_('Attendance cannot be marked for future dates.'))
 
 		if self.student_group: