Skip to content

Commit 9853bd9

Browse files
fix: incorrect filter for BOM (backport frappe#44954) (frappe#44956)
fix: incorrect filter for BOM (frappe#44954) (cherry picked from commit 9fdeb5f) Co-authored-by: rohitwaghchaure <[email protected]>
1 parent c33e075 commit 9853bd9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

erpnext/manufacturing/doctype/bom/bom_list.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ frappe.listview_settings["BOM"] = {
22
add_fields: ["is_active", "is_default", "total_cost", "has_variants"],
33
get_indicator: function (doc) {
44
if (doc.is_active && doc.has_variants) {
5-
return [__("Template"), "orange", "has_variants,=,Yes"];
5+
return [__("Template"), "orange", "has_variants,=,1"];
66
} else if (doc.is_default) {
7-
return [__("Default"), "green", "is_default,=,Yes"];
7+
return [__("Default"), "green", "is_default,=,1"];
88
} else if (doc.is_active) {
9-
return [__("Active"), "blue", "is_active,=,Yes"];
9+
return [__("Active"), "blue", "is_active,=,1"];
1010
} else if (!doc.is_active) {
11-
return [__("Not active"), "gray", "is_active,=,No"];
11+
return [__("Not active"), "gray", "is_active,=,0"];
1212
}
1313
},
1414
};

0 commit comments

Comments
 (0)