Skip to content

Commit 8b810f5

Browse files
ljain112mergify[bot]
authored andcommitted
fix: 'str' object has no attribute 'get_sql'
(cherry picked from commit 9a43acb)
1 parent 3ed7f76 commit 8b810f5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

erpnext/accounts/report/financial_statements.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -529,13 +529,12 @@ def get_accounting_entries(
529529

530530
from frappe.desk.reportview import build_match_conditions
531531

532+
query, params = query.walk()
532533
match_conditions = build_match_conditions(doctype)
533534

534535
if match_conditions:
535536
query += "and" + match_conditions
536537

537-
query, params = query.walk()
538-
539538
return frappe.db.sql(query, params, as_dict=True)
540539

541540

0 commit comments

Comments
 (0)