fix: Ignore doctypes on company transaction deleted (#23864)

This commit is contained in:
Deepesh Garg 2020-11-09 20:14:53 +05:30 committed by GitHub
parent bc64f5dfbb
commit 8cfb210dc4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,7 +27,8 @@ def delete_company_transactions(company_name):
if doctype not in ("Account", "Cost Center", "Warehouse", "Budget", if doctype not in ("Account", "Cost Center", "Warehouse", "Budget",
"Party Account", "Employee", "Sales Taxes and Charges Template", "Party Account", "Employee", "Sales Taxes and Charges Template",
"Purchase Taxes and Charges Template", "POS Profile", "BOM", "Purchase Taxes and Charges Template", "POS Profile", "BOM",
"Company", "Bank Account"): "Company", "Bank Account", "Item Tax Template", "Mode Of Payment",
"Item Default"):
delete_for_doctype(doctype, company_name) delete_for_doctype(doctype, company_name)
# reset company values # reset company values