old_contents: # Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
  # License: GNU General Public License v3. See license.txt
  
  from __future__ import unicode_literals
  import frappe
  
  def execute():
  	# udpate sales cycle
  	for d in ['Sales Invoice', 'Sales Order', 'Quotation', 'Delivery Note']:
  		print d, 'one'
  		frappe.conn.sql("""update `tab%s` set taxes_and_charges=charge""" % d)
  
  	# udpate purchase cycle
  	for d in ['Purchase Invoice', 'Purchase Order', 'Supplier Quotation', 'Purchase Receipt']:
  		print d, 'two'
  		frappe.conn.sql("""update `tab%s` set taxes_and_charges=purchase_other_charges""" % d)
  	
  	frappe.conn.sql("""update `tabPurchase Taxes and Charges` set parentfield='other_charges'""")
  
new_contents: # Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
  # License: GNU General Public License v3. See license.txt
  
  from __future__ import unicode_literals
  import frappe
  
  def execute():
  	# udpate sales cycle
  	for d in ['Sales Invoice', 'Sales Order', 'Quotation', 'Delivery Note']:
  		frappe.conn.sql("""update `tab%s` set taxes_and_charges=charge""" % d)
  
  	# udpate purchase cycle
  	for d in ['Purchase Invoice', 'Purchase Order', 'Supplier Quotation', 'Purchase Receipt']:
  		frappe.conn.sql("""update `tab%s` set taxes_and_charges=purchase_other_charges""" % d)
  	
  	frappe.conn.sql("""update `tabPurchase Taxes and Charges` set parentfield='other_charges'""")
  
subject: remove print in patch, booboo