commit | a813571c17de62714dfc3f8a64724983e899aed2 | [log] [tgz] |
---|---|---|
author | Nabin Hait <nabinhait@gmail.com> | Mon Aug 05 10:05:28 2019 +0530 |
committer | GitHub <noreply@github.com> | Mon Aug 05 10:05:28 2019 +0530 |
tree | f9b4cf3af140b9f1fcc33ad193f7ef47fecd39ee | |
parent | c92e8236518944165c760bc2359db00eed78a514 [diff] |
Update employee_advance.py
diff --git a/erpnext/hr/doctype/employee_advance/employee_advance.py b/erpnext/hr/doctype/employee_advance/employee_advance.py index 7b7c0a7..7813da7 100644 --- a/erpnext/hr/doctype/employee_advance/employee_advance.py +++ b/erpnext/hr/doctype/employee_advance/employee_advance.py
@@ -72,7 +72,7 @@ AND ec.name = eca.parent AND ec.docstatus=1 AND eca.allocated_amount > 0 - """, self.name, debug=1)[0][0] or 0 + """, self.name)[0][0] or 0 frappe.db.set_value("Employee Advance", self.name, "claimed_amount", flt(claimed_amount)) self.reload()