fix(Asset Repair): Filter Cost Center and Project by Company
diff --git a/erpnext/assets/doctype/asset_repair/asset_repair.js b/erpnext/assets/doctype/asset_repair/asset_repair.js
index fdb8d0a..1e87722 100644
--- a/erpnext/assets/doctype/asset_repair/asset_repair.js
+++ b/erpnext/assets/doctype/asset_repair/asset_repair.js
@@ -30,3 +30,21 @@
}
}
});
+
+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
+ }
+ }
+}
\ No newline at end of file