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