fix: Remove validation for relieving date from additional salary

This commit is contained in:
deepeshgarg007 2019-03-07 20:00:07 +05:30
parent d4754619d0
commit 78a32ae172

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)