From 4d47b007aa49d528fc1b29fd386d258a837b4d33 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Fri, 23 Aug 2013 16:54:31 +0530 Subject: [PATCH] [fix] [minor] fix in re-order query --- stock/utils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/stock/utils.py b/stock/utils.py index 848783b2c6..5376342979 100644 --- a/stock/utils.py +++ b/stock/utils.py @@ -193,8 +193,7 @@ def reorder_item(): and exists (select name from `tabItem` where `tabItem`.name = `tabBin`.item_code and is_stock_item='Yes' and (is_purchase_item='Yes' or is_sub_contracted_item='Yes') and - (ifnull(end_of_life, '')='') or end_of_life > now())""", - as_dict=True) + (ifnull(end_of_life, '')='' or end_of_life > now()))""", as_dict=True) for bin in bin_list: #check if re-order is required item_reorder = webnotes.conn.get("Item Reorder",