From 8c3fb43d8af951ad32e075a5a946a3c96149ab32 Mon Sep 17 00:00:00 2001 From: Neil Trini Lasrado Date: Fri, 27 Jan 2017 14:13:25 +0530 Subject: [PATCH] Fix- Student batch strength in Batch Wise attendance report --- .../student_batch_wise_attendance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/schools/report/student_batch_wise_attendance/student_batch_wise_attendance.py b/erpnext/schools/report/student_batch_wise_attendance/student_batch_wise_attendance.py index c112b59b94..b6bedcb022 100644 --- a/erpnext/schools/report/student_batch_wise_attendance/student_batch_wise_attendance.py +++ b/erpnext/schools/report/student_batch_wise_attendance/student_batch_wise_attendance.py @@ -53,7 +53,7 @@ def get_active_student_batch(): def get_student_batch_strength(student_batch): student_batch_strength = frappe.db.sql("""select count(*) from `tabStudent Batch Student` - where parent = %s""", student_batch)[0][0] + where parent = %s and active=1""", student_batch)[0][0] return student_batch_strength def get_student_attendance(student_batch, date):