fix(ux): serial and batch bundle status

This commit is contained in:
s-aga-r 2023-06-06 12:07:46 +05:30
parent 5ebf46a1b5
commit d6208d2e45

View File

@ -0,0 +1,11 @@
// Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
frappe.listview_settings["Serial and Batch Bundle"] = {
add_fields: ["is_cancelled"],
get_indicator: function (doc) {
if (doc.is_cancelled) {
return [__("Cancelled"), "red", "is_cancelled,=,1"];
}
},
};