From 409c8e973286b1c822f84e4c76667fabdcf96dc5 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Sun, 11 May 2014 10:01:16 +0530 Subject: [PATCH] removed confirmation date validations (wtf) --- erpnext/hr/doctype/employee/employee.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/erpnext/hr/doctype/employee/employee.py b/erpnext/hr/doctype/employee/employee.py index 687c6ce054..2ae4a2a9d3 100644 --- a/erpnext/hr/doctype/employee/employee.py +++ b/erpnext/hr/doctype/employee/employee.py @@ -129,12 +129,6 @@ class Employee(Document): if self.date_of_birth and self.date_of_joining and getdate(self.date_of_birth) >= getdate(self.date_of_joining): throw(_("Date of Joining must be greater than Date of Birth")) - elif self.scheduled_confirmation_date and self.date_of_joining and (getdate(self.scheduled_confirmation_date) < getdate(self.date_of_joining)): - throw(_("Scheduled Confirmation Date must be greater than Date of Joining")) - - elif self.final_confirmation_date and self.date_of_joining and (getdate(self.final_confirmation_date) < getdate(self.date_of_joining)): - throw(_("Final Confirmation Date must be greater than Date of Joining")) - elif self.date_of_retirement and self.date_of_joining and (getdate(self.date_of_retirement) <= getdate(self.date_of_joining)): throw(_("Date Of Retirement must be greater than Date of Joining"))