mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 18:59:08 +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:[
|
filters:[
|
||||||
['Item', 'is_pro_applicable', '=', 'Yes'],
|
['Item', 'is_pro_applicable', '=', 'Yes'],
|
||||||
['Item', 'has_variants', '=', 'No'],
|
['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) {
|
cur_frm.fields_dict.items.grid.get_field('item_code').get_query = function(doc, cdt, cdn) {
|
||||||
return {
|
return {
|
||||||
filters:[
|
filters:[
|
||||||
['Item', 'end_of_life', '>', frappe.datetime.now_datetime()]
|
['Item', 'end_of_life', '>=', frappe.datetime.nowdate()]
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user