From 44851212551b48245b656633588704e31e89d437 Mon Sep 17 00:00:00 2001 From: Deepesh Garg Date: Sun, 24 Mar 2024 19:02:38 +0530 Subject: [PATCH] fix: Add default finance book check in P&L statement (cherry picked from commit 5be3417fdf09327f9ce2e5b5cff1928a96c0c07b) --- .../profit_and_loss_statement/profit_and_loss_statement.js | 7 +++++++ 1 file changed, 7 insertions(+) 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 c89a86c37b60..521625bbcd40 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 @@ -26,3 +26,10 @@ frappe.require("assets/erpnext/js/financial_statements.js", function () { default: 1, }); }); + +frappe.query_reports["Profit and Loss Statement"]["filters"].push({ + fieldname: "include_default_book_entries", + label: __("Include Default FB Entries"), + fieldtype: "Check", + default: 1, +});