Merge branch 'develop' of https://github.com/frappe/erpnext into develop
diff --git a/erpnext/education/doctype/student/student.py b/erpnext/education/doctype/student/student.py
index ae8f3a2..45e848b 100644
--- a/erpnext/education/doctype/student/student.py
+++ b/erpnext/education/doctype/student/student.py
@@ -22,6 +22,10 @@
self.update_student_name_in_linked_doctype()
def validate_dates(self):
+ for sibling in self.siblings:
+ 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()):
frappe.throw(_("Date of Birth cannot be greater than today."))