Skip to content

Commit

Permalink
fix: undefined error in Budget Variance and Profitability report
Browse files Browse the repository at this point in the history
'Budget' and 'Budget Account' doesn't have support for dynamic
dimension. It only supports hard-coded ones -  Project and Cost Center

(cherry picked from commit 92bc962)
  • Loading branch information
ruthra-kumar authored and mergify[bot] committed Jan 1, 2024
1 parent 7539623 commit 9fdf5c8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,3 @@ frappe.query_reports["Budget Variance Report"] = {
return value;
}
}

erpnext.dimension_filters.forEach((dimension) => {
frappe.query_reports["Budget Variance Report"].filters[4].options.push(dimension["document_type"]);
});
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,3 @@ frappe.query_reports["Profitability Analysis"] = {
"parent_field": "parent_account",
"initial_depth": 3
}

erpnext.dimension_filters.forEach((dimension) => {
frappe.query_reports["Profitability Analysis"].filters[1].options.push(dimension["document_type"]);
});

0 comments on commit 9fdf5c8

Please sign in to comment.