fix: broken route option in Profitability report

This commit is contained in:
ruthra kumar
2024-02-08 13:22:55 +05:30
parent ae4c90766a
commit f79e0d1e37

View File

@@ -105,7 +105,7 @@ frappe.require("assets/erpnext/js/financial_statements.js", function() {
"to_fiscal_year": data.fiscal_year
};
if(data.based_on == 'cost_center'){
if(data.based_on == 'Cost Center'){
frappe.route_options["cost_center"] = data.account
} else {
frappe.route_options["project"] = data.account