Merge pull request #14031 from shreyashah115/leave-balance

[Bug] Clear leave balance in Leave Application
This commit is contained in:
Saurabh 2018-05-15 11:11:49 +05:30 committed by GitHub
commit bf10d0f98b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -95,6 +95,9 @@ frappe.ui.form.on("Leave Application", {
if (!r.exc && r.message) {
frm.set_value('leave_balance', r.message);
}
else {
frm.set_value('leave_balance', "0");
}
}
});
}