mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-15 11:09:17 +00:00
fix(Asset Repair): Filter Cost Center and Project by Company
This commit is contained in:
@@ -30,3 +30,21 @@ frappe.ui.form.on('Asset Repair', {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
cur_frm.fields_dict.cost_center.get_query = function(doc) {
|
||||||
|
return{
|
||||||
|
filters:{
|
||||||
|
'is_group': 0,
|
||||||
|
'company': doc.company
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
cur_frm.fields_dict.project.get_query = function(doc) {
|
||||||
|
return{
|
||||||
|
filters:{
|
||||||
|
'is_group': 0,
|
||||||
|
'company': doc.company
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user