Merge pull request #3757 from nabinhait/fix1

[hotfix] item search in production order
This commit is contained in:
Nabin Hait 2015-07-30 16:46:27 +05:30
commit 88d8c164f7

View File

@ -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()]
]
}