mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 00:44:45 +00:00
refactor!: remove whitelisted method make_bank_account (#49001)
This commit is contained in:
@@ -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):
|
def get_party_bank_account(party_type, party):
|
||||||
return frappe.db.get_value(
|
return frappe.db.get_value(
|
||||||
"Bank Account",
|
"Bank Account",
|
||||||
|
|||||||
Reference in New Issue
Block a user