From 0dc627d9b123e11f26665e03c25707c70a99da4b Mon Sep 17 00:00:00 2001 From: Akhilesh Darjee Date: Tue, 17 Sep 2013 13:52:22 +0530 Subject: [PATCH] [fix] [minor] price list patch fixed --- patches/june_2013/p03_buying_selling_for_price_list.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 7d222c8e8a..ead97ab2a8 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 @@ def execute(): 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