mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 10:49:09 +00:00
fixes in renaming account, supplier, customer; fixes in accounts browser; fixes in customer address contact fetching in opportunity
This commit is contained in:
@@ -173,5 +173,11 @@ class DocType(TransactionBase):
|
||||
for rec in update_fields:
|
||||
sql("update `tab%s` set supplier_name = '%s' where %s = '%s'" %(rec[0],newdn,rec[1],olddn))
|
||||
|
||||
old_account = webnotes.conn.get_value("Account", {"master_type": "Supplier",
|
||||
"master_name": olddn})
|
||||
|
||||
#update master_name in doctype account
|
||||
sql("update `tabAccount` set master_name = '%s', master_type = 'Supplier' where master_name = '%s'" %(newdn,olddn))
|
||||
|
||||
from webnotes.model.rename_doc import rename_doc
|
||||
rename_doc("Account", old_account, newdn)
|
||||
|
||||
Reference in New Issue
Block a user