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

This commit is contained in:
GangaManoj 2021-06-14 16:42:27 +05:30
parent 27ec51f021
commit 75b30efb05

View File

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