Merge pull request #24670 from deepeshgarg007/transaction_delete_fix_v12

fix: Do not delete GST Accounts from GST Settings on clearing transactions from Company Master
This commit is contained in:
Deepesh Garg
2021-02-19 10:58:13 +05:30
committed by GitHub

View File

@@ -26,8 +26,9 @@ def delete_company_transactions(company_name):
tabDocField where fieldtype='Link' and options='Company'"""): tabDocField where fieldtype='Link' and options='Company'"""):
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",
"Item default", "Customer", "Supplier"): "Company", "Bank Account", "Item Tax Template", "Mode Of Payment",
"Item Default", "Customer", "Supplier", "GST Account"):
delete_for_doctype(doctype, company_name) delete_for_doctype(doctype, company_name)
# reset company values # reset company values