commit | 92bc962f60adb3967a2ef378511822d53ff2f4a8 | [log] [tgz] |
---|---|---|
author | ruthra kumar <ruthra@erpnext.com> | Mon Jan 01 14:46:15 2024 +0530 |
committer | ruthra kumar <ruthra@erpnext.com> | Mon Jan 01 15:30:35 2024 +0530 |
tree | 9df1a3507273be1221c540925cad68295f00851a | |
parent | 9983283f95753e7523cf30cc258df0572f88081d [diff] |
fix: undefined error in Budget Variance and Profitability report 'Budget' and 'Budget Account' doesn't have support for dynamic dimension. It only supports hard-coded ones - Project and Cost Center
diff --git a/erpnext/accounts/report/budget_variance_report/budget_variance_report.js b/erpnext/accounts/report/budget_variance_report/budget_variance_report.js index 15aa265..1508833 100644 --- a/erpnext/accounts/report/budget_variance_report/budget_variance_report.js +++ b/erpnext/accounts/report/budget_variance_report/budget_variance_report.js
@@ -88,7 +88,3 @@ return value; } } - -erpnext.dimension_filters.forEach((dimension) => { - frappe.query_reports["Budget Variance Report"].filters[4].options.push(dimension["document_type"]); -});
diff --git a/erpnext/accounts/report/profitability_analysis/profitability_analysis.js b/erpnext/accounts/report/profitability_analysis/profitability_analysis.js index b6bbd97..5dd3617 100644 --- a/erpnext/accounts/report/profitability_analysis/profitability_analysis.js +++ b/erpnext/accounts/report/profitability_analysis/profitability_analysis.js
@@ -117,8 +117,3 @@ "parent_field": "parent_account", "initial_depth": 3 } - -erpnext.dimension_filters.forEach((dimension) => { - frappe.query_reports["Profitability Analysis"].filters[1].options.push(dimension["document_type"]); -}); -