diff --git a/erpnext/manufacturing/doctype/production_order/production_order.js b/erpnext/manufacturing/doctype/production_order/production_order.js index 50f46ca4015..151854c30af 100644 --- a/erpnext/manufacturing/doctype/production_order/production_order.js +++ b/erpnext/manufacturing/doctype/production_order/production_order.js @@ -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()] ] } } diff --git a/erpnext/stock/doctype/stock_reconciliation/stock_reconciliation.js b/erpnext/stock/doctype/stock_reconciliation/stock_reconciliation.js index b394b71a227..f833a251be4 100644 --- a/erpnext/stock/doctype/stock_reconciliation/stock_reconciliation.js +++ b/erpnext/stock/doctype/stock_reconciliation/stock_reconciliation.js @@ -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()] ] } } \ No newline at end of file