From d6208d2e456ebe4242380c96ce510bdd273a37e5 Mon Sep 17 00:00:00 2001 From: s-aga-r Date: Tue, 6 Jun 2023 12:07:46 +0530 Subject: [PATCH] fix(ux): serial and batch bundle status --- .../serial_and_batch_bundle_list.js | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 erpnext/stock/doctype/serial_and_batch_bundle/serial_and_batch_bundle_list.js diff --git a/erpnext/stock/doctype/serial_and_batch_bundle/serial_and_batch_bundle_list.js b/erpnext/stock/doctype/serial_and_batch_bundle/serial_and_batch_bundle_list.js new file mode 100644 index 0000000000..355fcd0aaa --- /dev/null +++ b/erpnext/stock/doctype/serial_and_batch_bundle/serial_and_batch_bundle_list.js @@ -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"]; + } + }, +};