commit | 8c3fb43d8af951ad32e075a5a946a3c96149ab32 | [log] [tgz] |
---|---|---|
author | Neil Trini Lasrado <neil@frappe.io> | Fri Jan 27 14:13:25 2017 +0530 |
committer | Neil Trini Lasrado <neil@frappe.io> | Fri Jan 27 14:13:25 2017 +0530 |
tree | 84bd2e742e45ded7df10a34742f29c443e909f01 | |
parent | 57e4ab70be4d3273293b97cd6086549c454d5e31 [diff] |
Fix- Student batch strength in Batch Wise attendance report
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 c112b59..b6bedcb 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_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):