[fix] delete company transactions
This commit is contained in:
parent
a7aa2c70b5
commit
653f68d2e4
@ -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()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user