From 1d18a3b1a38f4fb0c36761133d29896ae0a5223d Mon Sep 17 00:00:00 2001 From: ruthra kumar Date: Thu, 3 Jul 2025 15:18:53 +0530 Subject: [PATCH] chore: drop unused utility method (cherry picked from commit 52c0df24e3caf58ac81e87dc91930a394983c041) --- .../report/accounts_receivable/accounts_receivable.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/erpnext/accounts/report/accounts_receivable/accounts_receivable.py b/erpnext/accounts/report/accounts_receivable/accounts_receivable.py index 454c7e1fb20..8d7e1e270e0 100644 --- a/erpnext/accounts/report/accounts_receivable/accounts_receivable.py +++ b/erpnext/accounts/report/accounts_receivable/accounts_receivable.py @@ -1443,17 +1443,8 @@ class InitSQLProceduresForAR: end; """ - def get_existing_procedures(self): - procedures = frappe.db.sql( - f"select routine_name from information_schema.routines where routine_type in ('FUNCTION','PROCEDURE') and routine_schema='{frappe.conf.db_name}';" - ) - if procedures: - # normalize - procedures = [x[0] for x in procedures] - return procedures - def __init__(self): - existing_procedures = self.get_existing_procedures() + existing_procedures = frappe.db.get_routines() if self.genkey_function_name not in existing_procedures: frappe.db.sql(self.genkey_function_sql)