Merge pull request #35567 from s-aga-r/FIX-SBB-STATUS

fix(ux): serial and batch bundle status
This commit is contained in:
rohitwaghchaure 2023-06-07 14:49:43 +05:30 committed by GitHub
commit 930a107af8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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