mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 03:09:09 +00:00
fix: Bank Account patch (#21124)
This commit is contained in:
@@ -4,6 +4,7 @@ import frappe
|
|||||||
def execute():
|
def execute():
|
||||||
frappe.reload_doc('accounts', 'doctype', 'bank', force=1)
|
frappe.reload_doc('accounts', 'doctype', 'bank', force=1)
|
||||||
|
|
||||||
|
if frappe.db.table_exists('Bank') and frappe.db.table_exists('Bank Account'):
|
||||||
frappe.db.sql("""
|
frappe.db.sql("""
|
||||||
UPDATE `tabBank` b, `tabBank Account` ba
|
UPDATE `tabBank` b, `tabBank Account` ba
|
||||||
SET b.swift_number = ba.swift_number, b.branch_code = ba.branch_code
|
SET b.swift_number = ba.swift_number, b.branch_code = ba.branch_code
|
||||||
|
|||||||
Reference in New Issue
Block a user