commit | 5e4b73918db809afe0c3880a63537d8e4743f3bf | [log] [tgz] |
---|---|---|
author | NIYAZ RAZAK <76736615+niyazrazak@users.noreply.github.com> | Mon Sep 25 22:15:08 2023 +0300 |
committer | GitHub <noreply@github.com> | Mon Sep 25 22:15:08 2023 +0300 |
tree | 7cafc3f2e81c4b20fba721231d8e9bcde6795cdf | |
parent | a4449060934ba35f1f0164009974f6b6734a1e94 [diff] |
fix: set route to cost center cost center mapping is not correct
diff --git a/erpnext/accounts/report/profitability_analysis/profitability_analysis.js b/erpnext/accounts/report/profitability_analysis/profitability_analysis.js index c9accef..ebd0ec1 100644 --- a/erpnext/accounts/report/profitability_analysis/profitability_analysis.js +++ b/erpnext/accounts/report/profitability_analysis/profitability_analysis.js
@@ -112,7 +112,7 @@ "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