fix: retention filters (#24123)

* fix: retention filters

* fix: slider
This commit is contained in:
Afshan 2020-12-15 09:17:17 +05:30 committed by GitHub
parent e64718b2ae
commit 58e8e06ab7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,9 +4,13 @@
frappe.ui.form.on('Retention Bonus', {
setup: function(frm) {
frm.set_query("employee", function() {
if (!frm.doc.company) {
frappe.msgprint(__("Please Select Company First"));
}
return {
filters: {
"status": "Active"
"status": "Active",
"company": frm.doc.company
}
};
});