Merge pull request #14105 from Zlash65/fix-dept

[Minor] Typo in Employee Transfer
This commit is contained in:
rohitwaghchaure 2018-05-17 11:23:52 +05:30 committed by GitHub
commit d2f0d08234
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,7 +14,7 @@ class EmployeeTransfer(Document):
if frappe.get_value("Employee", self.employee, "status") == "Left":
frappe.throw(_("Cannot transfer Employee with status Left"))
if self.new_company and self.company == self.new_company:
frappe.throw_("New Company must be different from current company")
frappe.throw(_("New Company must be different from current company"))
def before_submit(self):
if getdate(self.transfer_date) > getdate():