Uncaught TypeError: Cannot read property 'company' of undefined

HI

I am having an issue in loading General Ledger.
When I click a row in TRIAL BALANCE, nothing happens, it doesn’t move to its GENERAL LEDGER.
Console shows the following error.
Uncaught TypeError: Cannot read property 'company' of undefined


The 'query_report_filters_by_name' s properties are not getting values…

Error in general_ledger.js, financial_statement.js etc

frappe.route_options = {
			"account": data.account,
			"company": frappe.query_report_filters_by_name.company.get_value(),
			"from_date": data.from_date || data.year_start_date,
			"to_date": data.to_date || data.year_end_date
		};

How can I make it works? Please help me anybody…

1 Like

Change ‘query_report_filters_by_name’ to ‘query_report.filters_by_name’. It will work.

1 Like