Fix error

This commit is contained in:
Shreya 2018-05-16 16:14:34 +05:30
parent a7559be5b2
commit fda15702bc

View File

@ -84,6 +84,7 @@ frappe.ui.form.on('Employee Advance', {
}, },
employee: function (frm) { employee: function (frm) {
if (frm.doc.employee) {
return frappe.call({ return frappe.call({
method: "erpnext.hr.doctype.employee_advance.employee_advance.get_due_advance_amount", method: "erpnext.hr.doctype.employee_advance.employee_advance.get_due_advance_amount",
args: { args: {
@ -95,4 +96,5 @@ frappe.ui.form.on('Employee Advance', {
} }
}); });
} }
}
}); });