mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-03 12:19:12 +00:00
* filter employee drop down by company name * codacy fix
This commit is contained in:
@@ -23,6 +23,14 @@ frappe.ui.form.on('Employee Loan', {
|
|||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
frm.set_query("employee", function() {
|
||||||
|
return {
|
||||||
|
"filters": {
|
||||||
|
"company": frm.doc.company,
|
||||||
|
}
|
||||||
|
};
|
||||||
|
});
|
||||||
|
|
||||||
$.each(["payment_account", "employee_loan_account"], function (i, field) {
|
$.each(["payment_account", "employee_loan_account"], function (i, field) {
|
||||||
frm.set_query(field, function () {
|
frm.set_query(field, function () {
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user