mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-15 11:09:17 +00:00
Merge pull request #4970 from nabinhait/fix77
[fix] delete company transactions
This commit is contained in:
@@ -27,10 +27,6 @@ def delete_company_transactions(company_name):
|
|||||||
"Purchase Taxes and Charges Template", "POS Profile", 'BOM'):
|
"Purchase Taxes and Charges Template", "POS Profile", 'BOM'):
|
||||||
delete_for_doctype(doctype, company_name)
|
delete_for_doctype(doctype, company_name)
|
||||||
|
|
||||||
else:
|
|
||||||
# un-set company
|
|
||||||
frappe.db.sql('update `tab{0}` set company="" where company=%s'.format(doctype), company_name)
|
|
||||||
|
|
||||||
# Clear notification counts
|
# Clear notification counts
|
||||||
clear_notifications()
|
clear_notifications()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user