diff --git a/erpnext/stock/doctype/batch/batch_list.js b/erpnext/stock/doctype/batch/batch_list.js index 644ef131399..a64aff903c3 100644 --- a/erpnext/stock/doctype/batch/batch_list.js +++ b/erpnext/stock/doctype/batch/batch_list.js @@ -5,12 +5,12 @@ frappe.listview_settings["Batch"] = { return [__("Disabled"), "gray", "disabled,=,1"]; } else if ( doc.expiry_date && - frappe.datetime.get_diff(doc.expiry_date, frappe.datetime.nowdate()) <= 0 + frappe.datetime.get_diff(doc.expiry_date, frappe.datetime.nowdate()) < 0 ) { return [ __("Expired"), "red", - "expiry_date,not in,|expiry_date,<=,Today|batch_qty,>,0|disabled,=,0", + "expiry_date,not in,|expiry_date,<,Today|batch_qty,>,0|disabled,=,0", ]; } else if (!doc.batch_qty) { return [__("Empty"), "gray", "batch_qty,=,0|disabled,=,0"];