minor fix
diff --git a/erpnext/hr/doctype/employee_transfer/employee_transfer.py b/erpnext/hr/doctype/employee_transfer/employee_transfer.py
index e11cedd..99e7ad6 100644
--- a/erpnext/hr/doctype/employee_transfer/employee_transfer.py
+++ b/erpnext/hr/doctype/employee_transfer/employee_transfer.py
@@ -43,7 +43,7 @@
 			employee = update_employee(employee, self.transfer_details, date=self.transfer_date)
 			if self.company != self.new_company:
 				employee.company = self.new_company
-				new_employee.date_of_joining = self.transfer_date
+				employee.date_of_joining = self.transfer_date
 			employee.save()
 
 	def on_cancel(self):