hi all ,
i am using this script to get inactive employees in company
it works well when using administrator account
but when using any other accounts it append current username to generated list
frappe.ui.form.on("End Of Service Gratuity", "onload", function(frm) {
cur_frm.set_query("for_emp", function() {
return {
"filters": {
"status": "Left"
}
};
});
});