From f965c5d20327e0e580a9deb248bb681702734ff3 Mon Sep 17 00:00:00 2001 From: Neil Trini Lasrado Date: Thu, 23 Jul 2015 16:56:27 +0530 Subject: [PATCH] now_datetime changed to nowdate --- .../manufacturing/doctype/production_order/production_order.js | 2 +- .../stock/doctype/stock_reconciliation/stock_reconciliation.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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