now_datetime changed to nowdate
This commit is contained in:
parent
21647974c4
commit
f965c5d203
@ -263,7 +263,7 @@ cur_frm.fields_dict['production_item'].get_query = function(doc) {
|
||||
filters:[
|
||||
['Item', 'is_pro_applicable', '=', 'Yes'],
|
||||
['Item', 'has_variants', '=', 'No'],
|
||||
['Item', 'end_of_life', '>', frappe.datetime.now_datetime()]
|
||||
['Item', 'end_of_life', '>=', frappe.datetime.nowdate()]
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -102,7 +102,7 @@ cur_frm.cscript.posting_date = function(doc, cdt, cdn){
|
||||
cur_frm.fields_dict.items.grid.get_field('item_code').get_query = function(doc, cdt, cdn) {
|
||||
return {
|
||||
filters:[
|
||||
['Item', 'end_of_life', '>', frappe.datetime.now_datetime()]
|
||||
['Item', 'end_of_life', '>=', frappe.datetime.nowdate()]
|
||||
]
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user