Merge pull request #44765 from ljain112/fix-pl-error

fix: 'str' object has no attribute 'get_sql'
This commit is contained in:
ruthra kumar
2024-12-18 14:12:29 +05:30
committed by GitHub

View File

@@ -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)