fix(General Ledger): Filter Cost Center drop-down list by Company

This commit is contained in:
GangaManoj 2021-06-14 16:41:56 +05:30
parent d689068d82
commit 27ec51f021

View File

@ -135,7 +135,9 @@ frappe.query_reports["General Ledger"] = {
"label": __("Cost Center"),
"fieldtype": "MultiSelectList",
get_data: function(txt) {
return frappe.db.get_link_options('Cost Center', txt);
return frappe.db.get_link_options('Cost Center', txt, {
company: frappe.query_report.get_filter_value("company")
});
}
},
{