Merge pull request #16845 from hrwX/additional_salary_develop
fix(Additional Salary): Additional salary develop
This commit is contained in:
commit
6e28ef425a
@ -11,8 +11,8 @@ from frappe.utils import getdate, date_diff
|
|||||||
class AdditionalSalary(Document):
|
class AdditionalSalary(Document):
|
||||||
def validate(self):
|
def validate(self):
|
||||||
self.validate_dates()
|
self.validate_dates()
|
||||||
if self.amount <= 0:
|
if self.amount < 0:
|
||||||
frappe.throw(_("Amount should be greater than zero."))
|
frappe.throw(_("Amount should not be less than zero."))
|
||||||
|
|
||||||
def validate_dates(self):
|
def validate_dates(self):
|
||||||
date_of_joining, relieving_date = frappe.db.get_value("Employee", self.employee,
|
date_of_joining, relieving_date = frappe.db.get_value("Employee", self.employee,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user