From 6c46692cc4b90652b0db4b7d8de9218545aa3b8a Mon Sep 17 00:00:00 2001 From: Abdeali Chharchhodawala <99460106+Abdeali099@users.noreply.github.com> Date: Wed, 3 Jun 2026 13:08:45 +0530 Subject: [PATCH] fix: add custom dimensions filters in Gross and Net profit report (#55110) --- .../gross_and_net_profit_report.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/erpnext/accounts/report/gross_and_net_profit_report/gross_and_net_profit_report.js b/erpnext/accounts/report/gross_and_net_profit_report/gross_and_net_profit_report.js index 2448eef9072..78eb8e624fc 100644 --- a/erpnext/accounts/report/gross_and_net_profit_report/gross_and_net_profit_report.js +++ b/erpnext/accounts/report/gross_and_net_profit_report/gross_and_net_profit_report.js @@ -1,9 +1,13 @@ // Copyright (c) 2016, Frappe Technologies Pvt. Ltd. and contributors // For license information, please see license.txt -frappe.query_reports["Gross and Net Profit Report"] = $.extend({}, erpnext.financial_statements); +const GNP_REPORT = "Gross and Net Profit Report"; -frappe.query_reports["Gross and Net Profit Report"]["filters"].push({ +frappe.query_reports[GNP_REPORT] = $.extend({}, erpnext.financial_statements); + +erpnext.utils.add_dimensions(GNP_REPORT, 10); + +frappe.query_reports[GNP_REPORT]["filters"].push({ fieldname: "accumulated_values", label: __("Accumulated Values"), fieldtype: "Check",