mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-04 12:49:10 +00:00
Co-authored-by: Abdeali Chharchhodawala <99460106+Abdeali099@users.noreply.github.com> fix: add custom dimensions filters in Gross and Net profit report (#55110)
This commit is contained in:
@@ -1,9 +1,13 @@
|
|||||||
// Copyright (c) 2016, Frappe Technologies Pvt. Ltd. and contributors
|
// Copyright (c) 2016, Frappe Technologies Pvt. Ltd. and contributors
|
||||||
// For license information, please see license.txt
|
// 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",
|
fieldname: "accumulated_values",
|
||||||
label: __("Accumulated Values"),
|
label: __("Accumulated Values"),
|
||||||
fieldtype: "Check",
|
fieldtype: "Check",
|
||||||
|
|||||||
Reference in New Issue
Block a user