Fixes for Student Batch-Wise Attendance report and Absent Student Report

This commit is contained in:
Neil Trini Lasrado 2016-12-01 16:01:58 +05:30
parent 6e9a587463
commit 71aaeae91c

View File

@ -49,7 +49,7 @@ def get_columns(filters):
def get_absent_students(date): def get_absent_students(date):
absent_students = frappe.db.sql("""select student, student_name, student_batch from `tabStudent Attendance` absent_students = frappe.db.sql("""select student, student_name, student_batch from `tabStudent Attendance`
where docstatus = 1 and date = %s order by student_batch, student_name""", date, as_dict=1) where docstatus = 1 and status="Absent" and date = %s order by student_batch, student_name""", date, as_dict=1)
return absent_students return absent_students
def get_leave_applications(date): def get_leave_applications(date):