fix: project filtering in P&L Report

This commit is contained in:
Gursheen Anand 2023-06-30 12:11:23 +05:30
parent 1d1103f39c
commit 904ca746a6

View File

@ -14,8 +14,10 @@ frappe.require("assets/erpnext/js/financial_statements.js", function() {
"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")
});
},
},
{
"fieldname": "include_default_book_entries",