From ccf2b7b08b6f5be2ca9c08d8c0303f5051411018 Mon Sep 17 00:00:00 2001 From: Manas Solanki Date: Thu, 29 Mar 2018 16:36:59 +0530 Subject: [PATCH] minor fix for the program enrollment tool --- .../doctype/program_enrollment_tool/program_enrollment_tool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/education/doctype/program_enrollment_tool/program_enrollment_tool.py b/erpnext/education/doctype/program_enrollment_tool/program_enrollment_tool.py index bc6021839a..ca5b49cde7 100644 --- a/erpnext/education/doctype/program_enrollment_tool/program_enrollment_tool.py +++ b/erpnext/education/doctype/program_enrollment_tool/program_enrollment_tool.py @@ -26,7 +26,7 @@ class ProgramEnrollmentTool(Document): elif self.get_students_from == "Program Enrollment": condition2 = 'and student_batch_name=%(student_batch)s' if self.student_batch else " " students = frappe.db.sql('''select student, student_name, student_batch_name from `tabProgram Enrollment` - where program=%(program)s and academic_year=%(academic_year)s {0} {1}''' + where program=%(program)s and academic_year=%(academic_year)s {0} {1} and docstatus != 2''' .format(condition, condition2), self.as_dict(), as_dict=1) student_list = [d.student for d in students]