fix: joining and relieving Date can be on same date as valid use case
This commit is contained in:
parent
29c565e0f5
commit
8af51e1f90
@ -152,7 +152,7 @@ class Employee(NestedSet):
|
||||
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"))
|
||||
|
||||
elif self.relieving_date and self.date_of_joining and (getdate(self.relieving_date) <= getdate(self.date_of_joining)):
|
||||
elif self.relieving_date and self.date_of_joining and (getdate(self.relieving_date) < getdate(self.date_of_joining)):
|
||||
throw(_("Relieving Date must be greater than Date of Joining"))
|
||||
|
||||
elif self.contract_end_date and self.date_of_joining and (getdate(self.contract_end_date) <= getdate(self.date_of_joining)):
|
||||
|
Loading…
Reference in New Issue
Block a user