fix: employee advance status update on return via additional salary

This commit is contained in:
Rucha Mahabal 2022-01-18 14:38:16 +05:30
parent 0843d43885
commit 85be0d22d4

View File

@ -105,6 +105,8 @@ class AdditionalSalary(Document):
return_amount += self.amount
frappe.db.set_value("Employee Advance", self.ref_docname, "return_amount", return_amount)
advance = frappe.get_doc("Employee Advance", self.ref_docname)
advance.set_status(update=True)
def update_employee_referral(self, cancel=False):
if self.ref_doctype == "Employee Referral":