From 5d7e69d8cf44165e3a6145d1be1a1b28cd676f1e Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Wed, 3 Jun 2026 14:20:19 +0530 Subject: [PATCH] fix: add custom dimensions filters in Gross and Net profit report (backport #55110) (#55584) Co-authored-by: Abdeali Chharchhodawala <99460106+Abdeali099@users.noreply.github.com> 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",