batch list view fix:
diff --git a/erpnext/stock/doctype/batch/batch_list.js b/erpnext/stock/doctype/batch/batch_list.js
index c9a7e15..2138fa1 100644
--- a/erpnext/stock/doctype/batch/batch_list.js
+++ b/erpnext/stock/doctype/batch/batch_list.js
@@ -4,7 +4,9 @@
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", ""];
}
}
};