fix: incorrect sql error if account name has '%'
(cherry picked from commit 641c3de0caf3dd542a353edd78c8c18f686b8cae)
This commit is contained in:
parent
3f5b1bcd05
commit
b43f70325c
@ -376,6 +376,10 @@ class PartyLedgerSummaryReport(object):
|
||||
if not income_or_expense_accounts:
|
||||
# prevent empty 'in' condition
|
||||
income_or_expense_accounts.append("")
|
||||
else:
|
||||
# escape '%' in account name
|
||||
# ignoring frappe.db.escape as it replaces single quotes with double quotes
|
||||
income_or_expense_accounts = [x.replace("%", "%%") for x in income_or_expense_accounts]
|
||||
|
||||
accounts_query = (
|
||||
qb.from_(gl)
|
||||
|
Loading…
x
Reference in New Issue
Block a user