refactor!: remove whitelisted method make_bank_account (#49001)

This commit is contained in:
Raffael Meyer
2025-08-22 18:15:19 +02:00
committed by GitHub
parent 677a5e829e
commit 34584cd8f8

View File

@@ -118,15 +118,6 @@ class BankAccount(Document):
)
@frappe.whitelist()
def make_bank_account(doctype, docname):
doc = frappe.new_doc("Bank Account")
doc.party_type = doctype
doc.party = docname
return doc
def get_party_bank_account(party_type, party):
return frappe.db.get_value(
"Bank Account",