diff --git a/patches/october_2013/perpetual_inventory_stock_transfer_utility.py b/patches/october_2013/perpetual_inventory_stock_transfer_utility.py index c02656285f4..8cee29a824a 100644 --- a/patches/october_2013/perpetual_inventory_stock_transfer_utility.py +++ b/patches/october_2013/perpetual_inventory_stock_transfer_utility.py @@ -39,8 +39,8 @@ def execute(): if item_details.has_serial_no == "Yes": serial_no = "\n".join([d[0] for d in webnotes.conn.sql("""select name - from `tabSerial No` where item_code = %s and warehouse = %s""", - (bin.item_code, bin.warehouse))]) + from `tabSerial No` where item_code = %s and warehouse = %s + and status='Available'""", (bin.item_code, bin.warehouse))]) else: serial_no = None diff --git a/stock/doctype/stock_entry/stock_entry.py b/stock/doctype/stock_entry/stock_entry.py index a54f9bf05b9..8c4b97e0911 100644 --- a/stock/doctype/stock_entry/stock_entry.py +++ b/stock/doctype/stock_entry/stock_entry.py @@ -42,7 +42,7 @@ class DocType(StockController): self.validate_warehouse(pro_obj) self.validate_production_order(pro_obj) self.get_stock_and_rate() - self.validate_incoming_rate() + # self.validate_incoming_rate() self.validate_bom() self.validate_finished_goods() self.validate_return_reference_doc()