From 75e0f0a15314c73ecc458b040f0d2945ce85900e Mon Sep 17 00:00:00 2001 From: Neil Trini Lasrado Date: Tue, 3 Feb 2015 17:41:11 +0530 Subject: [PATCH] batch list view fix: --- erpnext/stock/doctype/batch/batch_list.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/erpnext/stock/doctype/batch/batch_list.js b/erpnext/stock/doctype/batch/batch_list.js index c9a7e1516a..2138fa1da7 100644 --- a/erpnext/stock/doctype/batch/batch_list.js +++ b/erpnext/stock/doctype/batch/batch_list.js @@ -4,7 +4,9 @@ frappe.listview_settings['Batch'] = { if(doc.expiry_date && frappe.datetime.get_diff(doc.expiry_date) <= 0) { return [__("Expired"), "red", "expiry_date,>=,Today"] } else if(doc.expiry_date) { - return [__("Not Expired"), "darkgrey", "expiry_date,<,Today"] + return [__("Not Expired"), "green", "expiry_date,<,Today"] + } else { + return ["Not Set", "darkgrey", ""]; } } };