Merge pull request #16866 from deepeshgarg007/additional
fix: Removed relieving date validation form additional salary
This commit is contained in:
commit
20af5a2b40
@ -19,8 +19,6 @@ class AdditionalSalary(Document):
|
||||
["date_of_joining", "relieving_date"])
|
||||
if date_of_joining and getdate(self.payroll_date) < getdate(date_of_joining):
|
||||
frappe.throw(_("Payroll date can not be less than employee's joining date"))
|
||||
elif relieving_date and getdate(self.payroll_date) > getdate(relieving_date):
|
||||
frappe.throw(_("To date can not greater than employee's relieving date"))
|
||||
|
||||
def get_amount(self, sal_start_date, sal_end_date):
|
||||
start_date = getdate(sal_start_date)
|
||||
|
Loading…
x
Reference in New Issue
Block a user