Merge pull request #16866 from deepeshgarg007/additional

fix: Removed relieving date validation form additional salary
This commit is contained in:
Rushabh Mehta 2019-03-14 14:16:18 +05:30 committed by GitHub
commit 20af5a2b40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)