Skip to content

Commit

Permalink
Merge pull request #44768 from frappe/mergify/bp/version-14/pr-44765
Browse files Browse the repository at this point in the history
fix: 'str' object has no attribute 'get_sql' (backport #44765)
  • Loading branch information
ruthra-kumar authored Dec 18, 2024
2 parents d241862 + bd20ff5 commit f8f2c39
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions erpnext/accounts/report/financial_statements.py
Original file line number Diff line number Diff line change
Expand Up @@ -528,13 +528,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)


Expand Down

0 comments on commit f8f2c39

Please sign in to comment.