[fix] [minor] price list patch fixed
diff --git a/patches/june_2013/p03_buying_selling_for_price_list.py b/patches/june_2013/p03_buying_selling_for_price_list.py
index 7d222c8..ead97ab 100644
--- a/patches/june_2013/p03_buying_selling_for_price_list.py
+++ b/patches/june_2013/p03_buying_selling_for_price_list.py
@@ -22,6 +22,7 @@
webnotes.conn.set_value("Price List", price_list, "buying_or_selling", buying_or_selling)
except MySQLdb.OperationalError, e:
if e.args[0] == 1054:
- webnotes.conn.sql("""update `tabItem Price` set buying_or_selling='Selling' """)
+ webnotes.conn.sql("""update `tabPrice List` set buying_or_selling='Selling'
+ where ifnull(buying_or_selling, '')='' """)
else:
raise e
\ No newline at end of file