minor fix in patch

This commit is contained in:
Nabin Hait 2014-01-31 17:25:09 +05:30
parent d7fb6dce89
commit dfae0ea570
2 changed files with 6 additions and 10 deletions

View File

@ -6,15 +6,11 @@ import webnotes
def execute():
# udpate sales cycle
webnotes.conn.sql("""update `tabSales Invoice` set taxes_and_charges=charge""")
webnotes.conn.sql("""update `tabSales Order` set taxes_and_charges=charge""")
webnotes.conn.sql("""update `tabQuotation` set taxes_and_charges=charge""")
webnotes.conn.sql("""update `tabDelivery Note` set taxes_and_charges=charge""")
for d in ['Sales Invoice', 'Sales Order', 'Quotation', 'Delivery Note']:
webnotes.conn.sql("""update `tab%s` set taxes_and_charges=charge""" % d)
# udpate purchase cycle
webnotes.conn.sql("""update `tabPurchase Invoice` set taxes_and_charges=purchase_other_charges""")
webnotes.conn.sql("""update `tabPurchase Order` set taxes_and_charges=purchase_other_charges""")
webnotes.conn.sql("""update `tabSupplier Quotation` set taxes_and_charges=purchase_other_charges""")
webnotes.conn.sql("""update `tabPurchase Receipt` set taxes_and_charges=purchase_other_charges""")
for d in ['Purchase Invoice', 'Purchase Order', 'Supplier Quotation', 'Purchase Receipt']:
webnotes.conn.sql("""update `tab%s` set taxes_and_charges=purchase_other_charges""" % d)
webnotes.conn.sql("""update `tabPurchase Taxes and Charges` set parentfield='other_charges'""")

View File

@ -2,7 +2,7 @@
{
"creation": "2013-05-24 19:29:08",
"docstatus": 0,
"modified": "2014-01-29 19:42:32",
"modified": "2014-01-31 19:42:32",
"modified_by": "Administrator",
"owner": "Administrator"
},