From c330a49e9dc937da619b85a040aef9cd92a51faf Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Thu, 30 Jul 2015 16:45:58 +0530 Subject: [PATCH] [hotfix] item search in production order --- .../manufacturing/doctype/production_order/production_order.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/manufacturing/doctype/production_order/production_order.js b/erpnext/manufacturing/doctype/production_order/production_order.js index 60b4918f9a..8202f43759 100644 --- a/erpnext/manufacturing/doctype/production_order/production_order.js +++ b/erpnext/manufacturing/doctype/production_order/production_order.js @@ -250,7 +250,7 @@ cur_frm.fields_dict['production_item'].get_query = function(doc) { return { filters:[ ['Item', 'is_pro_applicable', '=', 1], - ['Item', 'has_variants', '=', 0] + ['Item', 'has_variants', '=', 0], ['Item', 'end_of_life', '>=', frappe.datetime.nowdate()] ] }