Skip to content

Commit

Permalink
fix: employee advance status update on return via additional salary
Browse files Browse the repository at this point in the history
  • Loading branch information
ruchamahabal committed May 24, 2022
1 parent cac9e24 commit d59c3d2
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ def update_return_amount_in_employee_advance(self):
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":
Expand Down

0 comments on commit d59c3d2

Please sign in to comment.