Merge pull request #37235 from niyazrazak/patch-13

fix: set route options to cost center
This commit is contained in:
Deepesh Garg 2023-10-02 10:54:02 +05:30 committed by GitHub
commit 964cd75f6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -112,7 +112,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