Skip to content

Commit

Permalink
fix: incorrect filter for BOM (backport #44954) (#44956)
Browse files Browse the repository at this point in the history
fix: incorrect filter for BOM (#44954)

(cherry picked from commit 9fdeb5f)

Co-authored-by: rohitwaghchaure <rohitw1991@gmail.com>
  • Loading branch information
mergify[bot] and rohitwaghchaure authored Dec 30, 2024
1 parent c33e075 commit 9853bd9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions erpnext/manufacturing/doctype/bom/bom_list.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ frappe.listview_settings["BOM"] = {
add_fields: ["is_active", "is_default", "total_cost", "has_variants"],
get_indicator: function (doc) {
if (doc.is_active && doc.has_variants) {
return [__("Template"), "orange", "has_variants,=,Yes"];
return [__("Template"), "orange", "has_variants,=,1"];
} else if (doc.is_default) {
return [__("Default"), "green", "is_default,=,Yes"];
return [__("Default"), "green", "is_default,=,1"];
} else if (doc.is_active) {
return [__("Active"), "blue", "is_active,=,Yes"];
return [__("Active"), "blue", "is_active,=,1"];
} else if (!doc.is_active) {
return [__("Not active"), "gray", "is_active,=,No"];
return [__("Not active"), "gray", "is_active,=,0"];
}
},
};
Expand Down

0 comments on commit 9853bd9

Please sign in to comment.