2019-01-22 12:52:20 +00:00
|
|
|
from __future__ import unicode_literals
|
2015-05-06 13:15:47 +00:00
|
|
|
import frappe
|
|
|
|
|
|
|
|
|
|
|
|
def execute():
|
|
|
|
if frappe.db.table_exists("Sales Taxes and Charges Master"):
|
|
|
|
frappe.rename_doc("DocType", "Sales Taxes and Charges Master",
|
|
|
|
"Sales Taxes and Charges Template")
|
|
|
|
frappe.delete_doc("DocType", "Sales Taxes and Charges Master")
|
|
|
|
|
|
|
|
if frappe.db.table_exists("Purchase Taxes and Charges Master"):
|
|
|
|
frappe.rename_doc("DocType", "Purchase Taxes and Charges Master",
|
|
|
|
"Purchase Taxes and Charges Template")
|
|
|
|
frappe.delete_doc("DocType", "Purchase Taxes and Charges Master")
|