fix: set route to cost center

cost center mapping is not correct
This commit is contained in:
NIYAZ RAZAK 2023-09-25 22:15:08 +03:00 committed by GitHub
parent a444906093
commit 5e4b73918d
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