batch list view fix:

This commit is contained in:
Neil Trini Lasrado 2015-02-03 17:41:11 +05:30
parent d2b762d760
commit 75e0f0a153

View File

@ -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", ""];
}
}
};