From f5eb45bf23aebd4305a9157ff87ca6d32b5c1013 Mon Sep 17 00:00:00 2001 From: Rucha Mahabal Date: Tue, 15 Sep 2020 17:01:00 +0530 Subject: [PATCH] fix: validate academic term while checking for enrollment duplication --- .../education/doctype/program_enrollment/program_enrollment.py | 1 + 1 file changed, 1 insertion(+) diff --git a/erpnext/education/doctype/program_enrollment/program_enrollment.py b/erpnext/education/doctype/program_enrollment/program_enrollment.py index 7551603332..28767f8ec1 100644 --- a/erpnext/education/doctype/program_enrollment/program_enrollment.py +++ b/erpnext/education/doctype/program_enrollment/program_enrollment.py @@ -28,6 +28,7 @@ class ProgramEnrollment(Document): "student": self.student, "program": self.program, "academic_year": self.academic_year, + "academic_term": self.academic_term, "docstatus": ("<", 2), "name": ("!=", self.name) })