Skip to content

Commit

Permalink
Merge pull request #44765 from ljain112/fix-pl-error
Browse files Browse the repository at this point in the history
fix: 'str' object has no attribute 'get_sql'
  • Loading branch information
ruthra-kumar authored Dec 18, 2024
2 parents 54eedae + 9a43acb commit 7fed467
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 7fed467

Please sign in to comment.