mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-21 14:09:19 +00:00
Fixes for student Attendance
This commit is contained in:
@@ -31,7 +31,8 @@ class StudentAttendance(Document):
|
|||||||
(self.student, self.course_schedule, self.name))
|
(self.student, self.course_schedule, self.name))
|
||||||
else:
|
else:
|
||||||
attendance_records= frappe.db.sql("""select name from `tabStudent Attendance` where \
|
attendance_records= frappe.db.sql("""select name from `tabStudent Attendance` where \
|
||||||
student= %s and date= %s and name != %s and course_schedule='' and docstatus=1""",
|
student= %s and date= %s and name != %s and docstatus=1 and \
|
||||||
|
(course_schedule is Null or course_schedule='')""",
|
||||||
(self.student, self.date, self.name))
|
(self.student, self.date, self.name))
|
||||||
|
|
||||||
if attendance_records:
|
if attendance_records:
|
||||||
|
|||||||
Reference in New Issue
Block a user