This commit is contained in:
Neil Trini Lasrado 2015-03-12 16:15:36 +05:30
parent e7044fa0f6
commit c6dfb02e4a

View File

@ -30,4 +30,4 @@ class SalesPerson(NestedSet):
def validate_employee_id(self): def validate_employee_id(self):
if frappe.db.exists({"doctype": "Sales Person","employee": self.employee}): if frappe.db.exists({"doctype": "Sales Person","employee": self.employee}):
frappe.throw("Another sales person with the same empoyee id exists.") frappe.throw("Another sales person with the same employee id exists.")