From ce252a0d45918f9cb03626bad9521e92df2be260 Mon Sep 17 00:00:00 2001 From: Gursheen Anand Date: Fri, 30 Jun 2023 12:42:19 +0530 Subject: [PATCH] fix: show projects with no company value set --- .../profit_and_loss_statement/profit_and_loss_statement.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/accounts/report/profit_and_loss_statement/profit_and_loss_statement.js b/erpnext/accounts/report/profit_and_loss_statement/profit_and_loss_statement.js index 298d83894c..6fda7b5220 100644 --- a/erpnext/accounts/report/profit_and_loss_statement/profit_and_loss_statement.js +++ b/erpnext/accounts/report/profit_and_loss_statement/profit_and_loss_statement.js @@ -15,7 +15,7 @@ frappe.require("assets/erpnext/js/financial_statements.js", function() { "fieldtype": "MultiSelectList", get_data: function(txt) { return frappe.db.get_link_options('Project', txt, { - company: frappe.query_report.get_filter_value("company") + company: ["in", [frappe.query_report.get_filter_value("company"), ""]], }); }, },