fix: cost center filter according to the company in project

This commit is contained in:
Nihantra C. Patel
2024-05-10 12:31:15 +05:30
committed by GitHub
parent 08899d05fb
commit 249e8264dd

View File

@@ -55,6 +55,14 @@ frappe.ui.form.on("Project", {
filters: filters,
};
});
frm.set_query("cost_center", () => {
return {
filters: {
company: frm.doc.company,
}
}
});
},
refresh: function (frm) {