now_datetime changed to nowdate

This commit is contained in:
Neil Trini Lasrado 2015-07-23 16:56:27 +05:30
parent 21647974c4
commit f965c5d203
2 changed files with 2 additions and 2 deletions

View File

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

View File

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