mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-13 15:27:12 +00:00
fix: employee advance status update on return via additional salary
This commit is contained in:
@@ -124,6 +124,8 @@ class AdditionalSalary(Document):
|
|||||||
return_amount += self.amount
|
return_amount += self.amount
|
||||||
|
|
||||||
frappe.db.set_value("Employee Advance", self.ref_docname, "return_amount", return_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):
|
def update_employee_referral(self, cancel=False):
|
||||||
if self.ref_doctype == "Employee Referral":
|
if self.ref_doctype == "Employee Referral":
|
||||||
|
|||||||
Reference in New Issue
Block a user