mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-23 15:09:20 +00:00
Merge pull request #16866 from deepeshgarg007/additional
fix: Removed relieving date validation form additional salary
This commit is contained in:
@@ -19,8 +19,6 @@ class AdditionalSalary(Document):
|
|||||||
["date_of_joining", "relieving_date"])
|
["date_of_joining", "relieving_date"])
|
||||||
if date_of_joining and getdate(self.payroll_date) < getdate(date_of_joining):
|
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"))
|
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):
|
def get_amount(self, sal_start_date, sal_end_date):
|
||||||
start_date = getdate(sal_start_date)
|
start_date = getdate(sal_start_date)
|
||||||
|
|||||||
Reference in New Issue
Block a user