File "apps/frappe/frappe/app.py", line 95, in application
response = frappe.api.handle()
File "apps/frappe/frappe/api.py", line 54, in handle
return frappe.handler.handle()
File "apps/frappe/frappe/handler.py", line 47, in handle
data = execute_cmd(cmd)
File "apps/frappe/frappe/handler.py", line 85, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File "apps/frappe/frappe/__init__.py", line 1622, in call
return fn(*args, **newargs)
File "apps/banking/banking/klarna_kosma_integration/doctype/bank_reconciliation_tool_beta/bank_reconciliation_tool_beta.py", line 339, in get_linked_payments
matching = check_matching(
File "apps/banking/banking/klarna_kosma_integration/doctype/bank_reconciliation_tool_beta/bank_reconciliation_tool_beta.py", line 406, in check_matching
get_loan_vouchers(bank_account, transaction, document_types, filters)
File "apps/banking/banking/klarna_kosma_integration/doctype/bank_reconciliation_tool_beta/bank_reconciliation_tool_beta.py", line 544, in get_loan_vouchers
vouchers.extend(get_ld_matching_query(bank_account, exact_match, filters))
File "apps/banking/banking/klarna_kosma_integration/doctype/bank_reconciliation_tool_beta/bank_reconciliation_tool_beta.py", line 656, in get_ld_matching_query
vouchers = query.run(as_dict=True)
File "apps/frappe/frappe/query_builder/utils.py", line 87, in execute_query
result = frappe.db.sql(query, params, *args, **kwargs) # nosemgrep
File "apps/frappe/frappe/database/database.py", line 220, in sql
self._cursor.execute(query, values)
File "env/lib/python3.10/site-packages/pymysql/cursors.py", line 156, in execute
query = self.mogrify(query, args)
File "env/lib/python3.10/site-packages/pymysql/cursors.py", line 134, in mogrify
query = query % self._escape_args(args, conn)
KeyError: 'date'
The error occurs immediately after activating the "Loan Disbursement" filter:
The error occurs immediately after activating the "Loan Disbursement" filter: