Fix: requested Changes
diff --git a/erpnext/hr/doctype/additional_salary/additional_salary.py b/erpnext/hr/doctype/additional_salary/additional_salary.py
index 4076ffe..bab6fb5 100644
--- a/erpnext/hr/doctype/additional_salary/additional_salary.py
+++ b/erpnext/hr/doctype/additional_salary/additional_salary.py
@@ -12,9 +12,7 @@
 
 	def on_submit(self):
 		if self.ref_doctype == "Employee Advance" and self.ref_docname:
-			emp_adv = frappe.get_doc(self.ref_doctype, self.ref_docname)
-			emp_adv.return_amount = self.amount
-			emp_adv.save()
+			frappe.db.set_value("Employee Advance", self.ref_docname, "return_amount", self.amount)
 
 	def before_insert(self):
 		if frappe.db.exists("Additional Salary", {"employee": self.employee, "salary_component": self.salary_component,
diff --git a/erpnext/hr/doctype/employee_advance/employee_advance.js b/erpnext/hr/doctype/employee_advance/employee_advance.js
index 38561d4..6cc49cf 100644
--- a/erpnext/hr/doctype/employee_advance/employee_advance.js
+++ b/erpnext/hr/doctype/employee_advance/employee_advance.js
@@ -76,7 +76,6 @@
 				doc: frm.doc
 			},
 			callback: function (r){
-				console.log("Helloxs")
 				var doclist = frappe.model.sync(r.message);
 				frappe.set_route("Form", doclist[0].doctype, doclist[0].name);
 			}