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
(cherry picked from commit 92bc962f60)
# Conflicts:
# erpnext/accounts/report/profitability_analysis/profitability_analysis.js
This commit is contained in:
@@ -88,7 +88,3 @@ frappe.query_reports["Budget Variance Report"] = {
|
|||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
erpnext.dimension_filters.forEach((dimension) => {
|
|
||||||
frappe.query_reports["Budget Variance Report"].filters[4].options.push(dimension["document_type"]);
|
|
||||||
});
|
|
||||||
|
|||||||
@@ -119,8 +119,18 @@ frappe.require("assets/erpnext/js/financial_statements.js", function() {
|
|||||||
"initial_depth": 3
|
"initial_depth": 3
|
||||||
}
|
}
|
||||||
|
|
||||||
|
<<<<<<< HEAD
|
||||||
erpnext.dimension_filters.forEach((dimension) => {
|
erpnext.dimension_filters.forEach((dimension) => {
|
||||||
frappe.query_reports["Profitability Analysis"].filters[1].options.push(dimension["document_type"]);
|
frappe.query_reports["Profitability Analysis"].filters[1].options.push(dimension["document_type"]);
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
=======
|
||||||
|
frappe.set_route("query-report", "Profit and Loss Statement");
|
||||||
|
},
|
||||||
|
"tree": true,
|
||||||
|
"name_field": "account",
|
||||||
|
"parent_field": "parent_account",
|
||||||
|
"initial_depth": 3
|
||||||
|
}
|
||||||
|
>>>>>>> 92bc962f60 (fix: undefined error in Budget Variance and Profitability report)
|
||||||
|
|||||||
Reference in New Issue
Block a user