mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-11 14:29:12 +00:00
now_datetime changed to nowdate
This commit is contained in:
@@ -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()]
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user