From 068ef970320c51279bc6f7abab0b7ed9807a0b6f Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Thu, 19 Sep 2013 10:27:18 +0530 Subject: [PATCH] -am --- stock/doctype/item/item.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stock/doctype/item/item.py b/stock/doctype/item/item.py index 2c702a644ed..9b69e9a9789 100644 --- a/stock/doctype/item/item.py +++ b/stock/doctype/item/item.py @@ -77,8 +77,8 @@ class DocType(DocListController): bin_list = webnotes.conn.sql("select * from tabBin where item_code=%s", self.doc.item_code, as_dict=1) for bin in bin_list: - if bin.reserved_qty > 0 or bin.ordered_qty > 0 or bin.indented_qty > 0 \ - or bin.planned_qty > 0 and cstr(bin.stock_uom) != cstr(self.doc.stock_uom): + if (bin.reserved_qty > 0 or bin.ordered_qty > 0 or bin.indented_qty > 0 \ + or bin.planned_qty > 0) and cstr(bin.stock_uom) != cstr(self.doc.stock_uom): matched = False break