minor fix in patch
This commit is contained in:
parent
d7fb6dce89
commit
dfae0ea570
@ -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'""")
|
@ -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"
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user