Skip to content

Commit

Permalink
Merge pull request #44767 from frappe/mergify/bp/version-15/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 375b486 + 8eb8cc5 commit cd49774
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 @@ -529,13 +529,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 cd49774

Please sign in to comment.