Skip to content

Commit

Permalink
fix: 'str' object has no attribute 'get_sql'
Browse files Browse the repository at this point in the history
(cherry picked from commit 9a43acb)
  • Loading branch information
ljain112 authored and mergify[bot] committed Dec 18, 2024
1 parent 3ed7f76 commit 8b810f5
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 8b810f5

Please sign in to comment.