From aaea4e60b6996bb9c63671e689643317a8ef09d5 Mon Sep 17 00:00:00 2001 From: Deepesh Garg <42651287+deepeshgarg007@users.noreply.github.com> Date: Sun, 23 Feb 2020 20:59:05 +0530 Subject: [PATCH] fix: Validation condition --- erpnext/education/doctype/student/student.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/education/doctype/student/student.py b/erpnext/education/doctype/student/student.py index 81fa7f7fae..6b545d99be 100644 --- a/erpnext/education/doctype/student/student.py +++ b/erpnext/education/doctype/student/student.py @@ -23,7 +23,7 @@ class Student(Document): def validate_dates(self): for sibling in self.siblings: - if sibling.date_of_birth and getdate(sibling.date_of_birth) >= getdate(): + if sibling.date_of_birth and getdate(sibling.date_of_birth) > getdate(): frappe.throw(_("Row {0}:Sibling Date of Birth cannot be greater than today.").format(sibling.idx)) if self.date_of_birth and getdate(self.date_of_birth) >= getdate(today()):