Merge pull request #35943 from GursheenK/company-specific-proj-filtering

fix: project filtering based on company in P&L Report
This commit is contained in:
Deepesh Garg 2023-06-30 20:01:24 +05:30 committed by GitHub
commit be5cb1aa17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

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",

View File

@ -289,7 +289,8 @@
"fieldtype": "Link",
"label": "Company",
"options": "Company",
"remember_last_selected_value": 1
"remember_last_selected_value": 1,
"reqd": 1
},
{
"fieldname": "column_break_28",