diff --git a/erpnext/patches/4_0/map_charge_to_taxes_and_charges.py b/erpnext/patches/4_0/map_charge_to_taxes_and_charges.py index fc51c2a7945..6656ceebd7f 100644 --- a/erpnext/patches/4_0/map_charge_to_taxes_and_charges.py +++ b/erpnext/patches/4_0/map_charge_to_taxes_and_charges.py @@ -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'""") \ No newline at end of file diff --git a/erpnext/selling/doctype/quotation/quotation.txt b/erpnext/selling/doctype/quotation/quotation.txt index a8a1c079fb2..740bf691a9c 100644 --- a/erpnext/selling/doctype/quotation/quotation.txt +++ b/erpnext/selling/doctype/quotation/quotation.txt @@ -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" },