mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-29 14:48:26 +00:00
Merge pull request #4613 from nabinhait/fixes
[fix] Item query and exchange rate
This commit is contained in:
@@ -253,11 +253,10 @@ cur_frm.cscript['Update Finished Goods'] = function() {
|
||||
|
||||
cur_frm.fields_dict['production_item'].get_query = function(doc) {
|
||||
return {
|
||||
filters:[
|
||||
['Item', 'is_pro_applicable', '=', 1],
|
||||
['Item', 'has_variants', '=', 0],
|
||||
['Item', 'end_of_life', '>=', frappe.datetime.nowdate()]
|
||||
]
|
||||
query: "erpnext.controllers.queries.item_query",
|
||||
filters:{
|
||||
'is_pro_applicable': 1,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user