minor fix

This commit is contained in:
Nabin Hait 2018-06-20 17:45:39 +05:30
parent 45725c2c7b
commit 7aae0e66df

View File

@ -43,7 +43,7 @@ class EmployeeTransfer(Document):
employee = update_employee(employee, self.transfer_details, date=self.transfer_date) employee = update_employee(employee, self.transfer_details, date=self.transfer_date)
if self.company != self.new_company: if self.company != self.new_company:
employee.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() employee.save()
def on_cancel(self): def on_cancel(self):