From ec50be123ea7cc7839ec5e3a9c88c4d2884c9df5 Mon Sep 17 00:00:00 2001 From: ljain112 Date: Wed, 18 Dec 2024 13:47:37 +0530 Subject: [PATCH] fix: 'str' object has no attribute 'get_sql' --- erpnext/accounts/report/financial_statements.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/erpnext/accounts/report/financial_statements.py b/erpnext/accounts/report/financial_statements.py index 7d05b1e2dd0..47bf8487f12 100644 --- a/erpnext/accounts/report/financial_statements.py +++ b/erpnext/accounts/report/financial_statements.py @@ -549,13 +549,12 @@ def get_accounting_entries( from frappe.desk.reportview import build_match_conditions + query, params = query.walk() match_conditions = build_match_conditions(doctype) if match_conditions: query += "and" + match_conditions - query, params = query.walk() - return frappe.db.sql(query, params, as_dict=True) -- GitLab