[fix] Status of Item (#11326)
This commit is contained in:
parent
c65f1d7745
commit
6a4e230cde
@ -4,12 +4,12 @@ frappe.listview_settings['Item'] = {
|
||||
filters: [["disabled", "=", "0"]],
|
||||
|
||||
get_indicator: function(doc) {
|
||||
if(doc.total_projected_qty < 0) {
|
||||
return [__("Shortage"), "red", "total_projected_qty,<,0"];
|
||||
} else if (doc.disabled) {
|
||||
if (doc.disabled) {
|
||||
return [__("Disabled"), "grey", "disabled,=,Yes"];
|
||||
} else if (doc.end_of_life && doc.end_of_life < frappe.datetime.get_today()) {
|
||||
return [__("Expired"), "grey", "end_of_life,<,Today"];
|
||||
} else if(doc.total_projected_qty < 0) {
|
||||
return [__("Shortage"), "red", "total_projected_qty,<,0"];
|
||||
} else if (doc.has_variants) {
|
||||
return [__("Template"), "orange", "has_variants,=,Yes"];
|
||||
} else if (doc.variant_of) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user