From 71aaeae91c808323e018b1f3636a480f5dfdc42e Mon Sep 17 00:00:00 2001 From: Neil Trini Lasrado Date: Thu, 1 Dec 2016 16:01:58 +0530 Subject: [PATCH] Fixes for Student Batch-Wise Attendance report and Absent Student Report --- .../report/absent_student_report/absent_student_report.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/schools/report/absent_student_report/absent_student_report.py b/erpnext/schools/report/absent_student_report/absent_student_report.py index a138ca6ba9..82a20aa126 100644 --- a/erpnext/schools/report/absent_student_report/absent_student_report.py +++ b/erpnext/schools/report/absent_student_report/absent_student_report.py @@ -49,7 +49,7 @@ def get_columns(filters): def get_absent_students(date): 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 def get_leave_applications(date):