From d37ac68f1b9a874762e26bdc8b1056e13ed25b8f Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Fri, 17 May 2013 13:17:01 +0530 Subject: [PATCH] [fixes] fixes in patch --- patches/may_2013/p01_conversion_factor_and_aii.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/may_2013/p01_conversion_factor_and_aii.py b/patches/may_2013/p01_conversion_factor_and_aii.py index 89d82e010d..2fd0d369a5 100644 --- a/patches/may_2013/p01_conversion_factor_and_aii.py +++ b/patches/may_2013/p01_conversion_factor_and_aii.py @@ -14,7 +14,7 @@ def execute(): webnotes.conn.sql("""update `tabPurchase Invoice Item` pi_item set conversion_factor = (select ifnull(if(conversion_factor=0, 1, conversion_factor), 1) from `tabUOM Conversion Detail` - where parent = pi_item.item_code and uom = pi_item.uom + where parent = pi_item.item_code and uom = pi_item.uom limit 1 ) where ifnull(conversion_factor, 0)=0""")