commit | f5eb45bf23aebd4305a9157ff87ca6d32b5c1013 | [log] [tgz] |
---|---|---|
author | Rucha Mahabal <ruchamahabal2@gmail.com> | Tue Sep 15 17:01:00 2020 +0530 |
committer | Rucha Mahabal <ruchamahabal2@gmail.com> | Tue Sep 15 17:01:00 2020 +0530 |
tree | 9f7d5028803b92317ef92514f13eb558b31fe04b | |
parent | 68a07eda721bef32f7aaf455f12a8286e3626e24 [diff] |
fix: validate academic term while checking for enrollment duplication
diff --git a/erpnext/education/doctype/program_enrollment/program_enrollment.py b/erpnext/education/doctype/program_enrollment/program_enrollment.py index 7551603..28767f8 100644 --- a/erpnext/education/doctype/program_enrollment/program_enrollment.py +++ b/erpnext/education/doctype/program_enrollment/program_enrollment.py
@@ -28,6 +28,7 @@ "student": self.student, "program": self.program, "academic_year": self.academic_year, + "academic_term": self.academic_term, "docstatus": ("<", 2), "name": ("!=", self.name) })